Loops HouseLeash

NEAR HACKATHON
Team
1 member- MAOwner
Matthew Busel
Overview
Problem: AI agents that pay for APIs and data usually hold a key that can do anything, so one prompt injection or leaked key drains the wallet. Leash gives an agent money without the keys. The agent holds only a NEAR function-call access key scoped to pay() and request_payment() on its own wallet contract (Rust, near-sdk 5). The contract enforces per-payment, rolling 24h and per-receiver caps, rate limits, allow/deny lists, contracts-only-if-allowlisted, required purpose memos, freeze with guardians, an auto-freeze tripwire, and owner approval for over-limit payments, and it checks a shared blocklist registry (N distinct reporters with evidence) through a cross-contract call before any NEAR moves, rolling back on failure. An agent-side counterparty check (account age and activity, contract code hash changes, prior payments, blocklist) returns allow, warn or block and refuses to sign on block. In the recorded testnet demo a local LLM reads an invoice with a prompt injection and tries to pay the attacker; the wrapper refuses, the contract blocks the direct call, and the NEAR protocol rejects a plain transfer, a withdraw call and an add-key signed with the agent key. 49 contract unit tests, 41 live testnet checks, read-only dashboard at https://near-leash.vercel.app. Built by Matthew Busel (Tensorust LLC). Second project by the same author: Tollgate (https://github.com/Mattbusel/tollgate).