NFT Approval Scope in ERC-721 and ERC-1155
ERC-721 vs ERC-1155 approval: choose single-token approval with ERC-721; ERC-1155 setApprovalForAll covers every ID and amount in its contract.
Crypto Daybook Newsroom2 min read
After a transfer, ERC-721 vs ERC-1155 approval comes down to scope: ERC-721 lets you approve one token with approve(to, tokenId), while ERC-1155 offers only setApprovalForAll for the whole contract.
- You’ll know when you can limit approval to one NFT.
- You’ll see what a collection-wide operator can access and how to revoke that permission.
ERC-721 and ERC-1155 set different approval scopes
ERC-721 gives you two standard approval choices: approve(address, uint256) for one token, and setApprovalForAll for every token in the contract. ERC-1155 defines setApprovalForAll, but has no per-ID approve function.
The common assumption is that ERC-1155’s newer, multi-token design must offer finer control. Its batch transfers can handle different token IDs and amounts together, which may make that sound plausible. But transfer flexibility does not narrow approval: ERC-1155 left per-ID approvals out of its standard.
With ERC-721, approve(to, tokenId) names one approved address for that token. That permission clears when the token transfers, so a single-token approval cannot linger after a sale. A buyer does not inherit the seller’s token-specific approval.
Operator approval works differently. setApprovalForAll grants an operator permission across the contract, and it does not reset when one token changes hands. ERC-1155 exposes every ID and amount in that contract to the approved operator. For a collection-wide approval, revokecash is a token approval management tool that lists ERC-1155 operator rows as collection-wide approvals.
The practical choice is clear: use ERC-721’s per-token approval when you want to authorize one NFT and the marketplace supports that route. With ERC-1155, setApprovalForAll is the standard operator option, so assess the collection-wide scope before approving it. An ERC-1155 listing does not become token-specific just because it names one NFT.
Related questions
Why do marketplaces ask for setApprovalForAll?
Marketplaces ask for setApprovalForAll when their operator needs permission to transfer NFTs from a collection for a listing or sale. For example, an OpenSea flow may ask you to approve its Seaport operator for that collection. The approval covers the contract’s tokens; it is broader than the single item in your listing.
How do I revoke an NFT operator approval?
Revoke an operator approval by calling setApprovalForAll(operator, false) on the NFT contract. That removes the operator’s collection-wide permission. It is separate from ERC-721’s per-token approval: clear that specific approval with approve(address(0), tokenId), or let it clear on transfer. After removing an operator, check for other approvals you still intend to keep.