Loops HouseSpendGuard

NEAR HACKATHON
Links
Team
1 member- PIOwner
Pintu Kumar
Overview
SpendGuard is a deterministic policy firewall between an AI agent and its NEAR wallet. Before any payment is signed, a policy engine checks it against an owner-set policy: a per-transaction cap (1 NEAR), a daily cap (2 NEAR), a large-payment escalation threshold, and a recipient allowlist. In-policy payments are executed by a scoped function-call access key through an on-chain guard contract, so the agent cannot exceed the policy even if its prompts are manipulated. Out-of-policy payments are denied before signing, and every verdict is written to an auditable log. The live testnet demo shows all three outcomes: a 0.25 NEAR in-policy payment executed on-chain (tx 4tGCEgsGRBzaKBHBhfviSJKB99PQ1kgufcokbPpR6Ss8), a 1.1 NEAR payment denied for exceeding the per-transaction cap, and a payment to a non-allowlisted recipient denied. 85 automated tests; TypeScript and Node; testnet prototype.