ERC-1155 balances of an address for up to 50 token ids ($0.003)
get_erc1155_balanceRead ERC-1155 balances for one wallet across 1-50 token IDs of a single contract in one batched call; returns per-ID balances and total on five chains.
Instructions
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. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"contract": "<contract>",
"ids": "<ids>"
},
"name": "get_erc1155_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comma list of 1-50 token ids, decimal or 0x hex | |
| chain | No | One chain, any of: base,ethereum,arbitrum,optimism,polygon. Default: ethereum. | |
| owner | Yes | Wallet address to read | |
| contract | Yes | ERC-1155 contract address |