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-dev/react";
function Component() {
const buyWithCryptoHistory = useBuyWithCryptoHistory(params);
console.log(buyWithCryptoHistory.data);
return <div> ... </div>;
}

Parameters

Returns

A React Query object which contains the data of type BuyWithCryptoHistoryData