getBalanceOf
Retrieve the ERC20 token balance for a specified address on Ethereum by providing the token contract and owner address. Supports multi-chain queries if a chain ID is not specified.
Instructions
Gets the ERC20 token balance of an address
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | If not specified, returns balance for all supported chains. | |
owner | Yes | The token owner's address | |
token | Yes | The token address |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"description": "If not specified, returns balance for all supported chains.",
"type": "number"
},
"owner": {
"description": "The token owner's address",
"type": "string"
},
"token": {
"description": "The token address",
"type": "string"
}
},
"required": [
"token",
"owner"
],
"type": "object"
}