Buy a custom USDC amount of FAKER tokens via x402 payment on Base network.
What it does
This x402 endpoint allows agents and users to purchase FAKER tokens (contract 0x3aD1Df7cb5cC6560437D0a1CEC235cB942a8cb07) by spending a custom amount of USDC on the Base network. The endpoint accepts a POST request with an optional `amount` field specifying the USDC to spend (e.g., '10', '0.5'); if omitted, 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.
On success, the endpoint returns a JSON object containing the swap transaction hash, the send transaction hash, the number of FAKER tokens received, and the USDC amount paid. The token was created via Clanker and is viewable on clanker.world. The payment recipient address is 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd, and the USDC asset used is the canonical Base USDC contract (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913).
No dedicated documentation, OpenAPI spec, or pricing page exists beyond the x402 challenge itself and the landing page at faker.x420.dev. The landing page provides a simple UI for the same "Puff" action and links to x402scan for transaction history.
Capabilities
Use cases
- —Programmatically buying FAKER tokens with USDC via an AI agent
- —Automating small token purchases on Base network using x402 payments
- —Integrating FAKER token acquisition into an agent workflow without a wallet UI
Fit
Best for
- —AI agents that need to autonomously purchase meme/community tokens on Base
- —Developers experimenting with x402 payment-gated token swaps
- —Automated trading or portfolio bots targeting Clanker-launched tokens
Not for
- —Large-volume token trading (max 5 USDC per call)
- —Users seeking tokens on networks other than Base
- —Anyone needing detailed API documentation or SLA guarantees
Quick start
curl -X POST https://faker.x420.dev/api/puff-custom \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402_payment_header>" \
-d '{"amount": "2.5"}'Example
Request
{
"amount": "2.5"
}Response
{
"message": "Successfully swapped USDC for FAKER tokens",
"tokensReceived": "150000.0",
"usdcAmountPaid": "2.5",
"sendTransactionHash": "0x789abc...012def",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The x402 challenge is live and includes a well-defined outputSchema with input/output fields, but there is no OpenAPI spec, no dedicated documentation (docs/api/pricing pages all return 'doesn't exist'), and the response example is inferred from the schema rather than observed. Pricing is implicit in the x402 challenge (max 5 USDC).
Warnings
- —No dedicated API documentation exists; /docs, /api, /pricing all return placeholder pages.
- —Response example is inferred from the outputSchema, not from an actual observed response.
- —Max amount per transaction is 5 USDC, which limits utility for larger purchases.
- —This endpoint facilitates purchase of a community/meme token — token value is highly speculative.
Citations
- —The endpoint is live and returns a 402 challenge with x402Version 1 on POSThttps://faker.x420.dev/api/puff-custom
- —maxAmountRequired is 5000000 (5 USDC in 6-decimal units) on Base networkhttps://faker.x420.dev/api/puff-custom
- —FAKER token contract is 0x3aD1Df7cb5cC6560437D0a1CEC235cB942a8cb07, viewable on Clankerhttps://faker.x420.dev
- —Payment recipient is 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbdhttps://faker.x420.dev/api/puff-custom
- —The landing page provides a Puff action UI and links to x402scanhttps://faker.x420.dev