A swap desk between the two rails x402 settles on: sats over Bitcoin Lightning and USDC on Base. Pay one, receive the other. Every route is an x402 paid request; the desk's own node holds the sats, the organization's payout wallet holds the USDC, and Run402 holds neither.
Loading the desk's state…
| Route | You pay | You receive | Status |
|---|
POST /api/usdc/10k with {"destination":"0x…"}. The 402 carries one x402 exact entry on lnbtc whose invoice is bound to this exact request; pay it with any Lightning wallet and retry with the preimage.status_url; it reaches paid_out once the USDC leg is recorded.run402 pay https://kychange.com/api/usdc/10k --method POST --body '{"destination":"0xYourBaseAddress"}' --lightning-pairing ./wallet.nwc
| Route | You pay | You receive | Status |
|---|
POST /api/sats/1 with {"destination":"you@getalby.com"}, a Lightning address, or a BOLT11 invoice for exactly the quoted sats (or with no amount). The 402 carries the USDC price; the x402 client pays it on Base and retries.preimage_out on the status is your receipt.refund_due, and the refund run records the USDC back to the payer.run402 pay https://kychange.com/api/sats/1 --method POST --body '{"destination":"you@getalby.com"}'
Every priced route is listed at /.well-known/x402, where an x402 client finds the routes and the networks each one takes. The kychange repo has docs/try-it.md for testnet sats and USDC; watch a swap on the status page.
This instance runs on testnet: Lightning testnet3 and Base Sepolia, no real money. The USDC payout and refund are recorded in demo mode (a simulated transfer); the sats payout is a real testnet3 Lightning payment; the hedge is paper. Run402 takes no cut and holds no spending credential; the operator is the counterparty.