{"uid":"cap_Ga3pPvVqiGLuIvvOEIVEM","slug":"erc1155-token-balance-lookup-8995f949","name":"ERC1155 Token Balance Lookup","description":"ERC1155 balance: how many copies of token_id a wallet holds, via balanceOf(address,uint256) (eth_call). Example: {contract:\"0x…\", address:\"0x…\", token_id:\"1\", chain:\"base\"}. $0.001.","url":"https://api.axiomworks.co.uk/chain/erc1155-balance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["contract","address","token_id"],"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string","description":"EVM chain (default base)"},"wallet":{"type":"string","description":"Alias for address (owner wallet)"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Holder"},"contract":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC1155 contract"},"token_id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"balance":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"chain":"ethereum","source":"eth_call balanceOf(address,uint256)","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","balance":"0","chain_id":1,"contract":"0x76be3b62873462d2142405439777e971754e8e77","token_id":"10229"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_chp5H02U1RFUX4zQk22Xf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns how many copies of a specific ERC1155 token ID a wallet address holds, via balanceOf(address,uint256) eth_call.","exampleAgentPrompt":"How many copies of token ID 1 does wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 hold in the ERC1155 contract 0x76be3b62873462d2142405439777e971754e8e77 on Ethereum?","exampleUseCases":[{"title":"NFT gating access check","prompt":"Does wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 own at least one copy of token ID 5 in the ERC1155 contract 0x76be3b62873462d2142405439777e971754e8e77 on Base? I need to know if they qualify for access."},{"title":"Edition count audit for creator","prompt":"How many editions of token ID 101 does the address 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B hold in my ERC1155 contract 0x1234567890abcdef1234567890abcdef12345678 on Polygon?"},{"title":"Airdrop eligibility verification","prompt":"Before I send the airdrop, check the ERC1155 balance of token ID 999 for wallet 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe in contract 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd on Arbitrum."}],"resultDescription":"Returns a JSON object containing the wallet's balance (as a string integer) for the specified token ID, plus confirming fields: chain name, chain ID, contract address, token ID, holder address, and the source call method (eth_call balanceOf(address,uint256)).","failureModes":["Invalid contract address format returns a 400 error","Invalid holder address format returns a 400 error","Contract does not implement ERC1155 balanceOf — may return an error or unexpected result","Unsupported chain value returns a validation error","Balance of zero returned for wallets that simply don't hold the token (not an error)","Network RPC timeout or unavailability causes a 500 or slow response","Payment not provided or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a lightweight, single-call check of how many copies of a specific ERC1155 token ID a wallet holds, especially on Base, Ethereum, Arbitrum, Optimism, or Polygon. It is more targeted than a full NFT portfolio lookup — ideal for access gating, airdrop eligibility, or balance audits where you already know the contract, token ID, and holder address.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:35:39.601Z","isFirstParty":false,"canonicalSlug":"erc1155-token-balance-lookup-8995f949"}