Loops HouseTollgate

NEAR HACKATHON
Team
1 member- OLOwner
Oladipo Adesiyan
Overview
AI agents that can pay can be tricked into paying: an inflated price, a swapped payee, a fake deposit address, a hijacked refund, a replay, a prompt injection. Spending caps limit the damage; they do not check that a request is the one the owner allowed.Tollgate is a payment firewall between an agent and its wallet. Twelve fail-closed checks compare every payment request with a mandate the owner wrote and with facts Tollgate fetches itself from NEAR Intents (1Click): the real deposit address, payee, amount, refund target and an independent price quote. The result is ALLOW, DENY or NEEDS_APPROVAL. Only an ALLOW reaches a separate signer, which rebuilds the transaction from the stored decision, applies its own cap and signs it once. Payments go from NEAR itself, as a NEP-141 USDC transfer to the 1Click deposit address, or from an EVM chain. Every action is written to a hash-chained audit log.The same gateway runs the agent economy inside the owner's limits: negotiation under a price ceiling, workers hired on carved-out budgets and paid in full only when their work passes a check, and earnings credited only against a verified receipt.Proof: a real 0.21 USDC payment on NEAR mainnet, cleared by all twelve checks on live 1Click and settled by it (transaction linked in the README); a benchmark where Tollgate stopped 16 of 16 attacks and allowed 5 of 5 normal payments, against 0 for a naive agent and 5 for a modelled stock policy; over 800 automated tests and green CI. pnpm demo runs the whole story offline in seconds, and the owner dashboard shows every decision with its evidence. The SDK is on npm as trytollgate. Stated limits are in the README.