# bitcoin.x420.dev BITCOIN Token Purchase (Custom USDC Amount)

> bitcoin.x420.dev BITCOIN Token Purchase (Custom USDC Amount) is a paid API for AI agents from bitcoin.x420.dev, paid per call via x402, $5/call, status unknown (last checked 2026-09-15).

Purchases a specified USDC amount worth of BITCOIN tokens (0xc41338b5Aff79e763c91ef550D15e1Cf54bdA02913) on Base network via x402 payment protocol

## Facts

- Endpoint: POST https://bitcoin.x420.dev/api/puff-custom
- Price: $5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-x420-dev-db09640b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HtFLxp3-4AWJjlYTOJp7S

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bitcoin-x420-dev-db09640b -d '<json body>'
```

Example prompt: Buy me $10 worth of BITCOIN tokens on Base — use 10 USDC for the swap.

## When to prefer this

Use this endpoint when an agent needs to programmatically purchase a specific USDC-denominated amount of the BITCOIN token (0xc41338b5Aff79e763c91ef550D15e1Cf92D64b07) on the Base network using the x402 micropayment protocol, especially when the desired spend amount varies and is not a fixed $5.

## Known failure modes

- Missing X-PAYMENT header returns 402 with payment requirements and accepted asset details
- Invalid or insufficient USDC payment amount causes transaction rejection
- Amount field not parseable as a numeric string causes bad request error
- Swap failure on-chain returns null transaction hashes with error message
- Network congestion may cause timeout beyond 120 seconds

## How this service works

Buy custom USDC amount worth of BITCOIN tokens 0xc41338b5Aff79e763c91ef550D15e1Cf92D64b07

## Output

Returns a message confirming the purchase, the amount of BITCOIN tokens received, the USDC amount paid, and transaction hashes for both the USDC send and the token swap on the Base network.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-x420-dev-db09640b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bitcoin.x420.dev](https://www.zero.xyz/host/bitcoin.x420.dev/llms.txt)
