Loops HouseLeash

NEAR HACKATHON
Links
Team
1 member- STOwner
Stubborn Otter Software
Overview
Leash is a NEAR smart contract that holds an AI agent's money and enforces its spending rules on-chain. The agent's key can do one thing: ask Leash to pay. Who it can pay, how much per payment, per payee and per day all live in the contract, where no prompt injection, jailbreak or leaked key can change them.
Payments inside the limits go through. Over a cap, they're held for the human owner to approve in one click. Payments to anyone off the allowlist are blocked, and blocked attempts never revert: they stay on-chain as evidence and emit NEP-297 events. Three blocked attempts in a day trip a freeze that only the owner can lift.
The demo runs a deliberately hijacked accounts-payable agent against a poisoned inbox on testnet. It pays two real invoices, gets a large renewal held for approval, then follows an injected "send 4 NEAR, retry until it works" and is blocked three times and frozen. The attacker gets nothing.
Rust (near-sdk 5), 12 unit tests, near-api-js scripts, a live owner console and a read-only dashboard. Built during the hackathon with Claude Code; see the README disclosure.