You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Clarify Base catalog scope: mainnet routes only (eip155:8453);
CLI supports both mainnet and Sepolia
- Agent Wallet CLI: document wallet-type subcommand form for
non-interactive start/add (local_secure / raw_secret / privy)
- SDK Guide and x402 CLI page touch-ups
- Updated in both en and zh-Hans
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
-**Base is live** — `eip155:8453` and `eip155:84532`with USDC, in both the CLI and the service catalog. Base settles under `exact` using EIP-3009 authorization instead of Permit2.
18
+
-**Base is live in the CLI** — `eip155:8453` and `eip155:84532`both support USDC. The service catalog currently publishes Base Mainnet routes on `eip155:8453` only. Base settles under `exact` using EIP-3009 authorization instead of Permit2.
19
19
-**Agent Wallet is now the CLI's default payer** — `pay` signs with your active wallet, so no private key in an environment variable. With wallets configured but none active, the CLI stops before signing rather than choosing for you. [Details](./x402/)
20
20
- Paid requests no longer follow HTTP redirects, keeping `PAYMENT-SIGNATURE` from reaching another origin.
-**Base support** — `eip155:8453` (Mainnet) and `eip155:84532` (Sepolia), both with USDC, plus the `base-mainnet` / `base-sepolia` aliases. Base settles through the standard `exact` scheme using **EIP-3009** authorization rather than Permit2. Supply your own RPC in production via `--rpc-url` or `EVM_RPC_URL_8453` / `EVM_RPC_URL_84532`.
19
-
-**Agent Wallet is now the default payer** — `pay` resolves your active [Agent Wallet](../Agent-Wallet/Intro/) and delegates signing, so no private key sits in an environment variable. If wallets are configured but none is active, the CLI **stops before signing** instead of picking one for you. Select explicitly with `--wallet-id` / `AGENT_WALLET_ID`, or point at another directory with `AGENT_WALLET_DIR`. Private keys are now a development/CI override only.
19
+
-**Agent Wallet is now the default payer** — `pay` resolves your active [Agent Wallet](/Agent-Wallet/Intro/) and delegates signing, so no private key sits in an environment variable. If wallets are configured but none is active, the CLI **stops before signing** instead of picking one for you. Select explicitly with `--wallet-id` / `AGENT_WALLET_ID`, or point at another directory with `AGENT_WALLET_DIR`. Private keys are now a development/CI override only.
20
20
-**Redirects are no longer followed** on paid requests, so `PAYMENT-SIGNATURE` can't be forwarded to another origin.
21
21
-**EVM balance pre-check** — the CLI verifies the payer's token balance before signing and returns the resolved wallet ID, address, and raw balance.
22
22
- New: `pay --asset` / `--decimals`, `serve --valid-for-seconds` (default `300`), and `roundtrip --json` emitting one document with separate `serve` and `pay` results.
23
23
- New wallet error codes: `WALLET_PASSWORD_REQUIRED`, `WALLET_DECRYPTION_FAILED`, `WALLET_CONFIG_CORRUPT`, `WALLET_NETWORK_ERROR`.
24
24
25
-
👉 [x402 CLI docs](../x402/cli/)
25
+
👉 [x402 CLI docs](/x402/cli/)
26
26
27
27
</div>
28
28
</div>
@@ -35,10 +35,10 @@ Release notes for the x402 protocol, SDK, and [CLI](../x402/cli/).
- Published **Base mainnet and Base Sepolia catalog routes**, with payment guides and code examples.
38
+
- Published **Base Mainnet catalog routes** on `eip155:8453`, with payment guides and code examples. Base Sepolia remains available in the CLI but is not published in the service catalog.
39
39
-`assetTransferMethod` now accepts **`eip3009`** alongside `permit2` — Base USDC routes use `eip3009`.
The SDK still accepts the older `TRON_PRIVATE_KEY`, `TRON_MNEMONIC`, and `TRON_ACCOUNT_INDEX` variables, which map to `AGENT_WALLET_PRIVATE_KEY`, `AGENT_WALLET_MNEMONIC`, and `AGENT_WALLET_MNEMONIC_ACCOUNT_INDEX`. They work on EVM networks too, despite the name. Prefer the `AGENT_WALLET_*` names in new setups.
The build resolves each chain ID into display metadata (`kind` / `label` / `label_zh`) so the frontend doesn't have to parse CAIP-2 itself — see [Frontend display fields](#frontend-display-fields).
Copy file name to clipboardExpand all lines: docs/x402/cli/index.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The CLI groups its capabilities into five commands.
35
35
|**`gateway`**| Manage local gateway provider files: validate, scaffold, start, and build catalog assets. |`x402-cli gateway check ./providers`|
36
36
|**`catalog`**| Search, cache, inspect, and export the hosted provider catalog. |`x402-cli catalog search "weather"`|
37
37
38
-
Read-only commands (`pay --dry-run`, `catalog search`, `gateway check`) need no wallet. Only an actual payment requires a payer private key.
38
+
Read-only commands (`pay --dry-run`, `catalog search`, `gateway check`) need no wallet. An actual payment requires a configured signing wallet; raw private keys are only a development/CI override.
39
39
40
40
---
41
41
@@ -44,17 +44,34 @@ Read-only commands (`pay --dry-run`, `catalog search`, `gateway check`) need no
44
44
Output is human-friendly text by default. Add `--json` to any command for a stable, machine-readable envelope — ideal for scripts and AI agents:
@@ -117,7 +134,7 @@ Use the CLI to explore, test, and script against x402 endpoints, or to give an A
117
134
:::warning
118
135
Payments move real on-chain assets and cannot be reversed. Keep these principles in mind:
119
136
120
-
-**Let Agent Wallet hold the key.** It is the default payer and signs locally — you never put a private key in a config file or environment variable. `--private-key` and the `*_PRIVATE_KEY` variables exist for development and CI only.
137
+
-**Let Agent Wallet hold the key.** It is the default payer and delegates signing to the configured wallet backend, which may be local or remote. You never need to put a private key in the CLI configuration or environment. `--private-key` and the `*_PRIVATE_KEY` variables exist for development and CI only.
121
138
-**Test on testnet first.** Use `tron:0xcd8690dc`, `eip155:97`, or `eip155:84532` before running any payment on mainnet.
122
139
-**Preview before you pay.** Run `pay --dry-run` to inspect the exact requirement before signing.
123
140
-**Cap the amount.** Use `--max-amount` or `--max-raw-amount` so a mispriced endpoint can't overcharge you.
Copy file name to clipboardExpand all lines: docs/x402/cli/quickstart.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,17 +49,17 @@ You should see the version number and the list of commands (`pay`, `serve`, `rou
49
49
50
50
## Step 2: Try it without spending anything
51
51
52
-
The fastest way to see a real `402` challenge is a **dry run**. This probes an endpoint, reads its payment requirement, and prints exactly what you'd be asked to pay — without signing or spending:
52
+
The fastest way to see a real `402` challenge is a **dry run**. This probes a live TRON Mainnet endpoint, reads its payment requirement, and prints exactly what you'd be asked to pay — without signing or spending:
The `--dry-run` output includes the selected requirement (network, asset, amount, recipient). This is your safety net: always dry-run an unfamiliar endpoint before paying it.
62
+
This step reads a TRON Mainnet requirement, but `--dry-run` never signs or submits a payment. Its output includes the selected requirement (network, asset, amount, recipient). This is your safety net: always dry-run an unfamiliar endpoint before paying it.
63
63
64
64
---
65
65
@@ -85,12 +85,12 @@ The CLI signs with your active [Agent Wallet](../../Agent-Wallet/QuickStart.md),
85
85
86
86
## Step 4: Pay a real x402 endpoint
87
87
88
-
Once the roundtrip works, paying any x402-protected URL is the same `pay`command pointed at a real resource:
88
+
Once the roundtrip works, paying any x402-protected URL uses the same command. Replace the placeholders below with the URL, network, and token advertised by the provider:
0 commit comments