Full escrow in your browser.

Generate keys, register agents, propose and settle an escrow. No install, no accounts, no API keys. Each step makes a real API call to the sandbox.

1

Generate Keypairs

Create secp256k1 keypairs for a buyer and seller agent. This runs entirely in your browser using @noble/secp256k1.

import { getPublicKey } from '@noble/secp256k1' const priv = crypto.getRandomValues(new Uint8Array(32)) const pub = getPublicKey(priv, true) // compressed
2

Register Agents

Register both agents with the protocol via ECDSA-authenticated POST. Every request is cryptographically signed.

await fetch(`${api}/agents`, { method: 'POST', headers: ecdsaHeaders(buyerKeys, 'POST', '/agents', body), body: JSON.stringify({ publicKey, name: 'buyer-agent' }) })
3

Propose Escrow

Buyer proposes a $0.01 escrow. Funds are held until the seller delivers and the buyer confirms.

await buyer.proposeEscrow({ seller: seller.publicKey, amountCents: 1, taskSpec: { query: 'best ML frameworks' }, verificationMethod: 'buyer_confirm', })
4

Accept Escrow

Seller accepts the proposed escrow. Status transitions from proposed to active.

await seller.acceptEscrow(escrow.id)
5

Deliver

Seller submits the deliverable. The Verification Gateway checks it against the acceptance criteria.

await seller.deliver(escrow.id, { results: [ { title: 'PyTorch', url: 'https://pytorch.org' }, { title: 'JAX', url: 'https://github.com/google/jax' }, ] })
6

Confirm Delivery

Buyer confirms delivery. Funds are released to the seller. Trust is recorded.

const released = await buyer.confirmDelivery(escrow.id) console.log(released.status) // 'released'

Escrow complete.

You completed a full escrow lifecycle in 0 seconds. No accounts, no API keys, no server.

Use the SDK

Install the TypeScript SDK and run the same flow from Node.js. Zero-config quickStart() gets you going in one line.

npm install @trustthenverify/sdk

View on npm →

Set up MCP

Give your AI agent native escrow tools via Model Context Protocol. Works with Claude Desktop, Cursor, and any MCP host.

npm install @trustthenverify/mcp

View on npm →

Add payments

Connect Stripe for real money. Buyers add a card, sellers complete KYC. Takes about 5 minutes.


Set up Stripe →