Directory / Crypto & onchain data
List every ERC721 NFT token_id a wallet owns in a collection via…
List every ERC721 NFT token_id a wallet owns in a collection via tokenOfOwnerByIndex (eth_call)
402 OKBaseGETx402 v2
- Price per call
- $0.008
- Endpoint
- https://api.onesource.io/api/chain/erc721-tokens
- Provider
- api.onesource.io
- Paid calls (30 days)
- 264
- Unique payers (30 days)
- 261
- Last paid call
- 5 days ago
- Health check
- HTTP 402 4 min ago
- Pays to
- 0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea
- Listed here since
- 2026-11-23 (source: bazaar)
Input
{
"method": "GET",
"queryParams": {
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"contract": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"network": "ethereum"
},
"type": "http"
}
Example output
{
"example": {
"data": {
"balance": "3",
"contract_address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"is_enumerable": true,
"owner": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"token_ids": [
"1",
"42",
"100"
]
},
"meta": {
"cost_usdc": "0.001",
"endpoint": "/api/chain/erc721-tokens",
"payment_chain": "base",
"payment_token": "USDC",
"request_id": "00000000abcdef01"
}
},
"type": "json"
}
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);
const res = await paidFetch("https://api.onesource.io/api/chain/erc721-tokens", { method: "GET" });
console.log(await res.json()); // costs $0.008 in USDC on Base
Machine-readable: /api/tools/cc745048ef74. Listings are informational; check a provider before sending large amounts.