Buy CATC tokens with a custom USDC amount via x402 payment on Base
What it does
This x402 endpoint allows agents and users to purchase CatChad ($CATC) tokens (contract 0x8efE37734db03e316531532E39D7EDe5AF731b07) by spending a custom amount of 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 omitted, it defaults to 5 USDC. Payment is made via the x402 protocol's X-PAYMENT header, with a maximum payment of 5 USDC per call routed to the payTo address 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd.
The response includes the swap transaction hash, send transaction hash, the number of CATC tokens received, and the USDC amount paid. The token was created via Clanker and is viewable on clanker.world. According to the landing page, the endpoint has a 100% success rate across its recorded transactions, with an average latency of 2.81 seconds and a trust score of 81%. No formal API documentation, OpenAPI spec, or pricing page exists beyond the x402 challenge itself and the landing page stats.
Capabilities
Use cases
- —Programmatically purchasing CATC tokens with a specified USDC amount from an AI agent
- —Automating small token buys on Base via the x402 payment protocol
- —Integrating meme-token acquisition into agent workflows without manual wallet interaction
Fit
Best for
- —AI agents that need to autonomously buy tokens on Base
- —Developers experimenting with x402-gated DeFi endpoints
- —Automated portfolio or meme-coin accumulation strategies
Not for
- —Large-volume or high-frequency trading (max 5 USDC per call)
- —Users seeking detailed swap routing or slippage controls
- —Non-Base-network token purchases
Quick start
curl -X POST https://catc.x420.dev/api/puff-custom \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402_payment_token>" \
-d '{"amount": "2.5"}'Example
Request
{
"amount": "2.5"
}Response
{
"message": "Successfully swapped USDC for CATC tokens",
"tokensReceived": "125000.0",
"usdcAmountPaid": "2.5",
"sendTransactionHash": "0x789abc...012def",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The x402 challenge is live and includes a clear outputSchema with input/output definitions. However, there is no OpenAPI spec, no dedicated documentation page (docs/api/pricing all return 404-like pages), and the response example is inferred from the schema rather than observed. Stats from the landing page provide some operational context but are limited.
Warnings
- —No formal API documentation exists; /docs, /api, and /pricing all return placeholder pages
- —Response example is inferred from the outputSchema, not from an actual observed response
- —Max payment is 5 USDC per call, which may limit usefulness for larger purchases
- —CATC is a meme/community token created via Clanker — token value and liquidity are uncertain
- —Only 4 total transactions recorded at time of crawl, indicating very low usage
Citations
- —The x402 challenge is live and returns a 402 with maxAmountRequired of 5000000 (5 USDC) on Basehttps://catc.x420.dev/api/puff-custom
- —The endpoint accepts an optional amount field in USDC, defaulting to 5 if not providedhttps://catc.x420.dev/api/puff-custom
- —CATC token contract is 0x8efE37734db03e316531532E39D7EDe5AF731b07, created via Clankerhttps://catc.x420.dev
- —x402 stats show 4 total transactions, 100% success rate, 2.81s avg latency, 81% trust scorehttps://catc.x420.dev
- —No documentation page exists at /docs, /api, /pricing, or /READMEhttps://catc.x420.dev/docs