This is the bridge from quote to settlement for a real external buyer.
Default mode is safe: it only fetches the live HTTP 402 quote and checks amount, network, and payTo.
Each run writes a local evidence file at examples/x402-first-payment-client/last-run.evidence.json unless EVIDENCE_FILE=0 is set.
node examples/x402-first-payment-client/first-payment-client.mjs
The evidence file records the requested URL, live quote, spend cap, expected payTo, expected network, expected asset, and whether all prepay checks passed.
Only the buyer should run this with a buyer-owned wallet.
npm install
PAY_REAL_X402=1 EVM_PRIVATE_KEY=0x... node examples/x402-first-payment-client/first-payment-client.mjs
The script refuses to pay unless all quote checks pass and PAY_REAL_X402=1 is explicitly set.
wallet-signing-safety-packhttps://gpt55.558686.xyz/v1/paid/wallet-signing-safety-pack18000 atomic USDC$0.018eip155:84530x1f0130669ca6fd02e025a984cc038f139df19a2fROUTE_ID=wallet-signing-safety-pack MAX_USDC=0.02 node examples/x402-first-payment-client/first-payment-client.mjs
Quote-only runs are not revenue. Only a non-self buyer’s settled x402 payment counts as external revenue.