Docs

useBuyHistory

Hook to get the history of Buy transactions for a given wallet - This includes both "buy with crypto" and "buy with fiat" transactions.

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

Example

import { useBuyHistory } from "thirdweb/react";
function Component() {
const buyHistoryQuery = useBuyHistory(params);
return <div> ... </div>;
}

Parameters

Returns

A React Query object which contains the data of type BuyHistoryData