Directory / Crypto & onchain data

Best-effort contract introspection via batched RPC

Best-effort contract introspection via batched RPC - bytecode presence, token metadata, and ERC20-like/ERC721/ERC1155 classification

402 OKBaseGETx402 v2

Price per call
$0.005
Endpoint
https://api.onesource.io/api/chain/contract/:address
Provider
api.onesource.io
Paid calls (30 days)
471
Unique payers (30 days)
471
Last paid call
10 days ago
Health check
HTTP 402 just now
Pays to
0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea
Listed here since
2026-11-23 (source: bazaar)

Input

{
  "method": "GET",
  "pathParams": {
    "address": "0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec"
  },
  "queryParams": {
    "network": "ethereum"
  },
  "type": "http"
}

Example output

{
  "example": {
    "data": {
      "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
      "code_length": 11075,
      "decimals": 6,
      "interfaces": [
        "ERC20"
      ],
      "is_contract": true,
      "is_erc1155": false,
      "is_erc165": false,
      "is_erc20": true,
      "is_erc721": false,
      "name": "Tether USD",
      "symbol": "USDT"
    },
    "meta": {
      "cost_usdc": "0.001",
      "endpoint": "/api/chain/contract/0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec",
      "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/contract/:address", { method: "GET" });
console.log(await res.json()); // costs $0.005 in USDC on Base

Machine-readable: /api/tools/cff75287b0b3. Listings are informational; check a provider before sending large amounts.

Similar tools

ToolPrice / callPayers (30d)Status
Pay the send-token execution fee (ERC-20 transfer) Pay the send-token execution fee (ERC-20 transfer) Crypto & onchain datakeyring-agent.blockchhub.linkBase $0.055.7k402 OK
Pay the send-native execution fee (native coin transfer) Pay the send-native execution fee (native coin transfer) Crypto & onchain datakeyring-agent.blockchhub.linkBase $0.055.6k402 OK
ERC20 token balance for any Ethereum wallet ERC20 token balance for any Ethereum wallet - USDC, USDT, DAI, or any token - via balanceOf (eth_call) on OneSource live Ethereum RPC Crypto & onchain dataapi.onesource.ioBase $0.003648402 OK
Latest Ethereum block height Latest Ethereum block height - current chain tip via eth_blockNumber Crypto & onchain dataapi.onesource.ioBase $0.001579402 OK
Live wallet balance Live wallet balance - native ETH plus up to 20 caller-supplied ERC20 tokens in one bounded RPC batch Crypto & onchain dataapi.onesource.ioBase $0.003535402 OK