X

Xerxes · Base Object

by Xerxes

GETBase

$0.01

per call · USD Coin on Base

Use when an agent needs to know what a Base address is at a known block: EOA, ERC-20, Uniswap V2/V3 pool, bare contract, or unread. Returns a typed object plus blockNumber and blockHash. A token that is not a pool is a token. Dead RPC is unreadability, not zeros.

Endpoint

GET https://ari001.tailb4ac3a.ts.net/v1/base/object/:addr

8

Calls / 30d

4

Unique payers / 30d

Sep 7

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://ari001.tailb4ac3a.ts.net/v1/base/object/:addr", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://ari001.tailb4ac3a.ts.net/v1/base/object/:addr" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "balance_wei": null,
  "bytecode_bytes": 1200,
  "kind": "erc20",
  "ok": true,
  "pool": null,
  "proof": {
    "block_hash": "0xabababababababababababababababababababababababababababababababab",
    "block_number": 12345678
  },
  "service": "base_object",
  "token": {
    "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "decimals": 6,
    "name": "USD Coin",
    "symbol": "USDC",
    "total_supply": "1000"
  },
  "usdc_atomic": null
}

Payment details

Pay to0xd94ce1924dedd6f3442380a4f075dc3796fb2875
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Xerxes & similar services