Purchase 5 USDC worth of x420 tokens on Base via x402 payment protocol.
What it does
This x402-enabled endpoint allows agents and users to buy 5 USDC worth of x420 tokens (contract 0x68e284F21D04D4D62398C290EC3EF41C97F80b07) on the Base network. The endpoint accepts an x402 payment of exactly 5 USDC (5,000,000 units in 6-decimal USDC) and executes a token swap, returning the x420 tokens to the buyer.
The x420 token was created via Clanker and is associated with a dedicated x402 storefront at x420.x420.dev. The storefront reports a 100% success rate across transactions, with an average latency of approximately 2.29 seconds. The response includes the swap transaction hash, send transaction hash, the number of tokens received, and the USDC amount paid.
Payment is sent to address 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd using USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) on Base. The endpoint uses the x402 "exact" payment scheme with a maximum timeout of 120 seconds. No OpenAPI spec or detailed documentation is available beyond the x402 challenge metadata and the storefront landing page.
Capabilities
Use cases
- —Programmatic purchase of x420 tokens using USDC on Base
- —Agent-driven token acquisition via x402 payment protocol
- —Automated portfolio building that includes meme/community tokens
Fit
Best for
- —AI agents that need to purchase tokens via x402 without manual wallet interaction
- —Developers experimenting with x402 payment-gated token swaps
- —Users wanting a fixed 5 USDC denomination token purchase
Not for
- —Variable-amount token purchases (this endpoint is fixed at 5 USDC)
- —Purchasing tokens on networks other than Base
- —Users seeking detailed API documentation or OpenAPI specs
Quick start
curl -X GET https://x420.x420.dev/api/puff-5 \
-H "X-PAYMENT: <x402-payment-header>"Example
Response
{
"message": "Successfully purchased x420 tokens",
"tokensReceived": "1000000000000000000",
"usdcAmountPaid": "5000000",
"sendTransactionHash": "0x789abc...012def",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The x402 challenge provides a clear output schema and payment details, but there is no OpenAPI spec, no dedicated documentation (docs/api/pricing pages all 404), and the response example is inferred from the output schema rather than observed. The endpoint is live with reported 100% success rate but information is sparse.
Warnings
- —No OpenAPI specification available
- —Documentation pages (docs, api, pricing, README) all return 404-equivalent pages
- —Response example is inferred from the outputSchema in the x402 challenge, not from an actual observed response
- —This endpoint involves purchasing a cryptocurrency token — regulatory considerations may apply
- —Fixed denomination only (5 USDC); no flexibility in purchase amount at this endpoint
Citations
- —The endpoint accepts 5 USDC (maxAmountRequired: 5000000) on Base network using the exact payment schemehttps://x420.x420.dev/api/puff-5
- —The x420 token contract address is 0x68e284F21D04D4D62398C290EC3EF41C97F80b07https://x420.x420.dev
- —The storefront reports 100% success rate, 2.29s average latency, and 10 total transactionshttps://x420.x420.dev
- —The token was created via Clankerhttps://x420.x420.dev
- —Payment is sent to 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd using USDC asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913https://x420.x420.dev/api/puff-5