Ethereum icon

Ethereum

Interact with Ethereum blockchain

ERC1155 → Set Approval For All

AI-generated

Summary

Sets an operator's approval for all token IDs in an ERC1155 contract.

Inputs

  • contractAddress (required) — Address of the ERC1155 contract to interact with.
  • operator (required) — Address of the operator to grant approval to.
  • approved (required) — Boolean indicating whether to set the approval (true) or remove it (false).

Output shape

a transaction receipt (including status, gas used, logs, etc.)

Returns the receipt on success; on error the node may return an error object with a message.

Examples

Example 1: Approve an operator for all NFTs in an ERC1155 contract

contractAddress: 0x123..., operator: 0xabc..., approved: true

Links

Discussion