useWalletBalance

Fetch the balance of a wallet for a specific token.

Example

import { useWalletBalance } from "thirdweb/react";
const { data, isLoading, isError } = useWalletBalance({
chain,
address,
client,
tokenAddress,
});

Parameters

Returns

GetWalletBalanceResult The result of the query.