{"version":1,"instructions":"Each resource answers an unpaid request with 402 and an x402 v2 challenge; pay one of the entries on a network in resource_networks and retry. An lnbtc: network is Bitcoin Lightning: the invoice is bound to the exact request, settled to this host's own node; the x402 Bazaar lists only routes settled on an EVM network. A resource in mppResources also takes an MPP Tempo charge (pathUSD, see paymentCapabilities): its 402 carries a WWW-Authenticate: Payment challenge; pay it and retry with Authorization: Payment. The 402 is the offer; this document is where to look.","resources":["https://kychange.com/api/sats/0.10","https://kychange.com/api/sats/1","https://kychange.com/api/sats/5","https://kychange.com/api/usdc/100","https://kychange.com/api/usdc/100k","https://kychange.com/api/usdc/10k","https://kychange.com/api/usdc/1m"],"resource_methods":{"https://kychange.com/api/sats/0.10":["POST"],"https://kychange.com/api/sats/1":["POST"],"https://kychange.com/api/sats/5":["POST"],"https://kychange.com/api/usdc/100":["POST"],"https://kychange.com/api/usdc/100k":["POST"],"https://kychange.com/api/usdc/10k":["POST"],"https://kychange.com/api/usdc/1m":["POST"]},"resource_networks":{"https://kychange.com/api/sats/0.10":["eip155:84532"],"https://kychange.com/api/sats/1":["eip155:84532"],"https://kychange.com/api/sats/5":["eip155:84532"],"https://kychange.com/api/usdc/100":["lnbtc:000000000933ea01ad0ee984209779ba"],"https://kychange.com/api/usdc/100k":["lnbtc:000000000933ea01ad0ee984209779ba"],"https://kychange.com/api/usdc/10k":["lnbtc:000000000933ea01ad0ee984209779ba"],"https://kychange.com/api/usdc/1m":["lnbtc:000000000933ea01ad0ee984209779ba"]},"resource_discovery":{"https://kychange.com/api/sats/0.10":{"tags":["swap","lightning","bitcoin"],"input":{"example":{"destination":"you@getalby.com"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"A Lightning address (name@domain) or a BOLT11 invoice"}}}},"output":{"example":{"state":"payout_pending","swap_id":"swp_…","sats_out":995,"status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap $0.10 of USDC on Base into sats on Bitcoin Lightning: pay this route over x402, name a Lightning address or a BOLT11 invoice for exactly the quoted sats (or with no amount), and the desk pays the sats within seconds with the preimage as the receipt. Testnet instance: Base Sepolia USDC in, Lightning testnet3 sats out.","service_name":"kychange"},"https://kychange.com/api/sats/1":{"tags":["swap","lightning","bitcoin"],"input":{"example":{"destination":"you@getalby.com"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"A Lightning address (name@domain) or a BOLT11 invoice"}}}},"output":{"example":{"state":"payout_pending","swap_id":"swp_…","sats_out":995,"status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap $1 of USDC on Base into sats on Bitcoin Lightning: pay this route over x402, name a Lightning address or a BOLT11 invoice for exactly the quoted sats (or with no amount), and the desk pays the sats within seconds with the preimage as the receipt. Testnet instance: Base Sepolia USDC in, Lightning testnet3 sats out.","service_name":"kychange"},"https://kychange.com/api/sats/5":{"tags":["swap","lightning","bitcoin"],"input":{"example":{"destination":"you@getalby.com"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"A Lightning address (name@domain) or a BOLT11 invoice"}}}},"output":{"example":{"state":"payout_pending","swap_id":"swp_…","sats_out":995,"status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap $5 of USDC on Base into sats on Bitcoin Lightning: pay this route over x402, name a Lightning address or a BOLT11 invoice for exactly the quoted sats (or with no amount), and the desk pays the sats within seconds with the preimage as the receipt. Testnet instance: Base Sepolia USDC in, Lightning testnet3 sats out.","service_name":"kychange"},"https://kychange.com/api/usdc/100":{"tags":["swap","lightning","usdc"],"input":{"example":{"destination":"0x0000000000000000000000000000000000000000"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"An EVM address on Base that receives the USDC"}}}},"output":{"example":{"state":"payout_pending","sats_in":100,"swap_id":"swp_…","usd_out":"$0.08","status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap 100 sats on Bitcoin Lightning into USDC on Base: pay this route over x402 exact on lnbtc (the invoice is bound to the request), name a Base address, and the desk pays the USDC leg at the index price minus the spread. Testnet instance: Lightning testnet3 in, Base Sepolia USDC out (demo-mode payout).","service_name":"kychange"},"https://kychange.com/api/usdc/100k":{"tags":["swap","lightning","usdc"],"input":{"example":{"destination":"0x0000000000000000000000000000000000000000"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"An EVM address on Base that receives the USDC"}}}},"output":{"example":{"state":"payout_pending","sats_in":100000,"swap_id":"swp_…","usd_out":"$9.95","status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap 100,000 sats on Bitcoin Lightning into USDC on Base: pay this route over x402 exact on lnbtc (the invoice is bound to the request), name a Base address, and the desk pays the USDC leg at the index price minus the spread. Testnet instance: Lightning testnet3 in, Base Sepolia USDC out (demo-mode payout).","service_name":"kychange"},"https://kychange.com/api/usdc/10k":{"tags":["swap","lightning","usdc"],"input":{"example":{"destination":"0x0000000000000000000000000000000000000000"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"An EVM address on Base that receives the USDC"}}}},"output":{"example":{"state":"payout_pending","sats_in":10000,"swap_id":"swp_…","usd_out":"$9.95","status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap 10,000 sats on Bitcoin Lightning into USDC on Base: pay this route over x402 exact on lnbtc (the invoice is bound to the request), name a Base address, and the desk pays the USDC leg at the index price minus the spread. Testnet instance: Lightning testnet3 in, Base Sepolia USDC out (demo-mode payout).","service_name":"kychange"},"https://kychange.com/api/usdc/1m":{"tags":["swap","lightning","usdc"],"input":{"example":{"destination":"0x0000000000000000000000000000000000000000"},"body_type":"json","body_schema":{"type":"object","required":["destination"],"properties":{"quote_id":{"type":"string","description":"Optional quote_id from GET /api/quote"},"destination":{"type":"string","description":"An EVM address on Base that receives the USDC"}}}},"output":{"example":{"state":"payout_pending","sats_in":1000000,"swap_id":"swp_…","usd_out":"$9.95","status_url":"https://kychange.com/api/swaps/swp_…?claim=clm_…"}},"description":"Swap 1,000,000 sats on Bitcoin Lightning into USDC on Base: pay this route over x402 exact on lnbtc (the invoice is bound to the request), name a Base address, and the desk pays the USDC leg at the index price minus the spread. Testnet instance: Lightning testnet3 in, Base Sepolia USDC out (demo-mode payout).","service_name":"kychange"}}}