getBuyHistory

Get Buy transaction history for a given wallet address.

This includes both "Buy with Cryto" and "Buy with Fiat" transactions

Example

import { createThirdwebClient } from "thirdweb";
import { getBuyHistory } from "thirdweb/pay";
const client = createThirdwebClient({ clientId: "..." });
const history = await getBuyHistory({
client,
walletAddress: "0x...",
});
function getBuyHistory(
): Promise<BuyHistoryData>;

Parameters

Object of type BuyHistoryParams

Type

let params: {
client: ThirdwebClient;
count: number;
start: number;
walletAddress: string;
};

Returns

let returnType: {
hasNextPage: boolean;
page: Array<
| { buyWithFiatStatus: BuyWithFiatStatus }
| { buyWithCryptoStatus: BuyWithCryptoStatus }
>;
};