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

WhenResultHTTPTimePrice
27 min agoPassed402163 ms$0.001
4 h agoPassed402175 ms$0.001
8 h agoPassed402184 ms$0.001
11 h agoPassed402161 ms$0.001
15 h agoPassed402193 ms$0.001
18 h agoPassed402241 ms$0.001
22 h agoPassed402182 ms$0.001
25 h agoPassed402139 ms$0.001
29 h agoPassed402172 ms$0.001
33 h agoPassed402215 ms$0.001
36 h agoPassed402157 ms$0.001
41 h agoPassed402128 ms$0.001