useBuyWithFiatHistory

Hook to get the "Buy with Fiat" transaction history for a given wallet address.

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

Example

import { useBuyWithFiatHistory } from "thirdweb/react";
function Component() {
const historyQuery = useBuyWithFiatHistory(params);
return <div> ... </div>;
}
function useBuyWithFiatHistory(
queryParams?: BuyWithFiatHistoryQueryOptions,
): UseQueryResult<BuyWithFiatHistoryData>;

Parameters

object of type BuyWithFiatHistoryParams

Type

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

options to configure the react query

Type

let queryParams: BuyWithFiatHistoryQueryOptions;

Returns

let returnType: UseQueryResult<BuyWithFiatHistoryData>;

A React Query object which contains the data of type BuyWithFiatHistoryData