Skip to content
Fourohtwo

x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/portfolio

One call returns an address's native coin, USDC and USDT balances on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC and Avalanche (or a 'chains' subset), plus a total stablecoin USD figure, instead of 21 separate reads. Chains whose RPC fails are listed in chainsFailed. You only pay for successful reads: invalid input, not-found and upstream errors cancel settlement.

BaseAnswering
GEThttps://x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/portfolio

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://x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/portfolio?address=0x1721E9841257A34DbDBA407D4DBA3a727a02d072&chains=base%2Cethereum%2Carbitrum");
console.log(await res.json());

Example input

{
  "address": "0x1721E9841257A34DbDBA407D4DBA3a727a02d072",
  "chains": "base,ethereum,arbitrum"
}

More from x402 Agent HubProvider status