Documentation
Hooks
useWalletAccountBalance

useWalletAccountBalance

Hook for getting balance info of connected wallet account.

function useWalletAccountBalance(): UseAccountBalanceResult;
💡

If you are not concerned about which type of account is being used, you can use useAccountBalance instead.

Usage

import { useWalletAccountBalance } from "@crossbell/connect-kit";
 
function App() {
	const balance = useWalletAccountBalance();
 
	return <div>{balance ? balance.balance.formatted : "No Balance Info"}</div>;
}