# Ethereum NFT Balance (ERC-721 balanceOf)

> Ethereum NFT Balance (ERC-721 balanceOf) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Returns how many NFTs of a specific ERC-721 collection a wallet address holds on Ethereum mainnet, along with the collection name and symbol.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/eth/nft-balance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-ethereum-nft-balance-erc-721-4883d0ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e_X7YqWgQFBYZriEAjZO7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-ethereum-nft-balance-erc-721-4883d0ef
```

Example prompt: Check how many NFTs the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 holds in the Bored Ape Yacht Club collection (contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D) on Ethereum.

## When to prefer this

Use this endpoint when you need to know how many NFTs a wallet holds across an entire ERC-721 collection on Ethereum mainnet (balanceOf). Prefer this over eth_nft_owner when you want the total count for a wallet rather than who owns a specific token ID. Choose this Ethereum-specific endpoint over the Base, Polygon, or Optimism variants when the collection is deployed on Ethereum mainnet.

## Known failure modes

- 404 if the contract address does not exist on Ethereum mainnet (not charged)
- 422 if the contract exists but does not implement ERC-721 (not charged)
- Invalid 0x address format may result in a 400 or error response
- Network or RPC timeouts on Ethereum may cause transient failures

## How this service works

How many NFTs of one ERC-721 collection a wallet holds on Ethereum (balanceOf), with the collection's name and symbol. Use to check a holder before a token-gated action or to see whether a wallet still holds a collection; for who holds one token id use eth_nft_owner. Both inputs are 0x addresses; a missing contract or one that is not ERC-721 is 422, uncharged.

## Output

A JSON object containing the wallet's NFT balance (as a string integer), the collection's name and symbol, the chain name ('ethereum'), the chainId (1), and echoed-back wallet and contract addresses. Returns 404 if the contract address doesn't exist, 422 if the contract is not ERC-721 compliant; both error cases are uncharged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "contract",
  "address"
 ],
 "properties": {
  "address": {
   "type": "string",
   "description": "0x wallet address"
  },
  "contract": {
   "type": "string",
   "description": "0x ERC-721 collection contract address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  },
  "chain": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "address": {
   "type": "string"
  },
  "balance": {
   "type": "string"
  },
  "chainId": {
   "type": "number"
  },
  "contract": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-ethereum-nft-balance-erc-721-4883d0ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
