Token ids an address holds in one ERC-721 collection ($0.002)
get_nft_holdingsLists the ERC-721 token IDs a wallet holds in one collection across Base, Ethereum, Arbitrum, Optimism, or Polygon, returning balance, collection name, and symbol from live chain data.
Instructions
Lists the token ids an address holds in one ERC-721 collection (up to 200), with balance, collection name and symbol, read live on Base, Ethereum, Arbitrum, Optimism or Polygon. Needs an ERC721Enumerable contract. Not charged for bad input, a non-enumerable contract, a non-ERC-721 address 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": {
"owner": "<owner>",
"contract": "<contract>"
},
"name": "get_nft_holdings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | One chain, any of: base,ethereum,arbitrum,optimism,polygon. Default: ethereum. | |
| limit | No | Max token ids to return, 1-200 (default 100) | |
| owner | Yes | Wallet address to list holdings for | |
| contract | Yes | ERC-721 collection contract address |