ERC-721 function
setApprovalForAll(address,bool)
Enables or revokes an ERC-721 operator for all NFTs owned 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
Operator approval is broader than approve(address,uint256): it applies to every current and future NFT held by msg.sender in this collection.
Parameters
| Name | Solidity type | Meaning |
|---|---|---|
| operator | address | Address whose collection-wide permission should change. |
| approved | bool | True to authorize the operator; false to revoke it. |