Loops HouseLeash

NEAR HACKATHON
Links
Team
1 member- ALOwner
Ali Ghaedi
Overview
Leash lets you give an AI agent money without giving it the keys to everything. The owner funds a NEAR vault contract and registers the agent as a function-call access key that can only call pay, report_payee and emergency_pause, so no full-access key ever reaches the agent. Every payment is checked on-chain against per-transaction and rolling 24h caps, a payee allow/blocklist, and an owner-approval queue above a threshold; there is also a pause switch, and each payment emits an NEP-297 receipt. A companion registry contract aggregates scam/prompt-injection reports into clear/warn/block verdicts (trusted reporters block immediately). A TypeScript wrapper (near-api-js) runs a free preflight before signing, but the vault enforces the rules even when the wrapper is bypassed. Live on testnet (leash-vault.testnet, leash-registry.testnet): the demo shows a prompt-injected drain refused, an over-cap payment refused, a normal 0.1 NEAR payment sent with an on-chain receipt, and both attacks rejected by the contract when a compromised agent signs directly. Built with NEAR function-call keys, near-sdk 5.30, and near-workspaces tests (28 passing).