Docs

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/react";
function Component() {
const buyWithCryptoHistory = useBuyWithCryptoHistory(params);
return (
<pre>{JSON.stringify(buyWithCryptoHistory.data, null, 2)}</pre>
);
}

Parameters

Returns

A React Query object which contains the data of type BuyWithCryptoHistoryData