ERC-1155 function
setApprovalForAll(address,bool)
Enables or revokes an operator for every ERC-1155 token held by the caller.
- Selector
- 0xa22cb465
- Mutability
- nonpayable
Generate setApprovalForAll calldata
Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.
address
bool
calldata68 bytes
sel0xa22cb465
setApprovalForAll(address,bool)
0x000000000000000000000000003333333333333333333333333333333333333333
operator · address =0x33333333…333333
0x200000000000000000000000000000000000000000000000000000000000000001
approved · bool =true
How setApprovalForAll works
The approval applies across all token IDs managed by this ERC-1155 contract, not only one ID or amount.
Parameters
| Name | Solidity type | Meaning |
|---|---|---|
| operator | address | Address whose contract-wide permission should change. |
| approved | bool | True to authorize the operator; false to revoke it. |