Pay USDC to swap for DOG tokens on Base via x402 payment protocol
What it does
This x402 endpoint at dog.x420.dev allows agents and users to purchase DOG tokens (contract 0xC6BCf27D02B724ad9869f138b1A41024648E4b07) by paying USDC on the Base network. The endpoint is called "Puff" and accepts a GET request with an X-PAYMENT header containing the x402 payment proof. The cost is 1 USDC (1,000,000 units in 6-decimal USDC), and the service executes a token swap on the caller's behalf, returning the swap transaction hash, send transaction hash, tokens received, and USDC amount paid.
The DOG token was created via Clanker and is hosted on the x420.dev platform, which appears to provide x402-enabled subdomains for token interactions. The payment is sent to address 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd using USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) on Base. The endpoint has a maximum timeout of 120 seconds for the swap operation. No additional documentation, API reference, or pricing page exists beyond the landing page and the x402 challenge itself.
Capabilities
Use cases
- —AI agents autonomously purchasing DOG tokens with USDC via x402
- —Programmatic token swaps without requiring wallet interaction on the caller side
- —Integrating meme token purchases into automated trading workflows
Fit
Best for
- —Agents that need to acquire DOG tokens on Base programmatically
- —x402-compatible clients looking for simple token swap endpoints
- —Developers experimenting with x402 payment-gated DeFi actions
Not for
- —Users needing variable or custom USDC amounts (fixed at 1 USDC per call)
- —Production trading strategies requiring slippage control or limit orders
- —Non-Base-network token purchases
Quick start
# GET with x402 payment header to swap 1 USDC for DOG tokens
curl -X GET https://dog.x420.dev/api/puff \
-H "X-PAYMENT: <x402-payment-proof>"Example
Response
{
"message": "Successfully swapped USDC for DOG tokens",
"tokensReceived": "1000000000000000000",
"usdcAmountPaid": "1000000",
"sendTransactionHash": "0x789abc...012def",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The x402 challenge is live and provides a clear output schema, payment details, and method. However, there is no API documentation, no OpenAPI spec, no usage examples, and the docs/pricing/README pages all return placeholder 'doesn't exist' pages. The response schema is inferred from the outputSchema in the challenge. The fixed 1 USDC cost and lack of configurable parameters limit flexibility.
Warnings
- —No API documentation exists — /docs, /api, /pricing, and /README all return placeholder pages
- —Fixed 1 USDC payment amount with no apparent way to customize swap size
- —DOG is a Clanker-launched meme token — high volatility and potential illiquidity risk
- —Response fields like swapTransactionHash may be null if the swap fails
- —No slippage protection or swap parameters are documented
Citations
- —The endpoint returns a 402 challenge requiring 1,000,000 units (1 USDC) payment on Base networkhttps://dog.x420.dev/api/puff
- —DOG token contract address is 0xC6BCf27D02B724ad9869f138b1A41024648E4b07https://dog.x420.dev
- —DOG was created via Clankerhttps://dog.x420.dev
- —Payment asset is USDC at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Basehttps://dog.x420.dev/api/puff
- —The output schema includes message, swapTransactionHash, sendTransactionHash, tokensReceived, and usdcAmountPaid fieldshttps://dog.x420.dev/api/puff