Buy x420dog tokens on Base with USDC via an x402-payable endpoint
What it does
This x402 endpoint allows agents and users to purchase x420dog tokens (contract 0xe44DE6EaaA85e5C55D1EeF8fBB1785B03dcD3B07) by spending USDC on the Base network. The endpoint accepts a POST request with an optional `amount` field specifying how much USDC to spend (e.g., '10', '0.5'). If no amount is provided, it defaults to 5 USDC. The maximum payment accepted per call is 5 USDC (maxAmountRequired: 5000000 in 6-decimal USDC units). Payment is made via the x402 protocol's X-PAYMENT header, routing USDC to the recipient address 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd.
On success, the endpoint returns a JSON object containing a message, the swap and send transaction hashes (which may be null), the number of tokens received, and the USDC amount paid. The x420dog token was created via Clanker and is viewable on clanker.world. The hosting platform is x420.dev, which provides subdomain-based token storefronts. Documentation pages beyond the landing page do not exist for this subdomain, so all technical details are derived from the x402 challenge and the landing page itself.
Capabilities
Use cases
- —Programmatically purchasing x420dog tokens with USDC from an AI agent
- —Automating small token buys on Base via the x402 payment protocol
- —Integrating memecoin purchases into agent workflows without manual wallet interaction
Fit
Best for
- —AI agents that need to autonomously buy tokens on Base
- —Developers experimenting with x402-protocol token purchases
- —Automated trading or portfolio bots targeting Clanker-launched tokens
Not for
- —Large token purchases exceeding 5 USDC per transaction
- —Users seeking detailed swap routing or slippage controls
- —Anyone needing fiat-to-crypto onramp functionality
Quick start
curl -X POST https://x420dog.x420.dev/api/puff-custom \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-header>" \
-d '{"amount": "5"}'Example
Request
{
"amount": "5"
}Response
{
"message": "Successfully swapped USDC for x420dog tokens",
"tokensReceived": "1250000.0",
"usdcAmountPaid": "5.0",
"sendTransactionHash": "0x789abc...012def",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The x402 challenge is live and provides a clear outputSchema with input/output definitions. However, there is no OpenAPI spec, no documentation pages (all return 'doesn't exist'), and no detailed information about slippage, rate limits, or error handling. The response example is inferred from the outputSchema rather than observed.
Warnings
- —No documentation pages exist beyond the landing page — /docs, /api, /pricing, /README all return placeholder pages
- —Maximum amount per transaction appears to be 5 USDC (maxAmountRequired: 5000000 with 6-decimal USDC)
- —Response example is inferred from outputSchema, not from an actual observed response
- —This endpoint facilitates cryptocurrency token purchases — regulatory considerations may apply
- —The x420dog token is a Clanker-launched token with no stated utility; treat as speculative/memecoin
Citations
- —x420dog token contract address is 0xe44DE6EaaA85e5C55D1EeF8fBB1785B03dcD3B07https://x420dog.x420.dev
- —Token was created via Clanker and is viewable on clanker.worldhttps://x420dog.x420.dev
- —Payment is routed to 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd on Base network using USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)https://x420dog.x420.dev/api/puff-custom
- —maxAmountRequired is 5000000 (5 USDC) and default amount is 5 USDC if not specifiedhttps://x420dog.x420.dev/api/puff-custom
- —The endpoint accepts an optional amount field in the POST bodyhttps://x420dog.x420.dev/api/puff-custom