Buy x420 tokens on Base with USDC via a single x402-authenticated GET request.
What it does
The x420 /api/puff endpoint lets agents and users purchase x420 tokens (contract 0x68e284F21D04D4D62398C290EC3EF41C97F80b07) on the Base network by paying 1 USDC per call through the x402 payment protocol. The endpoint accepts a GET request with an X-PAYMENT header containing a valid x402 payment proof. Upon successful payment, the service executes a token swap and sends the resulting x420 tokens to the caller, returning a JSON response with the swap transaction hash, send transaction hash, tokens received, and USDC amount paid.
The x420 token was created via Clanker and is viewable on clanker.world. According to the landing page's x402 stats, the endpoint has processed 10 total transactions from 6 unique users with a 100% success rate and an average latency of 2.29 seconds. The trust score is listed at 85%. The payment is routed to address 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd using USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) on Base.
No formal API documentation, OpenAPI spec, or pricing page exists beyond the x402 challenge itself and the landing page. The endpoint is live and returns a proper 402 challenge with a well-defined output schema.
Capabilities
Use cases
- —Autonomous agent purchasing x420 tokens on Base using USDC
- —Programmatic token swaps without manual DEX interaction
- —Integrating on-chain token purchases into agent workflows via x402
- —Demonstrating x402 payment protocol for DeFi actions
Fit
Best for
- —AI agents that need to acquire x420 tokens programmatically
- —Developers experimenting with x402-gated DeFi endpoints
- —Automated trading or portfolio strategies involving Clanker tokens
Not for
- —Large-volume or custom-amount token purchases (fixed 1 USDC per call)
- —Users seeking tokens on networks other than Base
- —General-purpose DEX aggregation or multi-token swaps
Quick start
curl -X GET https://x420.x420.dev/api/puff \
-H "X-PAYMENT: <x402-payment-proof>"Example
Response
{
"message": "Successfully purchased x420 tokens",
"tokensReceived": "42000.0",
"usdcAmountPaid": "1.0",
"sendTransactionHash": "0x789abc...012def",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The endpoint is live with a valid 402 challenge and a defined output schema, but there is no OpenAPI spec, no formal documentation, and no detailed usage guide. Stats and token details come only from the landing page. The response example is inferred from the outputSchema in the x402 challenge.
Warnings
- —No formal API documentation exists — /docs, /api, /pricing, and /README all return placeholder pages.
- —Fixed 1 USDC payment per call; no configurable amount despite the UI suggesting an amount input.
- —The x420 token is a Clanker-created meme token — exercise caution regarding token value and liquidity.
- —Response example is inferred from the outputSchema, not from an actual observed response.
Citations
- —The endpoint returns a 402 challenge requesting 1,000,000 units (1 USDC) on Base networkhttps://x420.x420.dev/api/puff
- —x420 token contract address is 0x68e284F21D04D4D62398C290EC3EF41C97F80b07https://x420.x420.dev
- —10 total transactions from 6 unique users with 100% success rate and 2.29s average latencyhttps://x420.x420.dev
- —Token was created via Clanker and is viewable on clanker.worldhttps://x420.x420.dev
- —Payment is routed to 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd using USDC asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913https://x420.x420.dev/api/puff