Locked and staked NFTs
Mark tokens as ineligible for trading while transfers are disabled
If a token is staked or locked and cannot transfer, emit a supported event. OpenSea then marks the token as ineligible for trading, which prevents users from attempting a listing or sale that the contract will reject.
// ERC-5192
event Locked(uint256 tokenId);
event Unlocked(uint256 tokenId);
// ERC-5753
event Lock(address indexed unlocker, uint256 indexed id);
event Unlock(uint256 indexed id);
// Other supported events
event TokenLocked(uint256 indexed tokenId, address indexed approvedContract);
event TokenUnlocked(uint256 indexed tokenId, address indexed approvedContract);
event Stake(uint256 indexed tokenId);
event Unstake(uint256 indexed tokenId, uint256 stakedAtTimestamp, uint256 removedFromStakeAtTimestamp);
event Staked(address indexed user, uint256[] tokenIds, uint256 stakeTime);
event Unstaked(address indexed user, uint256[] tokenIds);OpenSea uses only the token ID event parameter to enable or disable trading.
Updated about 5 hours ago
