ERC-8451 Permanent lock extension for lockable tokens (Permanent Locks for Lockable Tokens)
Draft · NFTs & multi-token · created 2026-10-19
Extends the lock signal of ERC-6982 to distinguish temporary trading suspension from permanent non-transferability, and allows the same lock interface to be used not only for ERC-721 but also for ERC-1155.
Why it is needed
Creators often temporarily block secondary trading during a public mint period, before reveal, or during migration, while in other cases, such as credentials or membership badges, a collection is permanently non-transferable from the outset. In both cases, marketplaces need to pre-filter listings, offers, and sales that the contract will reject. However, ERC-6982 only provides a way to lock an entire collection via a DefaultLocked event and override individual tokens via a Locked event, and it does not distinguish when that lock will be lifted. It also requires ERC-721 only, so it cannot be used with ERC-1155 contracts, and it does not define whether minting and burning continue while locked. To block trading during a public mint, minting itself must continue, and this case is left undefined. ERC-5192 handles permanent locking, but it requires emitting one event per token, so a collection of 10,000 tokens would need 10,000 logs at deployment time.
What to implement
event PermanentlyLocked();: Emitted when every token in the contract becomes permanently locked.error TokenLocked(uint256 tokenId);: Emitted together when a holder transfer of a locked token is attempted and the call reverts.function permanentlyLocked() external view returns (bool);: Returns whether every token in the contract is permanently locked.
In depth
An extension built on top of ERC-6982
This proposal reuses ERC-6982's DefaultLocked and Locked events as is. The only additions are the PermanentlyLocked event, the permanentlyLocked() view function, and the TokenLocked(uint256 tokenId) error. The contract must implement ERC-721 or ERC-1155 along with ERC-6982, and supportsInterface must return true for this proposal's identifier 0x9051c597, ERC-6982's 0x6b61a747, and either ERC-721 (0x80ac58cd) or ERC-1155 (0xd9b67a26).
Only holder transfers are restricted
A holder transfer is defined as a transfer where neither the sender (from) nor the recipient (to) is the zero address. Minting (from is the zero address) and burning (to is the zero address) are not holder transfers, so the locked state does not by itself block minting. Whether burning is allowed is up to the contract. It is recommended that a failed holder transfer of a locked token revert with TokenLocked(tokenId), and that for batch transfers the error carries the first locked tokenId in the order listed in the batch.
Procedure for transitioning to a permanent lock
Before the contract emits PermanentlyLocked, defaultLocked() must already be true, and Locked(tokenId, true) must first be emitted for every tokenId that had individually been unlocked to false. This also applies to token IDs that do not currently exist, such as an ERC-1155 ID that has been fully burned. Even if such an ID is later reminted, consumers replaying events will still treat it as locked since the most recent Locked event is true. After PermanentlyLocked, defaultLocked() remains permanently true, locked() for every existing token is also true, all holder transfers revert, and DefaultLocked(false) or Locked(tokenId, false) are never emitted again.
Revoking approval is always open
Even while locked, calls that remove existing approvals, namely setApprovalForAll(operator, false) or ERC-721's approve(address(0), tokenId), must not revert. After a permanent lock, once that call completes, isApprovedForAll and getApproved must return a state showing the approval is gone. During a temporary lock, only reverting such calls is prohibited; rejecting new approvals is still allowed. This is because revoking approval is the only way a holder who no longer trusts an operator capable of burning can protect themselves.
Extending to ERC-1155
In ERC-1155 contracts, tokenId is read as the token type ID. Since ERC-6982 requires locked() to revert for a token that does not exist, this proposal defines an ERC-1155 token ID as existing when its total supply is greater than 0. Accordingly, ERC-1155 contracts must track per-ID supply, which often requires a separate extension such as OpenZeppelin's ERC1155Supply.
Standardized reverts and consumer handling
TokenLocked(tokenId) ensures every compliant contract uses the same revert data for transfers rejected due to a lock. However, during a safe transfer, the receiving contract's onERC721Received or onERC1155Received hook may also revert with the same error, so consumers should not assume a lock from this revert alone and should first check locked(tokenId). Consumers should not create, display, or fill listings, offers, or sales for a locked token, and may keep existing orders open while permanentlyLocked() is false. If a chain reorg removes lock-related events, consumers should reread defaultLocked(), locked(), and permanentlyLocked() to confirm the current state rather than trying to roll back the removed events.
Relationship to ERC-5192
ERC-5192 also addresses permanent locking (soulbound tokens), but it must emit one event per token. With this proposal, a collection that is permanently non-transferable can signal its entire state with just two deployment-time events, DefaultLocked(true) and PermanentlyLocked(). Since the two standards share the locked(uint256) function, a single contract can implement both, and ERC-5192 can still be used solely to make individual tokens soulbound.
A proposal that has not yet been finalized
This proposal is currently in Draft status; its detailed rules or interface may change, or the proposal may be withdrawn.
Things to watch out for
- Lock signals are self-reported by the contract: The locked and permanentlyLocked values are self-reported by the token contract itself, so a contract could report itself as locked while still allowing transfers, or report a permanent lock while still allowing transfers. Consumers should use this signal only to hide orders, and must still simulate the transaction to confirm at the time of settlement.
- Permanent locks on upgradeable contracts: If the contract is an upgradeable proxy, or if transfer checks are delegated to logic an admin can change, an upgrade alone can reverse a permanent lock without any unlock event. Before marking a token as non-transferable, check whether the contract is upgradeable and who controls that authority.
- Control over the lock is control over the secondary market: A creator can permanently lock a token at any time to permanently eliminate the secondary market, keep a temporary lock in place indefinitely, or apply it right before a sale to make existing orders unfillable. It is good practice to show who can change the lock and whether it can still be unlocked.
- Giving up unlock authority can make a temporary lock effectively permanent: If the last account able to unlock a token gives up that authority, for example by transferring ownership, the lock can never be lifted again, yet permanentlyLocked() will keep returning false. If consumers keep orders open while waiting for an unlock, orders that will never be filled can pile up indefinitely.
- Operator burns and revoking approval: In contracts where an operator can burn tokens, revoking approval on a locked token is the holder's only defense. Some contracts always treat certain operators, such as a marketplace transfer contract, as approved by default, so even if a revocation call appears to succeed, the actual approval may remain in effect.