Loops HouseNearGate

NEAR HACKATHON
Team
1 member- NNOwner
nnovida
Overview
NearGate puts any HTTPS API behind an x402 (HTTP 402) paywall that AI agents pay per call in native NEAR: no sign-up, no card, no API key.
How it works: an unpaid call to the gateway returns a 402 invoice. The agent calls pay(service_id, nonce) on our own registry contract (Rust, near-sdk 5.30.1), which forwards exactly the price to the seller in the same transaction. The agent retries with the tx as proof; the gateway verifies it on chain, serves the response and records an attestation, so every API earns a payment-backed score (a seller paying itself is never counted).
NEAR features used: our own contract (catalog, payments, escrow, attestations, scores, NEP-297 events, no admin); function-call access keys, so an agent key can only call pay_from_escrow and spend a prepaid escrow; NEP-366 meta transactions, so the gateway relays the agent's payment and pays the gas.
Shipped: a CLI (@neargate/cli on npm: wrap, buy, escrow, agent-key, mcp), an SDK (@neargate/sdk), an MCP server with 5 tools for Claude Desktop, a Claude-based buyer agent, and a dashboard with the live catalog and docs.
Live on NEAR testnet: registry neargate-app-registry.testnet, 9 services from 4 sellers, every active one paid and attested on chain; hosted gateway and dashboard (neargate-dashboard-production.up.railway.app). 1,321 TypeScript tests and 59 contract tests. Try it with no keys: npm install && npm run demo.
NearGate is the NEAR port of AgentGate, an earlier x402 gateway; the README's "Built on AgentGate" section discloses what existed before and what is new.