Settld

Per-milestone USDC escrow: Chainlink checks the work, AI judges and World ID humans settle disputes

Settld

Created At

ETHGlobal Mumbai

Winner of

World

World - Best Use of IDKit

Project Description

Settld is an escrow for freelance and creator deals, paid in USDC on Arc. Instead of one lump payment, a client splits a deal into promises (milestones), each with its own amount, deadline and a check that can be verified automatically: a YouTube video posted by a named channel before a date, a hashtag in the description, a link that's live or contains certain text, a GitHub pull request merged, or an "AI check" where three language models judge the work against a written brief.

The flow: the client proposes the deal (no money moves yet), the freelancer accepts, and a Chainlink workflow certifies it before anyone can fund it. Certification runs a deadlock checker that explores every state the deal can reach and proves money can never get stuck, for example through circular dependencies between promises. The client then locks the full amount in the escrow contract. When the freelancer submits proof, a second Chainlink workflow verifies it and reports Verified or Failed on-chain. After a short dispute window the money is paid to the freelancer or refunded to the client automatically, promise by promise.

If either side disagrees, they can dispute. That opens a case in an AI court: three AI judges (different model providers) give blind opinions, then discuss over several rounds under strict rules enforced on-chain (word budgets, a time limit, and a vote can only change by citing evidence). The majority decides. Either party can then appeal by paying 10% of the disputed amount, which sends the case to a panel of three human arbitrators. Each arbitrator is verified as a unique person with World ID, votes in secret (commit then reveal), earns a share of the fee for voting with the majority, and is suspended after two votes against it. Because a strike is tied to the person's World ID, not their wallet, a new wallet can't reset it.

Sign-in is just an email code: Circle creates a wallet for each user, and every payment is approved with the user's own PIN, so Settld never holds keys or moves anyone's money. USDC is the only money in the system: deals, fees and gas are all paid in USDC on Arc.

How it's Made

Contracts (Solidity, built in Arc Studio, tested with Hardhat + Foundry and deployed on Arc testnet, where USDC is also the gas token). Our first escrow was deployed straight from Arc Studio; the v2 contracts were written there and deployed with Hardhat. The Settld website and API talk to them directly on Arc: every user action is a contract call from that user's Circle wallet, approved with their PIN. ClauseEscrow holds the USDC and the per-promise state machine; AICourt runs the AI deliberation rules and computes the verdict; JurorRegistry links World ID nullifiers to wallets and runs the human commit-reveal panels, strikes and suspensions. Each contract only accepts verification and court reports through Chainlink's forwarder.

Chainlink CRE (TypeScript workflows compiled to WASM): WF0 certifies a deal by reading it straight from the chain, recomputing its spec hash and running our deadlock checker. WF1 verifies submitted work through the YouTube Data API, HTTP fetches, the GitHub API, or three LLMs voting. WF3 is the AI court: Groq gpt-oss-120b, Google Gemini and NVIDIA Nemotron deliberate one round per run. Our CRE account only has simulation access, so a watcher on our server triggers each workflow with "cre workflow simulate --broadcast" when it sees the triggering on-chain event, and the report reaches the contracts through Chainlink's forwarder on Arc testnet. A keeper releases or refunds each promise after its dispute window.

Identity and payments: Circle user-controlled wallets (email code, PIN, smart-contract wallets on Arc) for every party. World ID 4.0 through IDKit, with backend-signed requests and proofs verified with World's API; our server then signs an attestation (nullifier, wallet) that JurorRegistry checks on-chain before giving the person an arbitrator seat.

Notable or hacky parts:

  • The deadlock checker is one pure TypeScript file shared by the browser (live feedback while you draft a deal) and the Chainlink workflow, so both run identical logic. It does a full reachability search: explore every state forward, then work backwards from "all money settled".
  • Court transcripts are stored on our server, but each round's keccak hash goes on-chain and the next round checks it, so the server can't alter what a judge said.
  • Evidence is wrapped in tags the models are told to treat as data, never instructions, to resist prompt injection.
  • Circle doesn't echo our reference IDs on user-wallet transactions, so the server matches each action to its transaction itself.
  • The wallet history reads every transaction's receipt from Arc and sums the USDC Transfer logs, so funding a deal through a contract call still shows its real amount.

Stack: Node/Express + TypeScript API on Railway, MongoDB Atlas, viem for chain reads, and a React 19 + Vite frontend with three.js scenes for the courtroom and money views.

background image mobile

Join the mailing list

Get the latest news and updates