Loops HouseSettled

NEAR HACKATHON
Links
Team
1 member- ASOwner
Ashwin Goyal
Overview
Payments get retried all the time: a timeout, a crashed agent, a double click. Most systems can't tell a retry from a new payment, so the same invoice gets paid twice.
Settled is a NEAR contract that makes a retry with the same idempotency key pay only once. The first call records the key, forwards the funds, and stores the outcome on-chain. A second call with the same key is refused and the attached funds are refunded in the same transaction chain. Failures are recorded honestly too, including FAILED_NO_REFUND.
NEAR is what makes this work: the contract itself is the sender, so the check, the refusal and the refund all happen inside one NEAR transaction chain instead of a server you have to trust. Anyone can verify a receipt against the chain.
It ships with a TypeScript SDK, a web app with a live console and receipt verification, and an MCP tool so AI agents can pay safely and get ALREADY_RECORDED instead of paying twice. Built at NEAR HACKATHON, live on testnet; the 1Click integration is a labelled mock.