Optimism nft metadata
optimism_nft_metadataMetadata for an ERC-721 or ERC-1155 token on OP Mainnet: collection name, current owner (ERC-721), token URI, and the metadata JSON fetched and decoded from IPFS, Arweave, HTTPS or an inline data URI, with a browser-loadable image URL. Costs $0.008 USDC on Base via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract": "<contract>",
"tokenId": "<tokenId>"
},
"name": "optimism_nft_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | Token id as a decimal string | |
| contract | Yes | NFT collection contract on OP Mainnet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | string, e.g. "optimism" | |
| owner | No | string, e.g. "0xc2EEdF3bC7F93366c00c6074DF0e6F122fa2445c" | |
| tokenId | No | string, e.g. "1043" | |
| contract | No | string, e.g. "0x4857DB576eE0e45F10525eC59527BfD10beeC60b" | |
| imageUrl | No | string, e.g. "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9I | |
| metadata | No | object | |
| standard | No | string, e.g. "ERC-721" | |
| tokenUri | No | string, e.g. "data:application/json;base64,eyJuYW1lIjo…" | |
| collection | No | string, e.g. "Slipstream V3 Deposit" | |
| fetchedFrom | No | string, e.g. "inline data URI" |