erc1155_balanceOfBatch
Query balances of multiple ERC1155 tokens for multiple owner addresses in a single call using MCP Ethers Wallet. Specify token contract, owner addresses, and token IDs to retrieve batch balances efficiently.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Optional. The chain ID to use. | |
ownerAddresses | Yes | Array of addresses to check balances for | |
provider | No | Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value. | |
tokenAddress | Yes | The address of the ERC1155 contract | |
tokenIds | Yes | Array of token IDs to check balances for |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"description": "Optional. The chain ID to use.",
"type": "number"
},
"ownerAddresses": {
"description": "Array of addresses to check balances for",
"items": {
"description": "An Ethereum address",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"type": "array"
},
"provider": {
"description": "Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.",
"type": "string"
},
"tokenAddress": {
"description": "The address of the ERC1155 contract",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"tokenIds": {
"description": "Array of token IDs to check balances for",
"items": {
"description": "The ID of the token to query",
"type": "string"
},
"type": "array"
}
},
"required": [
"tokenAddress",
"ownerAddresses",
"tokenIds"
],
"type": "object"
}