Loops House



InvoiceGuard

NEAR HACKATHON
Links
Team
1 member- RAOwner
Rafael
Overview
InvoiceGuard is a NEAR smart contract that acts as a payment-authorization layer for AI agents. The agent can submit requests, but the contract — not the agent — decides whether funds may move. It verifies Ed25519-signed vendor invoices over a canonical Borsh payload, binds every payout to a registered destination, enforces replay protection, spending limits and an internal treasury ledger, and requires a separate administrator decision for manual payments. A deterministic mock agent demonstrates that even a fully manipulated agent cannot redirect funds. Demonstrated in a local NEAR Sandbox with 90 unit tests, 9 shared Rust↔TypeScript vectors and 26 integration checks.
One-liner: an on-chain guardrail that limits an agent's financial authority independently of the agent's behaviour.