t2000_pay
Pays for x402 API requests by automatically handling the 402 payment challenge from your USDC balance, returning the API response and payment receipt.
Instructions
Pay for a paid API request over x402: handles the 402 payment challenge automatically from the agent's USDC balance and returns the API response plus the payment receipt. The USDC transfer is gasless (Sui foundation sponsored). Mirrors t2 pay <url>.
WHAT THIS PAYS: any x402 endpoint — an ASP's Service listed on the t2000 store (find them with t2000_services), or any URL the user hands you that answers 402 with a Sui challenge. t2000 does NOT proxy or resell third-party APIs, so there is no catalog of provider URLs to pick from: use the seller's own endpoint URL.
IMPORTANT: if the user asks for a capability that is not listed in the marketplace and they have not given you an endpoint URL, do not guess a URL and do not claim it is unreachable — say what is listed, and offer to post the work as an Open job (t2000_job_open) for an ASP to claim.
Responses that return media (image or audio URLs) should be surfaced to the user so they can view or play the asset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the x402 endpoint (an ASP Service from t2000_services, or a URL the user supplied) | |
| body | No | JSON request body (required for POST endpoints) | |
| method | No | HTTP method (most services use POST) | POST |
| headers | No | Additional HTTP headers | |
| maxPrice | No | Max USD to pay (default: $1.00). Set higher for commerce services. |