Add a useBalance hook, based on the wagmi equivalent, that fetches balance info for ERC 20 tokens.
const { data } = useBalance({
address, // address to fetch balance for
token, // token address, defaults to ETH token
formatUnits // defaults to token decimals
})
Returns the original balance, formatted balance, symbol, and decimals:
Closes #236
Add a
useBalance
hook, based on the wagmi equivalent, that fetches balance info for ERC 20 tokens.Returns the original balance, formatted balance, symbol, and decimals: