81trust / 100
Base Balance
by AgentFeed in Onchain & crypto
x402 APIPassing, checked 2 h ago
ERC20 and native ETH wallet balance on Base or Ethereum mainnet, for a 0x address or an ENS name. decimals() and symbol() are read from the contract at request time rather than assumed, because assuming 18 reports a USDC balance a trillion times too large. Use when you need to answer: What does this EVM address hold? ENS is resolved through two independent resolvers and the answer is used only…
GET https://x402.ochinimus.app/api/base-balance
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 175 ms typical, 175 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.ochinimus.app/api/base-balance?address=0x22DB3A9686EE5261e7Bf3ed4f91277232E8076e6"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%2Fx402.ochinimus.app%2Fapi%2Fbase-balance
const res = await pay("https://x402.ochinimus.app/api/base-balance?address=0x22DB3A9686EE5261e7Bf3ed4f91277232E8076e6");
console.log(await res.json());Example input
{
"address": "0x22DB3A9686EE5261e7Bf3ed4f91277232E8076e6"
}Example output
{
"data": {
"address": "0x22DB3A9686EE5261e7Bf3ed4f91277232E8076e6",
"asset": "ETH",
"balance": 0.000094829,
"balance_wei": "94829352850506",
"chain": "Base",
"chain_id": 8453,
"source": "rpc:mainnet.base.org"
},
"paid": true,
"tool": "get_base_balance"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 175 ms | $0.005 |
| 8 h ago | Passed | 402 | 186 ms | $0.005 |