{"status":"ok","doc":"apex-edge agent purchase guide","economy":{"model":"metered CELS gas — buy fuel once, it debits per call","unit":"CELS gas: 1 gas = $0.0001 (micro-USD substrate, 1e6 = $1); route prices post in the 402 envelope — 500 gas = $0.05","tokens":"x-credit bearer token cr_*, minted from any settled rail","guarantee":"a settled tx redeems the same route again via x-receipt — never charged twice for one delivery","note":"CELS gas is this node's branded metered fuel — unrelated to EVM network gas or any other gas market"},"quickstart":[{"step":1,"do":"GET a priced route without payment","eg":"curl https://apex-edge.pearceshrader.workers.dev/api/v1/market/arb-scan","returns":"402 envelope — price, networks, payTo, guide (this doc)"},{"step":2,"do":"pick a rail and pay","rails":{"card_once":"https://apex-edge.pearceshrader.workers.dev/api/v1/checkout/one-shot?route=<path>","card_pack":"https://apex-edge.pearceshrader.workers.dev/api/v1/checkout/credits?usd=5|10|25|50|100","flat_rate":"https://apex-edge.pearceshrader.workers.dev/api/v1/checkout/pass?days=1|7","crypto":"sign the 402 accepts[] entry — x402 v2, Base or Solana"}},{"step":3,"do":"if you paid fiat, mint your credit token","eg":"GET https://apex-edge.pearceshrader.workers.dev/api/v1/paid/credit?session=<cs_|pp_|sol_|mm_>","returns":"x-credit token — paste it into every later call"},{"step":4,"do":"call with payment","eg":"curl -H 'x-credit: cr_...' https://apex-edge.pearceshrader.workers.dev/api/v1/market/arb-scan"},{"step":5,"do":"check fuel","eg":"GET https://apex-edge.pearceshrader.workers.dev/api/v1/credit/balance?token=cr_..."}],"rails":{"x402":{"kind":"crypto per-call","header":"x-payment","networks":["eip155:8453 Base USDC","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp Solana USDC"],"flow":"request -> 402 accepts[] -> sign x402 v2 payload -> resend with x-payment -> response + x-payment-response receipt (reusable via x-receipt header)","facilitator":"CDP primary, PayAI fallback"},"credit":{"kind":"prepaid metered","header":"x-credit","buy":"https://apex-edge.pearceshrader.workers.dev/api/v1/checkout/credits?usd=<5..100>","mint":"https://apex-edge.pearceshrader.workers.dev/api/v1/paid/credit?session=<ref>","balance":"https://apex-edge.pearceshrader.workers.dev/api/v1/credit/balance?token=<cr_>","bonus":"$50 pack +10%, $100 pack +20%"},"one_shot":{"kind":"single purchase → credit","buy":"https://apex-edge.pearceshrader.workers.dev/api/v1/checkout/one-shot?route=<path>","note":"$1 card floor — mints credit covering the call + remainder"},"pass":{"kind":"flat-rate window","buy":"https://apex-edge.pearceshrader.workers.dev/api/v1/checkout/pass?days=1|7","note":"unlimited calls inside the window, usage still metered"},"receipt":{"kind":"delivery proof","header":"x-receipt","note":"settled tx hash replays its route without recharging"}},"errors":{"CREDIT_INSUFFICIENT":"token out of gas — top up at checkout/credits or one-shot; balance_micro tells the deficit","X402_NOT_VERIFIED":"payment payload malformed or unsettled — facilitator rejected it; check accepts[] schema","UNPAID":"session ref not settled yet — webhook ingest <=5m, or check /api/v1/paid/status?session=<ref>","BAD_SESSION":"ref must match cs_(live|test)_*|pp_*|sol_*|mm_*","BUSY":"challenge rate gate — back off and retry","KV_QUOTA":"daily write quota hit — transient, retry later"},"surfaces":{"board":"https://apex-edge.pearceshrader.workers.dev/api/v1/board","bounties":"https://apex-edge.pearceshrader.workers.dev/api/v1/bounties","terms":"https://apex-edge.pearceshrader.workers.dev/api/v1/terms","mcp":"https://apex-edge.pearceshrader.workers.dev/mcp (tools/list free)","openapi":"https://apex-edge.pearceshrader.workers.dev/openapi.json","honesty":"all routes are observation/derivation tools — market data, audits, inference. Not financial advice; telemetry counters are this node only"}}