# x402 Vending Machine - Buy $2 USDC of Tokens

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

Purchase $2.00 USDC worth of tokens from the Heurist vending machine for an open token launch that hasn't reached its allocation cap.

## Facts

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

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-2-usdc-of-tokens-dd049e32 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you want to make a small $2 USDC entry into a token launch on the Heurist vending machine. Prefer this over the $3, $4, or $5 buy endpoints when the user wants the minimum purchase tier or wants to test participation with minimal spend. Requires the target token launch to be active and under its allocation cap.

## Known failure modes

- Token launch is not currently open for purchase — returns error indicating closed or not-yet-started sale
- Allocation cap has already been reached — returns error indicating the sale is sold out
- Invalid or unrecognized token address — returns validation error
- Insufficient payment or payment processing failure via x402 protocol
- Invalid recipient address format

## How this service works

Buy $2.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 confirmation of the token purchase, including transaction details, the amount of tokens acquired, and the recipient address that received the allocation.

## 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-2-usdc-of-tokens-dd049e32/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)
