getErc20Balance().
Contract Methods
balanceOf(account)
Returns the token balance for an address.
Returns:
uint256 — token balance in the token’s smallest unit
decimals()
Returns the number of decimals the token uses.
Returns: uint8 — decimal places (e.g., 6 for USDC, 18 for account shares)
ABI
Usage
Call these on any ERC-20 token contract, including:To convert a raw balance to a human-readable amount, divide by
10 ^ decimals. For example, a USDC balanceOf of 1000000000 with
decimals of 6 = 1,000 USDC.