Skip to main content

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

ParameterTypeDescription
accountKeybanAccountThe Keyban account object containing the address.
tokenAddressstringThe address of the token contract.

Returns

ApiResult<KeybanTokenBalance>

  • The result containing the token balance or an error.