useERC20
This hook is designed to optimize fetching data from the popular ERC20
token interface.
No ABI is required for this hook as it contains presets.
Optimizations take into account Transfer
event logs to refresh calls only when required.
Popular token standard. Common ERC20 contract calls and events.
const { name, symbol, decimals, totalSupply, balanceOf } =
Contract.hooks.useERC20(networkId, address, balanceOfAddress);
Reference: Contract.hooks.useERC20
Alias: Contract..hooks.useToken