# x402 Vending Machine – Buy $20 USDC of Tokens

> x402 Vending Machine – Buy $20 USDC of Tokens is a paid API for AI agents from vending-machine.heurist.xyz, paid per call via x402, $20/call, status unknown (last checked 2026-10-13).

Purchase $20.00 USDC worth of tokens from a specific token launch on the Heurist vending machine, subject to launch being open and allocation cap not being reached.

## Facts

- Endpoint: POST https://vending-machine.heurist.xyz/x402/buy20x?utm_source=zero.xyz
- Price: $20/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-vending-machine-buy-20-usdc-of-tokens-ffb40bad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-Z1F8q4gKH1hE1lcWYCQr

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 x402-vending-machine-buy-20-usdc-of-tokens-ffb40bad -d '<json body>'
```

Example prompt: Buy $20 worth of tokens from the Heurist vending machine for token address 0xAbC123... and send them to my wallet 0xDef456....

## When to prefer this

Use this endpoint when you need to purchase exactly $20 USDC worth of tokens from a Heurist vending machine token launch. Prefer this over the $3, $4, or $5 tiers when you want a larger single allocation without reaching the maximum tier. It is specifically suited for automated agents participating in token launches programmatically via x402 payments.

## Known failure modes

- Token launch is not currently open for purchases — returns an error indicating the sale is closed
- Allocation cap has already been reached — returns an error that no more tokens are available
- Invalid or unrecognized token address — returns a validation error
- Recipient address is malformed — returns an address validation error
- Insufficient payment or payment failure — x402 payment not processed correctly
- Network or blockchain congestion causing transaction delay or failure

## How this service works

Buy $20.00 USDC worth of tokens from the vending machine. The token launch must be open to buy, and the allocation cap must not have been reached.

## Output

Returns a confirmation of the $20 USDC token purchase, including the token amount received and transaction details. If the launch is not open or the allocation cap has been reached, an error is returned indicating the purchase could not be completed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token"
 ],
 "properties": {
  "token": {
   "type": "string",
   "description": "Token address"
  },
  "recipient": {
   "type": "string",
   "description": "Optional recipient address; default is the API caller"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-vending-machine-buy-20-usdc-of-tokens-ffb40bad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine.heurist.xyz](https://www.zero.xyz/host/vending-machine.heurist.xyz/llms.txt)
