Skip to main content

useKeybanAccountBalance

function useKeybanAccountBalance<B>(account, options?): UsePromiseResult<bigint, B>

Return the native balance of an account.

Type Parameters

B extends boolean

Parameters

account: KeybanAccount

options?: UsePromiseOptions<B>

Returns

UsePromiseResult<bigint, B>

Example

const [account, accountError] = useKeybanAccount();
const [balance, balanceError, { refresh: refreshBalance }] = useKeybanAccountBalance(account);

See

useFormattedBalance

Defined in

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