Loops HouseTabWrit

NEAR HACKATHON
Team
1 member- LEOwner
Leknax
Overview
Crypto subscriptions force users to push every renewal or grant an unlimited token approval. Autonomous AI agents are given raw keys, so one prompt injection becomes a wallet drain.
TabWrit is a non-custodial, contract-enforced spending-Tab layer on NEAR. A user funds a vault once and keeps the right to withdraw. For each merchant or agent they open a Tab: a per-charge cap, period budget, lifetime cap, expiry and receiver policy. The spender holds a NEAR Function-Call Access Key scoped only to charge; the protocol forbids such keys from attaching a deposit. Every charge consumes a monotonic nonce, violations are rejected on-chain, and the owner can pause or revoke instantly. A prompt-injected agent that tries to pay an attacker is rejected with RECEIVER_NOT_ALLOWED.
Merchants and agents can charge gaslessly: they sign a NEP-366 delegate off-chain and a relayer pays gas, while the relayer refuses FullAccess keys and non-charge calls. Revenue comes from merchant SaaS and prepaid relayer gas credits; the vault never takes a fee and there is no token. Merchants can quote a payout in the asset and chain they choose through NEAR Intents (1Click); the live quote path is integrated, while the testnet demo performs real NEP-141 charges and a real x402-style agent API payment.
TabWrit is the spending guardrail that universal NEAR Intents checkout and agent swarms need: the payer keeps custody, the payee gets a bounded pull right, and a compromised agent cannot rewrite the rule.
Evidence: 16 Rust tests, 23 real testnet Attack Lab checks, 12/12 gasless checks, 4/4 prompt-injection checks and 13/13 x402 agent API checks, all with transaction links. The hackathon prototype is testnet-only; mainnet 1Click settlement is optional future work and is not claimed as executed.