NFT balance, Unichain
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
How many NFTs of one ERC-721 collection a wallet holds on Unichain (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 unichain_nft_owner. Both inputs are 0x addresses; a missing contract or one that is not ERC-721 is 422, uncharged.
Inputs
| Name | Type | Description |
|---|---|---|
contract (required) | string | 0x ERC-721 collection contract address |
address (required) | string | 0x wallet address |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/unichain/nft-balance?contract=0x943e6e07a7E8E791dAFC44083e54041D743C46E9&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Node.js
const r = await fetch("https://glyphtools.com/unichain/nft-balance?contract=0x943e6e07a7E8E791dAFC44083e54041D743C46E9&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/unichain/nft-balance?contract=0x943e6e07a7E8E791dAFC44083e54041D743C46E9&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/unichain/nft-balance?contract=0x943e6e07a7E8E791dAFC44083e54041D743C46E9&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"chain": "Unichain",
"chainId": 130,
"contract": "0x943e6e07a7E8E791dAFC44083e54041D743C46E9",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"balance": "2",
"name": "Uniswap V3 Positions NFT-V1",
"symbol": "UNI-V3-POS"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is unichain_nft_balance, and the first 10 successful calls are free:
https://glyphtools.com/mcp