balance
function balance(client, options): Promise<ERC20BalanceResult>;Defined in: packages/synapse-core/src/erc20.ts:54
Get the balance, decimals, symbol, and allowance of an ERC20 token.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use. |
options | ERC20BalanceOptions | The props to use. |
Returns
Section titled “Returns”The balance, decimals, symbol, and allowance.
Throws
Section titled “Throws”- MulticallErrorType if the multicall fails.