Skip to Content

useNativeBalance

Returns native balance based on appChain.id.

ℹ️

Hook represents a logic wrapper over Wagmi’s useBalance hook. Explore useBalance  to understand what data the hook returns.

Usage

import { useNativeBalance } from '@azuro-org/sdk' const { data, isFetching } = useNativeBalance() const { rawBalance, balance } = data

Props

{ chainId?: ChainId query?: UseBalanceParameters['query'] }

Return Value

UseBalanceReturnType<{ rawBalance: bigint; balance: string; }>
Last updated on