useBuyWithCryptoHistory

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

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 <div> ... </div>;
}

Parameters

Returns

A React Query object which contains the data of type BuyWithCryptoHistoryData