useBalance
() => ({ balance: number | undefined, fetchBalance: (() => Promise<void>) | undefined })
Get balance of connected user and function to refetch it:
Usage
import { useBalance } from "@nfid/identitykit/react"
const { balance, fetchBalance } = useBalance()
ℹ️
Both balance and fetchBalance will be undefined until successful connection.