Docs

getBuyWithCryptoHistory

Gets the History of purchases for a given wallet address

Example

import { createThirdwebClient } from "thirdweb";
import { BuyWithCryptoHistoryData } from "thirdweb/pay";
const client = createThirdwebClient({ clientId: "..." });
const walletAddress = "0x...";
const params = {
client,
walletAddress,
};
// grabs the history of purchase transactions for the wallet address
const status = await getBuyWithCryptoHistory(params);

Parameters

Returns

Object of type BuyWithCryptoHistoryData