erc1155_balanceOf
Check the balance of a specific ERC1155 token for a given owner address and token ID using the Ethereum blockchain. Ideal for verifying token holdings or managing asset tracking.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Optional. The chain ID to use. | |
ownerAddress | Yes | The address to check balance 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 | |
tokenId | Yes | The ID of the token to query |
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"
},
"ownerAddress": {
"description": "The address to check balance for",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"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"
},
"tokenId": {
"description": "The ID of the token to query",
"type": "string"
}
},
"required": [
"tokenAddress",
"ownerAddress",
"tokenId"
],
"type": "object"
}