Skip to content
Fourohtwo

x402-toolbox.vercel.app/nft/balance

ERC-1155 balances of one address for 1-50 token ids of a single contract, read in one batched call on Base, Ethereum, Arbitrum, Optimism or Polygon. Returns per-id balance and the total. Not charged for bad input, a contract that is not ERC-1155, or a chain outage. No API key.

BaseAnswering
GEThttps://x402-toolbox.vercel.app/nft/balance

Uptime100% of 4 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-toolbox.vercel.app/nft/balance?chain=ethereum&contract=0x81A22628CB0a69e6391612D9Fa21B9A18Cf5C16C&ids=4%2C5&owner=0x1d10a37327ec3a0a64925aCeD29bFB5623df54f5");
console.log(await res.json());

Example input

{
  "chain": "ethereum",
  "contract": "0x81A22628CB0a69e6391612D9Fa21B9A18Cf5C16C",
  "ids": "4,5",
  "owner": "0x1d10a37327ec3a0a64925aCeD29bFB5623df54f5"
}