402rpc.com/v1/eth/balances
Ethereum mainnet balances of an address at the latest block, read directly from a full node: ETH plus USDC, USDT, DAI, WETH, WBTC, stETH, LINK and UNI (zero balances omitted). Use it to check a wallet before a payment, for treasury overviews or to verify a deposit. No indexer and no tracking; one address per call.
GET
https://402rpc.com/v1/eth/balancesUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://402rpc.com/v1/eth/balances?address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045");
console.log(await res.json());Example input
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}More from 402rpc
- 402rpc.com/rpcEthereum mainnet JSON-RPC from an independently operated full node. One call per payment, no account or API key. Serves eth_, net_ and web3_ methods. Blocks, transactions, receipts and logs from the Merge (block 15537394) onward. Current state only, not an archive node: historical state calls are refused, not charged. eth_getLogs capped at 10000 blocks. Raw transactions go out via public relays. P0.001
- 402rpc.com/v1/eth/ensResolve ENS on Ethereum mainnet from a full node: name to address (e.g. vitalik.eth) or address to primary name (reverse record, verified forward). Use it to turn human-readable names into payment addresses and to label addresses. Give either name or address.0.001
- 402rpc.com/v1/eth/gasEthereum mainnet gas now, from an independently operated full node: latest block, base fee and the priority fees paid in the last 20 blocks (10th, 50th, 90th percentile), with a suggested max fee for slow, normal and fast inclusion in gwei. Use it before sending a transaction or to time on-chain activity.0.001
- 402rpc.com/v1/eth/priceOn-chain spot price of ETH or BTC in USDC from the deepest Uniswap v3 pools on Ethereum mainnet, read from a full node at the latest block (no third-party price feed). Pairs: ETH-USDC, BTC-USDC. Use it as an independent, verifiable price reference; it reflects the pool price, not an exchange average.0.001
