erc721_balanceOf
Check the balance of ERC721 tokens for a specific owner address within an Ethereum-based contract using the MCP Ethers Wallet.
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. The provider to use. If not provided, the default provider is used. | |
tokenAddress | Yes | The address of the ERC721 contract |
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. The provider to use. If not provided, the default provider is used.",
"type": "string"
},
"tokenAddress": {
"description": "The address of the ERC721 contract",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
}
},
"required": [
"tokenAddress",
"ownerAddress"
],
"type": "object"
}