Docs

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>;
}

Parameters

Returns

A React Query object which contains the data of type BuyWithFiatHistoryData