gate402 · Onchain

by gate402

POSTBase

$0.01

per call · USD Coin on Base

On-chain wallet & token intelligence on Base: native + ERC-20 balances, EOA/contract detection, tx count, and token metadata. From public RPC.

Endpoint

POST https://gate402.app/v1/onchain

1

Calls / 30d

1

Unique payers / 30d

Aug 22

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://gate402.app/v1/onchain", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://gate402.app/v1/onchain" \
  -H "Content-Type: application/json" \
  -d '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0x…",
  "checkedTokens": 9,
  "holdings": [
    {
      "balance": "26.82",
      "decimals": 6,
      "name": "USD Coin",
      "raw": "26824119",
      "symbol": "USDC",
      "token": "0x833589…"
    }
  ],
  "native": {
    "balance": "0.12",
    "symbol": "ETH",
    "wei": "120000000000000000"
  },
  "network": "eip155:8453",
  "transactionCount": 42,
  "type": "wallet"
}

Payment details

Pay to0x8e57bfde053dbb6862991759c19affc5f383d5d0
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 gate402 & similar services