Skip to main content

useKeybanAccountTokenBalances

function useKeybanAccountTokenBalances<B>(account, options?): UsePromiseResult<object[], B>

Return the ERC20 tokens of an account.

Type Parameters

B extends boolean

Parameters

account: KeybanAccount

options?: UsePromiseOptions<B>

Returns

UsePromiseResult<object[], B>

Example

const [account, accountError] = useKeybanAccount();
const [balances, balanceError, { refresh: refreshBalances }] = useKeybanAccountTokenBalances(account);

See

useFormattedBalance

Defined in

packages/sdk-react/src/account.ts:47