# TokenSense Buy Token via x402

> TokenSense Buy Token via x402 is a paid API for AI agents from x402.wach.ai, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-19).

Purchases a specified EVM token on Base and sends it to a given wallet address, paid via x402 micropayment protocol

## Facts

- Endpoint: POST https://x402.wach.ai/mpp/buyToken
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokensense-buy-token-via-x402-b49815ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DeDC-zyXUz23vHYePxDxP

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 tokensense-buy-token-via-x402-b49815ad -d '<json body>'
```

Example prompt: Buy the token at Base contract address 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed and send it to my wallet 0xAbC123...456 — use the TokenSense buyToken route.

## When to prefer this

Choose this endpoint when you need to programmatically purchase a specific EVM token on the Base network and deliver it directly to a wallet address, especially in agentic or automated workflows that use the x402 micropayment protocol. Prefer this over manual DEX interactions when you want a single API call to handle the buy-and-deliver flow without managing swap routing yourself.

## Known failure modes

- walletAddress is not a valid EVM address — returns validation error
- buyTokenAddress is Base native USDC contract — explicitly rejected by the API
- buyTokenAddress is not a valid or recognized Base token contract — purchase fails
- x402 payment fails or is insufficient — request rejected with 402 status
- Token liquidity unavailable or swap route not found — purchase cannot be executed
- Network congestion or RPC failure causing transaction timeout

## How this service works

x402-paid TokenSense routes, with parallel MPP routes under /mpp/*.

## Output

Returns confirmation of the token purchase and delivery to the specified wallet, likely including transaction hash, token details, and transfer status on the Base network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "walletAddress",
  "buyTokenAddress"
 ],
 "properties": {
  "walletAddress": {
   "type": "string",
   "description": "Recipient EVM wallet address that receives the purchased token."
  },
  "buyTokenAddress": {
   "type": "string",
   "description": "Base token contract address to buy. Base native USDC is rejected."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensense-buy-token-via-x402-b49815ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wach.ai](https://www.zero.xyz/host/x402.wach.ai/llms.txt)
