Function.useKeybanAccountTokenBalance
function useKeybanAccountTokenBalance(account: KeybanAccount, tokenAddress: string): ApiResult<KeybanTokenBalance>;
The useKeybanAccountTokenBalance
React hook allows you to fetch the balance of a specific token (ERC20) owned by a Keyban account.
It provides detailed information about the token, including metadata and collection details, offering a reactive and easy-to-use interface within functional components.
Parameters
Parameter | Type | Description |
---|---|---|
account | KeybanAccount | The Keyban account object containing the address. |
tokenAddress | string | The address of the token contract. |
Returns
- The result containing the token balance or an error.