Loops HouseAshabi Wallet

NEAR HACKATHON
Links
Team
1 member- EMOwner
Emmy D West
Overview
Ashabi Wallet is a smart AI agent with its own NEAR wallet that finds and pays for services by itself, while its spending rules live in a locked contract no prompt can change.
The problem: an agent that holds keys can be talked into paying anyone. A poisoned page, invoice or tool result is enough, and a better prompt is a promise, not a lock.
What we built: the agent can only ask for payments. A NEAR contract holds the funds and checks every request against the owner's rules — approved payees, a daily budget, human approval above a threshold, a velocity cap, a shared blocklist and a kill-switch — and records every refusal on-chain. Providers sell over an x402-style pay-per-request flow: they answer 402, the agent pays through the vault, and the data unlocks only after the receipt checks out on-chain. Two providers are live: a demo shop, and Open Data Desk, which sells live exchange rates, Lagos air quality and earthquake data.
Anyone can try it with no wallet. /try hands you a sandbox wallet in one click, /challenge lets you type any prompt injection and see the contract's verdict, and /verify reads the chain live and shows the demo vault is locked with 0 full-access keys. Owners approve big payments from their phone. Builders can plug in with the TypeScript SDK and a local MCP server. A factory creates a personal vault per user from a NEP-591 global contract. 70 Rust tests and CI run on every push.
Why NEAR: function-call access keys scope the agent to request_payment only, so it cannot transfer funds or change the rules. Named accounts make allowlists readable. The demo runs on testnet. Accounts: guardian.gw-emmy.testnet (vault), factory.gw-emmy.testnet, gw-emmy-agent.testnet. After the contract was locked, a 0.05 NEAR purchase still settled (BXuf9w2bTSHoDUgiiX83jgsQsFSNSWhgMx9eD3ezmyV2) and a 2 NEAR hijack was still refused (FU8MCuWZmUs734CL54McjmH7j75PCWqZZVAaBbHLnnGD).