Skip to content
Fourohtwo

Use when an agent needs an EVM wallet's holdings in one call

1gateway.dev/v1/onchain/balances

Use when an agent needs an EVM wallet's holdings in one call. Input: address; chain (base default, ethereum, arbitrum, monad); optional tokens (up to 20 ERC-20s; default: main stablecoins, WETH, BTC wrappers). Output: JSON block+time, native balance (ETH; MON on Monad), per-token symbol, decimals, raw and decimal balance, nonce, isContract. Chain state only, no prices. Bad input: 400, not charged.

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/onchain/balances

Uptime100% of 2 checks 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/onchain/balances?address=0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1&chain=base&tokens=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913%2C0x4200000000000000000000000000000000000006");
console.log(await res.json());

Example input

{
  "address": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
  "chain": "base",
  "tokens": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913,0x4200000000000000000000000000000000000006"
}

More from 1gatewayProvider status