A modern, decentralized NFT leasing protocol with a lease-to-own model. Empower users to acquire NFTs through affordable installments, with full ownership transferred after all payments are completed. Built for security, transparency, and flexibility on Ethereum.
LeaseToOwnNFT is a smart contract system that enables NFT owners to offer their assets for lease with an option to own. Lessees can pay in installments, and after completing all payments, they claim full ownership of the NFT. If payments are missed for over 30 days, the lease is revoked and the NFT returns to the vault.
- Lease-to-Own: Users lease NFTs and become owners after all installments are paid.
- Installment Payments: Flexible payment structure, with each installment sent directly to the vault.
- Automatic Revocation: If a lessee misses a payment for 30+ days, the NFT is reclaimed.
- Secure & Non-Custodial: No ETH is held in the contract; all funds go directly to the vault address.
- Open & Transparent: All lease terms and statuses are viewable on-chain.
- Owner Registers Lease Terms:
- Sets price per installment, total installments, and vault address for each NFT.
- User Starts Lease:
- Any user can start leasing an available NFT.
- Pay Installments:
- Lessee pays installments in ETH. Each payment is sent to the vault.
- Claim Ownership:
- After all installments are paid, the lessee claims the NFT and becomes the owner.
- Revocation:
- If a payment is overdue by more than 30 days, anyone can trigger revocation, returning the NFT to the vault.
- Foundry (for Solidity development, testing, and deployment)
- Node.js & npm (for scripting, if needed)
forge build
forge testforge script script/LeaseToOwnNFT.s.sol --rpc-url <your_rpc_url> --private-key <your_private_key>
- Smart contract:
src/LeaseToOwnNFT.sol - Foundry Book: https://book.getfoundry.sh/
Pull requests and issues are welcome! Help us improve the protocol and expand its features.
MIT