Ethereum token standard
ERC-1155 calldata
ERC-1155 lets one contract manage many fungible or non-fungible token IDs, including single and batched balance and transfer operations.
Balances are always addressed by an account-and-token-ID pair. Batch functions keep their arrays positional, so values at the same index belong together.
Write functions
Generate transaction input for calls that can change contract state.
safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)0x2eb2c2d6Transfers multiple ERC-1155 token IDs and amounts in one safe batch.safeTransferFrom(address,address,uint256,uint256,bytes)0xf242432aTransfers one ERC-1155 token ID and amount, with a receiver safety check.setApprovalForAll(address,bool)0xa22cb465Enables or revokes an operator for every ERC-1155 token held by the caller.
Read functions
Generate eth_call input for views that read contract state.
balanceOf(address,uint256)0x00fdd58eReturns one account’s balance for one ERC-1155 token ID.balanceOfBatch(address[],uint256[])0x4e1273f4Reads several ERC-1155 account-and-token balances in one call.isApprovedForAll(address,address)0xe985e9c5Checks whether an operator may manage all ERC-1155 tokens for an account.uri(uint256)0x0e89341cReturns the metadata URI template for an ERC-1155 token ID.