x402 is an open protocol that maps the long-dormant HTTPDocumentation Index
Fetch the complete documentation index at: https://crushrewards.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
402 Payment Required status code onto modern stablecoin rails. Crush Rewards implements x402 on both Solana and Base for USDC.
The Crush Rewards server is also indexed on x402scan so any x402-aware agent can discover it without prior knowledge of the URL.
How it works
The payment authorization is bound to the specific request — it cannot be replayed against a different endpoint.Integrate with @x402/fetch
The official @x402/fetch wrapper handles the full handshake — discovery, signing, retry — transparently:
Manual integration
If you can’t use the SDK, the protocol is two HTTP requests:@x402/svm/exact/client or @x402/evm/exact/client if you want signing helpers without the fetch wrapper.
Supported chains
| Chain | Asset | Settlement time |
|---|---|---|
| Solana | USDC (SPL) | ~1 second |
| Base | USDC (ERC-20) | ~2 seconds |
x-payment-info discovery block — never hardcode it. We may rotate keys without prior notice.
Failed payments
If chain settlement fails (insufficient balance, expired authorization, network issue), the API returns402 Payment Required with an error field describing the cause. Retry with a fresh authorization.