Resolved metadata JSON, image and attributes for any ERC-721 or ERC-1155 token ($0.002)
get_nft_metadataResolves an NFT contract and token ID into full metadata in one call: fetches tokenURI and ipfs, arweave, data or http URIs, returning name, image URL, attributes and owner.
Instructions
Resolves an NFT to its metadata in one call: reads tokenURI or uri on-chain, fetches ipfs, arweave, data and http URIs (SSRF-safe), and returns name, description, image gateway URL, attributes, owner and collection name. ERC-721 and ERC-1155. Not charged for bad input, a missing token, an unreachable metadata URL or a chain outage. No API key. Price: $0.002 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).
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": "get_nft_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | One chain, any of: base,ethereum,arbitrum,optimism,polygon. Default: ethereum. | |
| tokenId | Yes | Token id, decimal or 0x hex | |
| contract | Yes | NFT contract address |