getNFTOwner
Retrieve the owner of an ERC721 NFT by providing the contract address and token ID using an Ethereum provider on the MCP Ethers Wallet server.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Optional. The chain ID to use. | |
contractAddress | Yes | The address of the ERC721 contract | |
provider | No | Optional. The provider to use. If not provided, the default provider is used. | |
tokenId | Yes | The ID of the token to check |
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"
},
"contractAddress": {
"description": "The address of the ERC721 contract",
"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"
},
"tokenId": {
"description": "The ID of the token to check",
"type": [
"string",
"number"
]
}
},
"required": [
"contractAddress",
"tokenId"
],
"type": "object"
}