# JAMTON XAUH x402 Purchase API

> JAMTON XAUH x402 Purchase API is a paid API for AI agents from api.jamton.network, paid per call via x402, $1000/call, status unknown (last checked 2026-09-15).

Initiates a purchase of XAUH gold-backed jettons on the TON blockchain using stablecoin payment via the x402 payment flow on Base network.

## Facts

- Endpoint: POST https://api.jamton.network/v1/purchases/xauh/requests/x402
- Price: $1000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jamton-xauh-x402-purchase-api-959a33f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Ijen5tjS3RMkhz0Yqj1W

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 jamton-xauh-x402-purchase-api-959a33f6 -d '<json body>'
```

Example prompt: Buy me 1 XAUH on JAMTON and send it to my TON wallet at 0:575bedd5aa515d3b87548d933b3011c1cc462994ff5efdec2ba88ca0d233fd65, paying with USDC on Base mainnet.

## When to prefer this

Use this endpoint when an AI agent or wallet needs to programmatically purchase XAUH (a gold-backed TON jetton) using USDC or USDT on the Base blockchain via the x402 payment protocol. Prefer this over manual exchange flows when you need automated, agent-driven cross-chain acquisition of gold-backed tokens delivered natively to a TON wallet address.

## Known failure modes

- Missing both xauhAmount and paymentAmount — API requires at least one to be provided
- Invalid TON wallet address format — must be in raw 0: hex format
- Unsupported network identifier — only eip155:8453 (Base mainnet) and eip155:84532 (Base Sepolia) accepted
- x402 payment not confirmed on-chain — purchase stays pending
- Insufficient stablecoin balance for the requested XAUH amount
- XAUH delivery to TON fails — deliveryStatus remains DELIVERY_PENDING or fails
- Duplicate payment attempt for the same request may be rejected

## How this service works

Buy tokenized physical gold (XAUH) on TON with USDC via x402. Returns purchase status, XAUH amount, payment transaction, and delivery tracking.

## Output

Returns a purchase request object containing a UUID request ID, current status (e.g. PAYMENT_RECEIVED), payment details (amount, tx hash, network, explorer URL, asset address), the exact XAUH amount being delivered (18-decimal precision), TON wallet destination, delivery status, and a status polling URL to track completion of the cross-chain XAUH jetton delivery.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "enum": [
    "eip155:8453",
    "tvm:-239"
   ],
   "type": "string",
   "default": "eip155:8453",
   "example": "eip155:8453",
   "description": "CAIP-2 payment network identifier."
  },
  "xauhAmount": {
   "type": "string",
   "example": "1",
   "pattern": "^[0-9]+(\\.[0-9]+)?$",
   "description": "XAUH amount as a decimal string. Required when paymentAmount is omitted."
  },
  "paymentAsset": {
   "enum": [
    "USDC",
    "USDT",
    "USDS"
   ],
   "type": "string",
   "default": "USDC",
   "example": "USDC",
   "description": "Payment asset symbol supported on the active x402 network."
  },
  "paymentAmount": {
   "type": "string",
   "example": "1000",
   "pattern": "^[0-9]+(\\.[0-9]+)?$",
   "description": "Stablecoin amount as a decimal string. Required when xauhAmount is omitted."
  },
  "tonWalletAddress": {
   "type": "string",
   "example": "0:575bedd5aa515d3b87548d933b3011c1cc462994ff5efdec2ba88ca0d233fd65",
   "description": "TON wallet address that will receive purchased XAUH jettons."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "25efca90-9e2a-4470-a13d-7be7cd5bf88e",
  "status": "PAYMENT_RECEIVED",
  "userId": "b9df0c8d-621a-4353-b29b-5b235ed66c3e",
  "payment": {
   "amount": "1000",
   "txHash": "0xf409875ceb8f5003b27ae7bf169b0497cf80c23c9b866a79f6cfcc17782768ce",
   "network": "eip155:8453",
   "decimals": 6,
   "assetSymbol": "USDC",
   "explorerUrl": "https://basescan.org/tx/0xf409875ceb8f5003b27ae7bf169b0497cf80c23c9b866a79f6cfcc17782768ce",
   "amountAtomic": "1000000000",
   "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  },
  "failedAt": null,
  "createdAt": "2026-06-10T12:00:00.000Z",
  "statusUrl": "/v1/purchases/xauh/requests/25efca90-9e2a-4470-a13d-7be7cd5bf88e",
  "xauhAmount": "7.575154128630735711",
  "completedAt": null,
  "xauhDecimals": 18,
  "deliveryStatus": "DELIVERY_PENDING",
  "tonWalletAddress": "0:575bedd5aa515d3b87548d933b3011c1cc462994ff5efdec2ba88ca0d233fd65",
  "xauhAmountAtomic": "7575154128630735711",
  "paymentReceivedAt": "2026-06-10T12:00:00.000Z",
  "tonTransferTxHash": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jamton-xauh-x402-purchase-api-959a33f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.jamton.network](https://www.zero.xyz/host/api.jamton.network/llms.txt)
