{"eip":5753,"title":"Lockable Extension for EIP-721","description":"Interface for disabling token transfers (locking) and re-enabling them (unlocking).","authors":["Filipp Makarov (@filmakarov)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-10-05","requires":[165,721],"discussionsTo":"https://ethereum-magicians.org/t/lockable-nfts-extension/8800","repo":"ERCs","label":"ERC-5753","officialUrl":"https://eips.ethereum.org/EIPS/eip-5753","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5753.md","url":"https://eips.huatuo.xyz/eip-5753/","tldr":{"en":"An ERC-721 extension that lets an owner lock an NFT in their own wallet, blocking transfers until a designated unlocker address releases it, so NFTs can be used as collateral or rented without leaving the holder's wallet.","ja":"所有者が自分のウォレット内で NFT をロックし、指定した unlocker アドレスが解除するまで移転をブロックできる ERC-721 の拡張。NFT を保有者のウォレットから出さずに担保やレンタルに使える。","ko":"소유자가 자신의 지갑 안에서 NFT를 잠그고, 지정된 unlocker 주소가 풀어줄 때까지 전송을 막을 수 있게 하는 ERC-721 확장. NFT를 보유자의 지갑 밖으로 내보내지 않고도 담보나 대여에 쓸 수 있다.","zh":"一项 ERC-721 扩展，让所有者在自己的钱包里锁定 NFT，在指定的解锁者地址释放它之前阻止转移，使 NFT 可以在不离开持有者钱包的情况下用作抵押或出租。"},"tags":["nft","erc-721","locking","collateral","rental"],"explainers":{"en":{"lang":"en","tldr":"An ERC-721 extension that lets an owner lock an NFT in their own wallet, blocking transfers until a designated unlocker address releases it, so NFTs can be used as collateral or rented without leaving the holder's wallet.","tags":["nft","erc-721","locking","collateral","rental"],"related":[721,165,5192,4907],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5753/","markdown":"## What problem does it solve?\n\nIn DeFi, using a token as collateral usually means depositing it into the lending contract. That works for ETH or ERC-20 tokens, but NFTs have utility that depends on *where they sit*: a profile picture verified on social media, a token-gated Discord role, a game item. Moving the NFT into an escrow contract breaks all of that.\n\nERC-5753 proposes a different pattern: the NFT stays in the owner's wallet but is **locked**, and only a named **unlocker** can release it or move it. The spec lists uses such as:\n\n- NFT-collateralised loans without escrow\n- Rentals without large collateral (the renter holds the token but cannot sell it)\n- Pay-by-instalment purchases\n- Extra safety: lock a valuable NFT in a hot wallet with a cold wallet as unlocker\n- Non-custodial staking and event tickets that cannot be resold mid-event\n\n## How it works\n\nThe interface adds three functions and two events to [ERC-721](/eip-721/):\n\n```solidity\ninterface ILockable {\n    event Lock(address indexed unlocker, uint256 indexed id);\n    event Unlock(uint256 indexed id);\n\n    function lock(address unlocker, uint256 id) external;\n    function unlock(uint256 id) external;\n    function getLocked(uint256 tokenId) external view returns (address);\n}\n```\n\nRules from the spec:\n\n- `getLocked` returns the unlocker for a locked token, or `address(0)` if unlocked.\n- While locked, every ERC-721 transfer **must revert** unless initiated by the unlocker, and `approve` must revert.\n- `getApproved` should return the unlocker, so it can move the token with standard transfer calls.\n- Calling `lock` on an already-locked token must revert.\n- If the unlocker transfers the token, it becomes unlocked after the transfer.\n- Locking with `address(1)` as unlocker locks the token permanently.\n- `supportsInterface(0x72b68110)` must return `true` ([ERC-165](/eip-165/)).\n\nMarketplaces should check `getLocked` and hide listings for locked tokens, since such orders cannot be filled.\n\n## Sample code\n\nA lending protocol checking and using a lock (ethers v6):\n\n```ts\nimport { Contract, ZeroAddress } from \"ethers\";\n\nconst nft = new Contract(nftAddress, [\n  \"function supportsInterface(bytes4) view returns (bool)\",\n  \"function getLocked(uint256) view returns (address)\",\n  \"function lock(address unlocker, uint256 id)\",\n], borrowerSigner);\n\nif (!(await nft.supportsInterface(\"0x72b68110\"))) throw new Error(\"not lockable\");\nif ((await nft.getLocked(tokenId)) !== ZeroAddress) throw new Error(\"already locked\");\n\n// Borrower locks the NFT with the lending contract as unlocker.\nawait (await nft.lock(lendingContract, tokenId)).wait();\n// On repayment the lender calls unlock(id); on default it can transferFrom\n// the NFT to itself, which also clears the lock.\n```\n\n## Things to know\n\n- **Status: Stagnant.** It has not progressed toward Final and the interface ID and details could still change if revived.\n- Locking is enforced only by the token contract itself. A collection must be deployed with this extension; you cannot add it to an existing NFT.\n- The unlocker is powerful: it can move the token at any time. Users should only name contracts or wallets they trust.\n- Related approaches: [ERC-5192](/eip-5192/) marks tokens as permanently soulbound, and [ERC-4907](/eip-4907/) adds a separate time-limited \"user\" role for rentals instead of locking.\n"},"ja":{"lang":"ja","tldr":"所有者が自分のウォレット内で NFT をロックし、指定した unlocker アドレスが解除するまで移転をブロックできる ERC-721 の拡張。NFT を保有者のウォレットから出さずに担保やレンタルに使える。","tags":["nft","erc-721","locking","collateral","rental"],"related":[721,165,5192,4907],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5753/","markdown":"## 何を解決するのか\n\nDeFi でトークンを担保にするには、通常それを貸付コントラクトに預け入れます。ETH や ERC-20 トークンならそれで済みますが、NFT には*どこにあるか*に依存する有用性があります。SNS で認証されたプロフィール画像、トークンゲートされた Discord のロール、ゲームアイテムなどです。NFT をエスクローコントラクトに移すと、これらがすべて壊れます。\n\nERC-5753 は別のパターンを提案します。NFT は所有者のウォレットに残ったまま**ロック**され、指名された**unlocker** だけがそれを解除したり動かしたりできます。仕様は次のような用途を挙げています。\n\n- エスクローなしの NFT 担保ローン\n- 大きな担保なしのレンタル（借り手はトークンを保持するが売却できない）\n- 分割払いでの購入\n- 追加の安全性: 価値のある NFT をホットウォレットでロックし、コールドウォレットを unlocker にする\n- ノンカストディアルなステーキングと、イベントの途中で転売できないイベントチケット\n\n## 仕組み\n\nこのインターフェースは [ERC-721](/eip-721/) に 3 つの関数と 2 つのイベントを追加します。\n\n```solidity\ninterface ILockable {\n    event Lock(address indexed unlocker, uint256 indexed id);\n    event Unlock(uint256 indexed id);\n\n    function lock(address unlocker, uint256 id) external;\n    function unlock(uint256 id) external;\n    function getLocked(uint256 tokenId) external view returns (address);\n}\n```\n\n仕様のルール:\n\n- `getLocked` はロックされたトークンの unlocker を返し、ロックされていなければ `address(0)` を返します。\n- ロック中は、unlocker が開始したものでない限り、すべての ERC-721 の移転は**必ず revert しなければならず**、`approve` も revert しなければなりません。\n- `getApproved` は unlocker を返すべきで、これにより unlocker は標準の移転呼び出しでトークンを動かせます。\n- すでにロックされているトークンに `lock` を呼ぶと revert しなければなりません。\n- unlocker がトークンを移転した場合、移転後はロックが解除されます。\n- unlocker に `address(1)` を指定してロックすると、トークンは恒久的にロックされます。\n- `supportsInterface(0x72b68110)` は `true` を返さなければなりません（[ERC-165](/eip-165/)）。\n\nマーケットプレイスは `getLocked` を確認し、ロックされたトークンの出品は、その注文が約定できないため非表示にするべきです。\n\n## サンプルコード\n\n貸付プロトコルがロックを確認して使う例（ethers v6）:\n\n```ts\nimport { Contract, ZeroAddress } from \"ethers\";\n\nconst nft = new Contract(nftAddress, [\n  \"function supportsInterface(bytes4) view returns (bool)\",\n  \"function getLocked(uint256) view returns (address)\",\n  \"function lock(address unlocker, uint256 id)\",\n], borrowerSigner);\n\nif (!(await nft.supportsInterface(\"0x72b68110\"))) throw new Error(\"not lockable\");\nif ((await nft.getLocked(tokenId)) !== ZeroAddress) throw new Error(\"already locked\");\n\n// Borrower locks the NFT with the lending contract as unlocker.\nawait (await nft.lock(lendingContract, tokenId)).wait();\n// On repayment the lender calls unlock(id); on default it can transferFrom\n// the NFT to itself, which also clears the lock.\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** Final に向けて進んでおらず、復活した場合にはインターフェース ID や詳細が変わる可能性があります。\n- ロックを強制するのはトークンコントラクト自身だけです。コレクションはこの拡張付きでデプロイされなければならず、既存の NFT に追加することはできません。\n- unlocker は強力です。いつでもトークンを動かせます。ユーザーは信頼できるコントラクトやウォレットだけを指名するべきです。\n- 関連するアプローチ: [ERC-5192](/eip-5192/) はトークンを恒久的なソウルバウンドとして印づけ、[ERC-4907](/eip-4907/) はロックの代わりに、レンタル用の期限付きの別の「user」役割を追加します。\n"},"ko":{"lang":"ko","tldr":"소유자가 자신의 지갑 안에서 NFT를 잠그고, 지정된 unlocker 주소가 풀어줄 때까지 전송을 막을 수 있게 하는 ERC-721 확장. NFT를 보유자의 지갑 밖으로 내보내지 않고도 담보나 대여에 쓸 수 있다.","tags":["nft","erc-721","locking","collateral","rental"],"related":[721,165,5192,4907],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5753/","markdown":"## 어떤 문제를 해결하나요?\n\nDeFi에서 토큰을 담보로 쓰려면 보통 대출 컨트랙트에 예치해야 합니다. ETH나 ERC-20 토큰은 그래도 되지만, NFT의 효용은 *어디에 있느냐*에 달려 있습니다. 소셜 미디어에서 인증된 프로필 사진, 토큰으로 접근을 제한한 Discord 역할, 게임 아이템 등입니다. NFT를 에스크로 컨트랙트로 옮기면 이 모든 것이 깨집니다.\n\nERC-5753은 다른 패턴을 제안합니다. NFT는 소유자의 지갑에 남아 있되 **잠기고**, 지명된 **unlocker**만 이를 풀거나 옮길 수 있습니다. 명세는 다음과 같은 용도를 듭니다.\n\n- 에스크로 없는 NFT 담보 대출\n- 큰 담보 없는 대여(빌리는 사람은 토큰을 가지고 있지만 팔 수 없음)\n- 분할 결제 구매\n- 추가 안전장치: 가치 있는 NFT를 핫 월렛에서 잠그고 콜드 월렛을 unlocker로 지정\n- 비수탁형 스테이킹과, 행사 도중 되팔 수 없는 행사 티켓\n\n## 어떻게 동작하나요?\n\n이 인터페이스는 [ERC-721](/eip-721/)에 함수 세 개와 이벤트 두 개를 추가합니다.\n\n```solidity\ninterface ILockable {\n    event Lock(address indexed unlocker, uint256 indexed id);\n    event Unlock(uint256 indexed id);\n\n    function lock(address unlocker, uint256 id) external;\n    function unlock(uint256 id) external;\n    function getLocked(uint256 tokenId) external view returns (address);\n}\n```\n\n명세의 규칙:\n\n- `getLocked`는 잠긴 토큰의 unlocker를 반환하고, 잠기지 않았으면 `address(0)`을 반환합니다.\n- 잠겨 있는 동안 모든 ERC-721 전송은 unlocker가 시작한 것이 아닌 한 **반드시 revert해야 하며**, `approve`도 revert해야 합니다.\n- `getApproved`는 unlocker를 반환해야 하며, 그래야 unlocker가 표준 전송 호출로 토큰을 옮길 수 있습니다.\n- 이미 잠긴 토큰에 `lock`을 호출하면 revert해야 합니다.\n- unlocker가 토큰을 전송하면 전송 후에 잠금이 풀립니다.\n- `address(1)`을 unlocker로 하여 잠그면 토큰은 영구히 잠깁니다.\n- `supportsInterface(0x72b68110)`은 `true`를 반환해야 합니다([ERC-165](/eip-165/)).\n\n마켓플레이스는 `getLocked`를 확인하고, 잠긴 토큰의 매물은 체결될 수 없으므로 숨겨야 합니다.\n\n## 샘플 코드\n\n대출 프로토콜이 잠금을 확인하고 사용하는 예(ethers v6):\n\n```ts\nimport { Contract, ZeroAddress } from \"ethers\";\n\nconst nft = new Contract(nftAddress, [\n  \"function supportsInterface(bytes4) view returns (bool)\",\n  \"function getLocked(uint256) view returns (address)\",\n  \"function lock(address unlocker, uint256 id)\",\n], borrowerSigner);\n\nif (!(await nft.supportsInterface(\"0x72b68110\"))) throw new Error(\"not lockable\");\nif ((await nft.getLocked(tokenId)) !== ZeroAddress) throw new Error(\"already locked\");\n\n// Borrower locks the NFT with the lending contract as unlocker.\nawait (await nft.lock(lendingContract, tokenId)).wait();\n// On repayment the lender calls unlock(id); on default it can transferFrom\n// the NFT to itself, which also clears the lock.\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** Final을 향해 진행되지 않았으며, 되살아난다면 인터페이스 ID와 세부 사항이 바뀔 수 있습니다.\n- 잠금은 토큰 컨트랙트 자체만이 강제합니다. 컬렉션은 이 확장과 함께 배포되어야 하며, 기존 NFT에 추가할 수는 없습니다.\n- unlocker는 강력합니다. 언제든 토큰을 옮길 수 있습니다. 사용자는 신뢰하는 컨트랙트나 지갑만 지명해야 합니다.\n- 관련 접근 방식: [ERC-5192](/eip-5192/)는 토큰을 영구 소울바운드로 표시하고, [ERC-4907](/eip-4907/)은 잠금 대신 대여를 위한 별도의 기한제 \"user\" 역할을 추가합니다.\n"},"zh":{"lang":"zh","tldr":"一项 ERC-721 扩展，让所有者在自己的钱包里锁定 NFT，在指定的解锁者地址释放它之前阻止转移，使 NFT 可以在不离开持有者钱包的情况下用作抵押或出租。","tags":["nft","erc-721","locking","collateral","rental"],"related":[721,165,5192,4907],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5753/","markdown":"## 它解决什么问题？\n\n在 DeFi 中，把代币用作抵押通常意味着把它存入借贷合约。这对 ETH 或 ERC-20 代币行得通，但 NFT 的效用取决于它*放在哪里*：在社交媒体上验证过的头像、需要持有代币才能进入的 Discord 角色、游戏道具。把 NFT 转入托管合约会破坏这一切。\n\nERC-5753 提出了另一种模式：NFT 留在所有者的钱包里，但被**锁定**，只有指定的**解锁者（unlocker）**才能释放或转移它。规范列出了这些用途：\n\n- 无需托管的 NFT 抵押贷款\n- 无需大额抵押的租赁（租户持有代币但不能出售）\n- 分期付款购买\n- 额外的安全性：把贵重的 NFT 锁在热钱包里，并以冷钱包作为解锁者\n- 非托管质押，以及活动期间无法转售的活动门票\n\n## 它如何运作\n\n该接口在 [ERC-721](/eip-721/) 之上增加三个函数和两个事件：\n\n```solidity\ninterface ILockable {\n    event Lock(address indexed unlocker, uint256 indexed id);\n    event Unlock(uint256 indexed id);\n\n    function lock(address unlocker, uint256 id) external;\n    function unlock(uint256 id) external;\n    function getLocked(uint256 tokenId) external view returns (address);\n}\n```\n\n规范中的规则：\n\n- `getLocked` 对已锁定的代币返回其解锁者，未锁定则返回 `address(0)`。\n- 锁定期间，每一次 ERC-721 转移都**必须 revert**，除非由解锁者发起，并且 `approve` 必须 revert。\n- `getApproved` 应返回解锁者，使其可以用标准的转移调用来移动代币。\n- 对已锁定的代币调用 `lock` 必须 revert。\n- 如果解锁者转移了代币，转移之后它就变为未锁定。\n- 以 `address(1)` 作为解锁者进行锁定，会永久锁定代币。\n- `supportsInterface(0x72b68110)` 必须返回 `true`（[ERC-165](/eip-165/)）。\n\n市场应检查 `getLocked`，并隐藏已锁定代币的挂单，因为这类订单无法成交。\n\n## 示例代码\n\n借贷协议检查并使用锁定（ethers v6）：\n\n```ts\nimport { Contract, ZeroAddress } from \"ethers\";\n\nconst nft = new Contract(nftAddress, [\n  \"function supportsInterface(bytes4) view returns (bool)\",\n  \"function getLocked(uint256) view returns (address)\",\n  \"function lock(address unlocker, uint256 id)\",\n], borrowerSigner);\n\nif (!(await nft.supportsInterface(\"0x72b68110\"))) throw new Error(\"not lockable\");\nif ((await nft.getLocked(tokenId)) !== ZeroAddress) throw new Error(\"already locked\");\n\n// Borrower locks the NFT with the lending contract as unlocker.\nawait (await nft.lock(lendingContract, tokenId)).wait();\n// On repayment the lender calls unlock(id); on default it can transferFrom\n// the NFT to itself, which also clears the lock.\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 它没有向 Final 推进，如果重启，接口 ID 和细节仍可能变化。\n- 锁定只由代币合约自身强制执行。集合必须在部署时就带有该扩展；你无法把它添加到已有的 NFT 上。\n- 解锁者的权力很大：它可以随时转移代币。用户应该只指定自己信任的合约或钱包。\n- 相关做法：[ERC-5192](/eip-5192/) 把代币标记为永久灵魂绑定，[ERC-4907](/eip-4907/) 则为租赁增加一个独立的限时\"用户\"角色，而不是锁定。\n"}}}
