80trust / 100

Wallet Balances

by onchain-wallet-balances in Onchain & crypto

x402 APIPassing, checked 1 h ago

Native-coin balance + ERC-20 token balances (raw + human) for any address on Base, Ethereum, Arbitrum, Optimism, Polygon or BNB (default Base). On Base pass token symbols or 0x addresses (or a default common set); on other networks pass explicit 0x token addresses.

GET https://webtools402.176-109-107-191.sslip.io/wallet/balances

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
128 ms typical, 128 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://webtools402.176-109-107-191.sslip.io/wallet/balances?address=0x2d3af92Df6129878509F152E531E1beC2b34C423&network=base&usd=false"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwebtools402.176-109-107-191.sslip.io%2Fwallet%2Fbalances
const res = await pay("https://webtools402.176-109-107-191.sslip.io/wallet/balances?address=0x2d3af92Df6129878509F152E531E1beC2b34C423&network=base&usd=false");
console.log(await res.json());

Example input

{
  "address": "0x2d3af92Df6129878509F152E531E1beC2b34C423",
  "network": "base",
  "tokens": [
    "USDC",
    "WETH"
  ],
  "usd": false
}

Example output

{
  "address": "0x2d3af92Df6129878509F152E531E1beC2b34C423",
  "chain": "eip155:8453",
  "native": {
    "balance": 0.12,
    "balance_raw": "...",
    "symbol": "ETH"
  },
  "network": "base",
  "tokens": [
    {
      "balance": 42.5,
      "balance_raw": "...",
      "token": "USDC"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402586 ms$0.005
6 h agoPassed402128 ms$0.005