Ethereum icon

Ethereum

Interact with Ethereum blockchain

ERC1155 → Balance Of Batch

AI-generated

Summary

Retrieves the batch balance of multiple token IDs for specified accounts from an ERC1155 contract.

Inputs

  • contractAddress (required) — ERC1155 contract address
  • accounts (required) — Array of account addresses
  • ids (required) — Array of token IDs

Output shape

array of uint256 balance values, one per token ID

Balances are returned in the same order as the token IDs; missing balances are 0; the result is a single array, not a per‑account mapping.

Examples

Example 1: Query balances for token IDs 1 and 2 for two wallets

contractAddress: 0x123..., accounts: ["0xabc", "0xdef"], ids: ["1","2"]

Links

Discussion