merchant backend live
x402 starts payment. AAP settles delivery.
This demo merchant returns an x402 payment challenge for protected resources. SettleProof adds the post-payment liability path: custody, merchant delivery attestation, evidence packet, and deterministic release or TTL refund.
NetworkSolana devnet
Price1 USDC
Modex402 live
Asset22jtLHKwRy6RVrzbprsTSMBNfhG7b11d7iY7MBS4Mek3
Guided end-to-end demo
Follow the exact autonomous settlement path from HTTP 402 challenge to on-chain custody, merchant attestation, evidence trail, deterministic release/refund, and indexed settlement state.
1. Challenge
Agent calls a protected merchant API
The merchant returns HTTP 402 with an AAP-compatible payment challenge.
2. Custody
Agent creates escrow on Solana devnet
USDC moves into the AAP custody vault. SettleProof never receives private keys.
3. Attest
Merchant signs proof of delivery
The merchant attestor key signs the proof hash. The contract verifies Ed25519 on-chain.
4. Resolve
Funds release or refund deterministically
Valid proof releases USDC. Missing proof before TTL returns funds to the agent owner.
5. Index
API records settlement state
The persistent indexer exposes escrow and event state for headless agents.
cd packages/sdk-ts MERCHANT_URL=https://demo.settleproof.xyz \ TARGET_URL=https://settleproof.xyz \ bun run examples/agent-cli.ts
Protected Resources
x402 response
Select a protected resource to inspect the x402/AAP challenge.
Headless Agent Path
This merchant screen is the visual harness. Agents can run the same settlement path through the public API and SDK without opening the dashboard.
1
Prepare
POST /v1/escrows/prepare
Derive escrow PDA, vault ATA, agent ATA, merchant PDA, and task hash.
2
Sign
@aap/sdk-ts createEscrow
Agent signs locally. API never receives private keys.
3
Relay
POST /v1/relay
Broadcast a fully signed Solana transaction.
4
Index
GET /v1/indexer
Poll pending, fulfilled, refunded, or merchant filtered escrows.
5
Evidence
GET /v1/evidence/:pda
Export delivery proof, TTL, release/refund state, and audit links.