Get Buy transaction history for a given wallet address.
This includes both "Buy with Cryto" and "Buy with Fiat" transactions
import { createThirdwebClient } from "thirdweb";import { getBuyHistory } from "thirdweb/pay"; const client = createThirdwebClient({ clientId: "..." }); const history = await getBuyHistory({ client, walletAddress: "0x...",});
function getBuyHistory( params: BuyHistoryParams,): Promise<BuyHistoryData>;
Object of type BuyHistoryParams
BuyHistoryParams
let params: { client: ThirdwebClient; count: number; start: number; walletAddress: string;};
let returnType: { hasNextPage: boolean; page: Array< | { buyWithFiatStatus: BuyWithFiatStatus } | { buyWithCryptoStatus: BuyWithCryptoStatus } >;};