Documentation Index
Fetch the complete documentation index at: https://docs.asgcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Payment Contract Reference
Every paid tool call on ASG follows the 402 Payment Required flow. This document describes the canonical response shape that agents must parse to build Solana payment instructions.402 Response Shape
When an agent calls a tool without payment, the gateway returns:Field Reference
| Field | Type | Description |
|---|---|---|
network | string | Always solana-mainnet |
asset | string | Always USDC |
pay_to | string | Treasury USDC token account (ATA) |
destination | string | Same as pay_to (alias) |
usdc_mint | string | USDC SPL token mint address |
memo_format | string | Required memo: asg:{quote_id} |
methods | string[] | Supported: transfer, solana_pay |
gasless_supported | boolean | Whether gasless relay is available |
payment_methods | string[] | wallet (direct) or gasless (relay) |
Payment Flow
X-Payment Header
The retry request must includeX-Payment header with base64url-encoded JSON:
Important Notes
- Network: Only
solana-mainnetis supported. All payments must use Solana mainnet USDC. - Gasless: ASG covers Solana transaction fees. Agents only need USDC — no SOL required.
- TTL: Quotes expire after
ttl_seconds(default 300s / 5 min). Expired quotes returnQUOTE_EXPIRED. - Idempotency: Re-submitting the same
X-Paymentheader returns the cached result without re-charging. - Base URL:
https://agent.asgcompute.com