Skip to content
Fourohtwo

How many NFTs of an ERC-721 collection a wallet holds, and

agents.204-168-199-108.sslip.io/v1/chain/nft-balance

How many NFTs of an ERC-721 collection a wallet holds, and — for ERC-721 Enumerable collections — the token ids (up to 100), with collection name and symbol. Use to check holder/gating status or list a wallet's pieces in a collection.

BasePolygonSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/chain/nft-balance

Uptime100% 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

// 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://agents.204-168-199-108.sslip.io/v1/chain/nft-balance?chain=ethereum&contract=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D&owner=0x46EFbAedc92067E6d60E84ED6395099723252496");
console.log(await res.json());

Example input

{
  "chain": "ethereum",
  "contract": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "owner": "0x46EFbAedc92067E6d60E84ED6395099723252496"
}