This page covers the direct HTTP integration via the x402 protocol.Documentation Index
Fetch the complete documentation index at: https://crushrewards.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
1. Pick a payment protocol
Crush Rewards accepts two payment protocols on every endpoint:- x402 — USDC on Solana or Base. Best if your agent already holds a wallet.
- MPP/Tempo — Hosted micropayments via Tempo. Best if you don’t want to manage wallets.
2. Discover endpoint metadata
Every endpoint advertises pricing and accepted payment methods via a402 Payment Required response. Hit any URL with no payment to see them:
x-payment-info block listing the price (e.g. $0.01) and the recipient address per protocol.
You can also browse the live endpoint catalog on x402scan, which mirrors the same discovery metadata.
3. Integrate in code
Use the official@x402/fetch wrapper to make paid requests from any Node.js or edge runtime:
paidFetch handles the full handshake: discovery → sign authorization → resend with X-Payment header → return the 200 response. See x402 details for the manual flow and Base/EVM equivalent.
4. Inspect the response
Next steps
Browse endpoints
All 13 endpoints with live request/response examples.
Coverage
Which retailers, which countries, and how fresh the data is.
