Buy BITCOIN tokens (0xc413…d07) on Base with a custom USDC amount via x402 payment.
What it does
This x402 endpoint lets agents and users purchase BITCOIN tokens (contract 0xc41338b5Aff79e763c91ef550D15e1Cf92D64b07) on the Base network by paying with USDC. The endpoint accepts a POST request with an optional `amount` field specifying how much USDC to spend (defaults to 5 USDC if omitted, up to a maximum of 5 USDC per call). Payment is made via the x402 protocol's X-PAYMENT header, and the service executes a token swap on-chain, returning the swap transaction hash, send transaction hash, tokens received, and USDC amount paid.
The token is listed on the x420.dev platform, which hosts Clanker-created tokens with x402-powered purchase actions. On-chain stats from the landing page show 2 total transactions, 1 unique user, ~2.29s average latency, and a 100% success rate. The trust score is listed at 84%. USDC is paid to address 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbd on Base (USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913).
No dedicated API documentation, OpenAPI spec, or pricing page exists beyond the x402 challenge itself and the token landing page. The endpoint is live and returns a proper 402 challenge with a well-defined outputSchema.
Capabilities
Use cases
- —Agents autonomously purchasing BITCOIN tokens on Base using USDC
- —Programmatic dollar-cost averaging into a specific Base token
- —Integrating token purchases into automated trading or portfolio strategies
Fit
Best for
- —AI agents that need to execute on-chain token swaps via a simple HTTP call
- —Developers building x402-compatible payment flows for Base tokens
- —Automated buying of the specific BITCOIN (0xc413…d07) Clanker token
Not for
- —Buying actual Bitcoin (BTC) on Bitcoin mainnet — this is a Base ERC-20 token
- —High-volume or large-amount swaps (max 5 USDC per call)
- —Users seeking detailed API documentation or sandbox environments
Quick start
curl -X POST https://bitcoin.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 BITCOIN tokens",
"tokensReceived": "1000000000000000000",
"usdcAmountPaid": "5",
"sendTransactionHash": "0x789ghi...jkl012",
"swapTransactionHash": "0xabc123...def456"
}Endpoint
Quality
The endpoint is live with a well-structured x402 challenge and outputSchema, but there is no dedicated documentation, no OpenAPI spec, and the /docs, /api, /pricing, and /README paths all return 'doesn't exist' pages. Stats and token details come only from the landing page. The response example is inferred from the outputSchema, not from an actual observed response.
Warnings
- —No API documentation exists — /docs, /api, /pricing, /README all return placeholder pages
- —Maximum payment is 5 USDC (5000000 in 6-decimal USDC units) per call
- —This is a Clanker-created ERC-20 token on Base, NOT actual Bitcoin (BTC)
- —Very low usage: only 2 total transactions and 1 unique user reported
- —Response example is inferred from outputSchema, not from a real observed response
Citations
- —The endpoint returns a 402 challenge with x402Version 1 and accepts USDC on Base networkhttps://bitcoin.x420.dev/api/puff-custom
- —Maximum amount required is 5000000 (5 USDC) and payment goes to 0x93109d14F6665a9c9675290D3cD5A6c07bBAfdbdhttps://bitcoin.x420.dev/api/puff-custom
- —The token has 2 total transactions, 1 unique user, 2.29s avg latency, 100% success rate, and 84% trust scorehttps://bitcoin.x420.dev
- —The BITCOIN token contract is 0xc41338b5Aff79e763c91ef550D15e1Cf92D64b07, created by 0x3084...fbfehttps://bitcoin.x420.dev
- —The /docs, /api, /pricing, and /README paths return 'doesn't exist' placeholder pageshttps://bitcoin.x420.dev/docs