Tools / Crypto

Base wallet lookup

Reads an address on Base mainnet: native ETH balance, USDC balance, any extra ERC-20 tokens you list (with symbol, name and decimals), transaction count and whether it is a contract.

Price per call
$0.002 USDC
Endpoint
GET https://x402-tools.com/v1/wallet
Also accepts
POST with a JSON body
Payment
x402, exact scheme, USDC on Base
Returns
application/json

Parameters

NameTypeDescription
address requiredstring0x address on Base.
tokensstringOptional comma-separated ERC-20 contract addresses to include (max 10).

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://x402-tools.com/v1/wallet?address=0x4200000000000000000000000000000000000006&tokens=0x4200000000000000000000000000000000000006");
// costs $0.002 in USDC on Base

Without a payment the endpoint answers 402 with the price, so you can inspect it first:

curl -i "https://x402-tools.com/v1/wallet?address=0x4200000000000000000000000000000000000006&tokens=0x4200000000000000000000000000000000000006"

Example response

{
  "address": "0x…",
  "chain": "base",
  "chain_id": 8453,
  "is_contract": false,
  "transaction_count": 42,
  "native": {
    "symbol": "ETH",
    "balance": "0.0153",
    "balance_raw": "15300000000000000"
  },
  "tokens": [
    {
      "token": "0x8335…2913",
      "symbol": "USDC",
      "name": "USD Coin",
      "decimals": 6,
      "balance": "12.5",
      "balance_raw": "12500000"
    }
  ]
}

If the tool fails or your input is invalid, the payment is not settled.

Other tools