Actions53
- Account Actions
- Block Actions
- Transaction Actions
- Contract Actions
- ERC20 Actions
- ERC721 Actions
- ERC1155 Actions
- Gas Actions
- Signature Actions
- Utils Actions
- Custom RPC Actions
ERC1155 → Set Approval For All
AI-generatedSummary
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