useBalanceForAddress

This hook is similar to the useBalance hook, but it for fetching the native token balance of any given wallet address.

This hook only fetches the native token balance of the given wallet address. If you want to get the ERC20 balance from a given wallet, use useTokenBalance

Example

const { data, isLoading } = useBalanceForAddress(walletAddress);

Parameters

Returns

The hook's data property contains the native token's balance in the value property as a BigNumber object.