78trust / 100
Chain Eth Balance
by Native Balance in Weather & location
x402 APIPassing, checked 27 min ago
Read the native ETH balance of an address on Base. POST {"address":"0x..."} and receive the balance in wei and in ether. Live chain state read directly from a node, with no indexer lag and no API key.
POST https://x402-echo-service.onrender.com/chain/eth-balance
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 172 ms typical, 215 ms slowest 5%
- Last check
- 27 min ago
- Next check
- in 2 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402-echo-service.onrender.com/chain/eth-balance" \
-H "content-type: application/json" \
-d '{"address":"0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE"}'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-echo-service.onrender.com%2Fchain%2Feth-balance
const res = await pay("https://x402-echo-service.onrender.com/chain/eth-balance", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE"}),
});
console.log(await res.json());Example input
{
"address": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE"
}Example output
{
"address": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE",
"ether": "0.0",
"wei": "0"
}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 |
|---|---|---|---|---|
| 27 min ago | Passed | 402 | 163 ms | $0.001 |
| 4 h ago | Passed | 402 | 175 ms | $0.001 |
| 8 h ago | Passed | 402 | 184 ms | $0.001 |
| 11 h ago | Passed | 402 | 161 ms | $0.001 |
| 15 h ago | Passed | 402 | 193 ms | $0.001 |
| 18 h ago | Passed | 402 | 241 ms | $0.001 |
| 22 h ago | Passed | 402 | 182 ms | $0.001 |
| 25 h ago | Passed | 402 | 139 ms | $0.001 |
| 29 h ago | Passed | 402 | 172 ms | $0.001 |
| 33 h ago | Passed | 402 | 215 ms | $0.001 |
| 36 h ago | Passed | 402 | 157 ms | $0.001 |
| 41 h ago | Passed | 402 | 128 ms | $0.001 |