Loops HouseLeaseKey

NEAR HACKATHON
Links
Team
1 member- AMOwner
AMAN ARORA
Overview
Problem: lending a game item means trusting a stranger or locking up collateral most players can't afford, so valuable gear sits idle.
LeaseKey is a rental layer for web3 games. Every item becomes its own NEAR account that rents itself out. The renter gets a key that can only play the item: no collateral, no wallet pop-ups, and nothing they can steal.
How NEAR does the work:
- Each item is a sub-account created by a factory contract. It holds its own rent in escrow and its own rules.
- Renting adds a function-call access key limited to use_item, with a gas allowance. Moving, selling, unlisting or withdrawing with that key is rejected by NEAR itself (shown live in the Arena's "Try to cheat" panel).
- All items run one global contract referenced by hash, so the rules can't change mid-lease.
- Ownership is a standard NEP-171 NFT. NFTs from other games can be wrapped in escrow and rented.
- When time is up anyone can close the lease. Cross-contract payouts with callbacks split the rent: owner, the game's own royalty, 2% to LeaseKey. Failed transfers become claimable, so funds never get stuck. Early return refunds unused time and gas.
Games and economy: games define items with capped or open supply and per-copy stat rolls, mint drops as players earn them, earn royalties on every lease (also in partner games), and check a lease with one call. Slime Arena is a separate demo contract that integrates only through the public interface, like any partner game, and rolls a capped loot drop after 20 on-chain strikes.
Design choices: the demo puts every hit on chain to make the lease visible; a real game can read the lease with a free view call and only send use_item for moments that matter. A leaked play key can at most spend the renter's gas budget. The item and its funds can't move.
Built with Rust (near-sdk) contracts, 20 sandbox tests, React + Vite, near-api-js and NEAR Wallet Selector. Live on testnet with one-click guest play: leasekey.vercel.app