erc721_tokenURI
Retrieve the token URI for a specific ERC721 token by providing the contract address and token ID, enabling access to metadata stored on Ethereum networks.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Optional. The chain ID to use. | |
provider | No | Optional. The provider to use. If not provided, the default provider is used. | |
tokenAddress | Yes | The address of the ERC721 contract | |
tokenId | Yes | The ID of the token to get the URI 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"
},
"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"
},
"tokenId": {
"description": "The ID of the token to get the URI for",
"type": [
"string",
"number"
]
}
},
"required": [
"tokenAddress",
"tokenId"
],
"type": "object"
}