ERC-721 function
tokenURI(uint256)
Returns the metadata URI associated with one ERC-721 token ID.
- Selector
- 0xc87b56dd
- Mutability
- view
Generate tokenURI calldata
Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.
uint256
calldata36 bytes
sel0xc87b56dd
tokenURI(uint256)
0x00000000000000000000000000000000000000000000000000000000000000002a
tokenId · uint256 =42
How tokenURI works
The token ID is ABI-encoded as a uint256. The returned URI commonly points to JSON metadata, but the URI itself is response data rather than calldata.
Parameters
| Name | Solidity type | Meaning |
|---|---|---|
| tokenId | uint256 | Opaque identifier of the NFT within this contract. |
Return value
A URI string for the token’s metadata.
string resultReturn data comes back after execution and is not included in the calldata above.