curl --request POST \
--url https://api.0xarchive.io/v1/web3/subscribe \
--header 'Content-Type: application/json' \
--data '
{
"tier": "build"
}
'{
"api_key": "0xa_...",
"tier": "build",
"expires_at": "2023-11-07T05:31:56Z",
"wallet_address": "<string>",
"tx_hash": "<string>"
}x402-protected endpoint for purchasing Build or Pro subscriptions with USDC on Base.
Flow:
{ "tier": "build" } (no payment header) → Server returns 402 with payment details (amount, pay_to address, network)TransferWithAuthorization (EIP-3009) on USDC Base for the specified amountpayment-signature headerNo API key required. Payment IS the authentication.
curl --request POST \
--url https://api.0xarchive.io/v1/web3/subscribe \
--header 'Content-Type: application/json' \
--data '
{
"tier": "build"
}
'{
"api_key": "0xa_...",
"tier": "build",
"expires_at": "2023-11-07T05:31:56Z",
"wallet_address": "<string>",
"tx_hash": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
Use this file to discover all available pages before exploring further.
Base64-encoded x402 v2 payment payload containing the EIP-3009 signed USDC transfer authorization. Omit on first request to receive payment details.
Subscription tier to purchase
build, pro "build"
Subscription created successfully (returned when valid payment-signature header is provided)
The generated API key for the new subscription
"0xa_..."
The subscription tier activated
"build"
Subscription expiration date (30 days from purchase)
The wallet address associated with the subscription
On-chain transaction hash for the USDC transfer (if settled)
Was this page helpful?