useBuyWithCryptoHistory

Hook to get the history of purchases a given wallet has performed.

This hook is a React Query wrapper of the getBuyWithCryptoHistory function. You can also use that function directly

Example

import { useBuyWithCryptoHistory } from "@thirdweb-dev/react";
function Component() {
const buyWithCryptoHistory = useBuyWithCryptoHistory(params);
console.log(buyWithCryptoHistory.data);
return <div> ... </div>;
}
function useBuyWithCryptoHistory(
queryParams?: BuyWithCryptoHistoryQueryOptions,
): UseQueryResult<BuyWithCryptoHistoryData>;

Parameters

object of type BuyWithCryptoHistoryParams

Type

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

options to configure the react query

Type

let queryParams: BuyWithCryptoHistoryQueryOptions;

Returns

let returnType: UseQueryResult<BuyWithCryptoHistoryData>;

A React Query object which contains the data of type BuyWithCryptoHistoryData