@@ -289,7 +265,6 @@ First stable release of `@bankofai/x402-cli` — a TypeScript command-line clien
- **`pay`** — pay any x402-protected URL: probe, read the `402` challenge, sign, and retry
- **`serve`** — run a local x402 paywall endpoint that verifies and settles through a facilitator
- **`roundtrip`** — start a temporary server, pay it, exit: the fastest end-to-end smoke test
-- **`gateway`** / **`catalog`** — validate and scaffold provider files; search, cache, and export the provider catalog
- Built on the published `@bankofai/x402-core` / `x402-evm` / `x402-tron` SDK 1.0 packages; `scheme=exact` with Permit2
- Networks: TRON (`tron:mainnet` / `tron:nile` / `tron:shasta`) and BSC (`eip155:56` / `eip155:97`)
diff --git a/devnotes/x402-stablecoin-payments-for-agents.md b/devnotes/x402-stablecoin-payments-for-agents.md
index d61ca5d1..d829cc8d 100644
--- a/devnotes/x402-stablecoin-payments-for-agents.md
+++ b/devnotes/x402-stablecoin-payments-for-agents.md
@@ -40,7 +40,7 @@ Within the TRON ecosystem, [BANK OF AI](/BANK-OF-AI/Intro/) positions itself as

-In this layering, x402 is the open payment protocol in the infrastructure and standards layer, sitting alongside 8004 which handles agent identity and reputation; MCP defines how agents and tools exchange context. The x402 Gateway, x402 Facilitator, x402 Recharge Server, Agent Wallet, Skills, and the various MCP Servers live in the middle layer, turning those protocols into directly callable capabilities. Each layer can be used on its own or combined as the scenario requires: x402 when you need to pay, 8004 when you need to verify identity or reputation, MCP when you need to connect to tools or on-chain services.
+In this layering, x402 is the open payment protocol in the infrastructure and standards layer, sitting alongside 8004 which handles agent identity and reputation; MCP defines how agents and tools exchange context. The x402 Facilitator, x402 Recharge Server, Agent Wallet, Skills, and the various MCP Servers live in the middle layer, turning those protocols into directly callable capabilities. Each layer can be used on its own or combined as the scenario requires: x402 when you need to pay, 8004 when you need to verify identity or reputation, MCP when you need to connect to tools or on-chain services.
## 3. Architecture and payment flow
diff --git a/docker/nginx/APKBUILD b/docker/nginx/APKBUILD
index 9f577134..0127667d 100644
--- a/docker/nginx/APKBUILD
+++ b/docker/nginx/APKBUILD
@@ -1,5 +1,5 @@
pkgname=nginx
-pkgver=1.31.8
+pkgver=1.31.9
pkgrel=0
pkgdesc="NGINX HTTP server for BofAI docs"
url="https://nginx.org/"
@@ -35,5 +35,5 @@ package() {
}
sha512sums="
-b05679bd30746f41b17343be570ed62b2bb0bc64e15d24d8af307db03d5227ab6b1da57bb4b640ad4d4c854a0c0233285d5ba294caa4ad199c49522883700fce nginx-1.31.8.tar.gz
+282f12d4106b49f2e715defdea6855ecf32fe5957a8c61c19ed0ca73bad5ea737c47f73dd8c5fa2cfe67f441d2912cedc3649b5d00fce895537f54eb9f765210 nginx-1.31.9.tar.gz
"
diff --git a/docs/8004/Usage/Install.md b/docs/8004/Usage/Install.md
index 6e6d3d21..3de03931 100644
--- a/docs/8004/Usage/Install.md
+++ b/docs/8004/Usage/Install.md
@@ -78,9 +78,11 @@ npm run build
> **Note**: All dependencies are automatically installed when installing via npm or yarn.
+As of 2026-11-12, TypeScript SDK **1.2.1** declares `tronweb: ^6.5.1`. Its source lockfile resolves **6.5.1**, while a fresh application install can resolve **6.5.2**. Inspect your application's lockfile rather than assuming it matches the SDK repository. For root-project HTTP dependency overrides covering both versions, see [TronWeb dependency security](/x402/sdk-features/#dependency-security).
+
## Optional Dependencies
For enhanced functionality:
* **Subgraph**: Optional. TypeScript accepts `subgraphUrl` or `subgraphOverrides`; Python accepts `subgraphOverrides` only.
-* **IPFS Providers**: Optional, and configured differently per language. Python has built-in providers — `ipfs="pinata"` (`pinataJwt`), `ipfs="filecoinPin"` (`filecoinPrivateKey`) or `ipfs="node"` (`ipfsNodeUrl`). TypeScript has no built-in provider: pass your own `ipfsUploader` callback, which `registerIPFS()` requires.
\ No newline at end of file
+* **IPFS Providers**: Optional, and configured differently per language. Python has built-in providers — `ipfs="pinata"` (`pinataJwt`), `ipfs="filecoinPin"` (`filecoinPrivateKey`) or `ipfs="node"` (`ipfsNodeUrl`). TypeScript has no built-in provider: pass your own `ipfsUploader` callback, which `registerIPFS()` requires.
diff --git a/docs/Agent-Wallet/Developer/SDK-Guide.md b/docs/Agent-Wallet/Developer/SDK-Guide.md
index 2511306c..dd62a09b 100644
--- a/docs/Agent-Wallet/Developer/SDK-Guide.md
+++ b/docs/Agent-Wallet/Developer/SDK-Guide.md
@@ -18,7 +18,7 @@ Agent-wallet 3.x is TypeScript only. The Python package `bankofai-agent-wallet`
**Check Your Node.js Version**
-Use Node.js `^22.23.4 || ^24.22.1 || >=26.12.1` — the October 2026 security releases. This is the `engines` range on the source `main` branch; the published npm `3.0.0` still declares `>=18.0.0`, but wallet-cli `4.15.1` itself declares the same range. On `main`, when the `wallet_cli` wallet type launches wallet-cli through a JavaScript entrypoint with the current Node (a locally installed package, or an `AGENT_WALLET_WALLET_CLI_PATH` pointing at a `.js` file), it checks the same range first; a `wallet-cli` executable found on `PATH` is not checked. (In the published `3.0.0`, that entrypoint check only requires Node.js 20+.) Check your current version:
+Use Node.js `^22.23.4 || ^24.22.1 || >=26.12.1` — the October 2026 security releases. This is the `engines` range on the source `main` branch; the published npm `3.0.0` still declares `>=18.0.0`, but wallet-cli `4.16.0` itself declares the same range. On `main`, when the `wallet_cli` wallet type launches wallet-cli through a JavaScript entrypoint with the current Node (a locally installed package, or an `AGENT_WALLET_WALLET_CLI_PATH` pointing at a `.js` file), it checks the same range first; a `wallet-cli` executable found on `PATH` is not checked. (In the published `3.0.0`, that entrypoint check only requires Node.js 20+.) Check your current version:
```bash
node -v
diff --git a/docs/Agent-Wallet/QuickStart.md b/docs/Agent-Wallet/QuickStart.md
index da19e12b..524a163d 100644
--- a/docs/Agent-Wallet/QuickStart.md
+++ b/docs/Agent-Wallet/QuickStart.md
@@ -29,7 +29,7 @@ Privy users: see [CLI Reference → Privy](./Developer/CLI-Reference.md#privy-wa
### 1.1 Prepare Your Environment: Install Node.js
-Agent-wallet and wallet-cli (Path A) both require **Node.js 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+** — the October 2026 security releases (the published agent-wallet `3.0.0` still declares `>=18`; wallet-cli `4.15.1` and the next agent-wallet release declare this range). An up-to-date LTS install satisfies this.
+Agent-wallet and wallet-cli (Path A) both require **Node.js 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+** — the October 2026 security releases (the published agent-wallet `3.0.0` still declares `>=18`; wallet-cli `4.16.0` and the next agent-wallet release declare this range). An up-to-date LTS install satisfies this.
Open a terminal (Mac users press `Command + Space` and search for "Terminal"), then type:
diff --git a/docs/BANK-OF-AI/QuickStart.md b/docs/BANK-OF-AI/QuickStart.md
index 1be0f452..ea5bb64b 100644
--- a/docs/BANK-OF-AI/QuickStart.md
+++ b/docs/BANK-OF-AI/QuickStart.md
@@ -11,7 +11,6 @@ Choose an entry point for your task:
| --- | --- |
| Install capabilities for an agent | [Skills quick start](/McpServer-Skills/SKILLS/QuickStart/) |
| Configure a wallet and pay with x402 | [wallet-cli quick start](/wallet-cli/quickstart/) |
-| Find paid APIs | [API Catalog](/x402/api-catalog/get-started/) |
| Recharge B.AI | [wallet-cli recharge guidance](/wallet-cli/command-reference/) |
| DeFi workflows and data queries | [Skill catalog](/McpServer-Skills/SKILLS/BANKOFAISkill/) |
diff --git a/docs/McpServer-Skills/MCP/TRONMCPServer/FAQ.md b/docs/McpServer-Skills/MCP/TRONMCPServer/FAQ.md
index dee972ba..25890d13 100644
--- a/docs/McpServer-Skills/MCP/TRONMCPServer/FAQ.md
+++ b/docs/McpServer-Skills/MCP/TRONMCPServer/FAQ.md
@@ -14,7 +14,7 @@ This is the most common issue. Troubleshoot in the following order:
1. **Check Node.js version**. What is declared depends on how you run the server:
- **`npx -y @bankofai/mcp-server-tron`** runs the npm package `1.1.7`, which declares Node.js `>=20`.
- - **A source checkout** of `main` (tag `v1.1.8`) requires 22.23.4+ (22.x) or 24.22.1+ (24.x). Its `package.json` still says `1.1.7`, so the server reports version `1.1.7` there too.
+ - **Source v1.1.11** requires 22.23.4+ (22.x) or 24.22.1+ (24.x), and reports version `1.1.11`. The npm `latest` tag remains `1.1.7` as of 2026-11-12; use the source build for TronWeb 6.5.2, the Mainnet RPC override, and the dependency and input-limit fixes.
Either way, we recommend the October 2026 security releases, 22.23.4+ or 24.22.1+:
```bash
@@ -51,6 +51,10 @@ When using HTTP mode (`npx -y @bankofai/mcp-server-tron --http`, or `npm run sta
3. **Firewall blocking**. If you're accessing the local HTTP service from another machine, check whether the firewall allows inbound connections on that port.
+### HTTP 413 / 415 or oversized tool arguments
+
+On source v1.1.11, **413** means the JSON body exceeds **1 MiB**; split the request. **415** means the body is compressed; send uncompressed JSON. The MCP SDK also rejects tool arguments exceeding a combined **10,000 array elements and object keys** before the tool handler runs. A large ABI or multicall batch can hit that limit; reduce the batch. These rejections occur before tool execution.
+
### Write tools appear but return a wallet error {#write-tools-wallet-error}
As of v1.1.7, write tools (transfers, staking, etc.) are always visible in the AI's tool list, but wallet availability is checked at execution time. If you call a write tool without a usable wallet, the tool returns an error such as `Error transferring TRX:
`, where `` comes from Agent Wallet — see [Wallet error messages](#wallet-error-messages) below for what each one means.
@@ -87,10 +91,10 @@ TRON MCP Server uses [Agent Wallet](../../../Agent-Wallet/Intro.md) for all wall
| `Password required for local_secure wallets` | Wallets exist in the wallet directory, but no password resolved — neither `runtime_secrets.json` nor `AGENT_WALLET_PASSWORD`. |
| `No active wallet set.` | A password resolved, but the wallet directory holds no wallets. In this case the private-key and mnemonic variables are ignored — create or import a wallet with Agent Wallet, or remove the password so the env-var path is used. |
| `MAC mismatch — wrong password or corrupted file` | A password was found but does not match the keystore (see the next section). |
-| `Wallet not configured.` | Agent Wallet could not even load its configuration — for example a malformed `runtime_secrets.json` or `wallets_config.json`. With agent-wallet 2.3.x (what a source checkout's `package-lock.json` installs), setting both a private key and a mnemonic also ends here, when the env-var path is reached (see below the table). |
-| `Provide only one of AGENT_WALLET_PRIVATE_KEY or AGENT_WALLET_MNEMONIC` | A private key (`AGENT_WALLET_PRIVATE_KEY` or `TRON_PRIVATE_KEY`) and a mnemonic (`AGENT_WALLET_MNEMONIC` or `TRON_MNEMONIC`) are both set and the env-var path is reached, with agent-wallet 2.4.0 — what `npx -y @bankofai/mcp-server-tron` (npm `1.1.7`, dependency `^2.3.0`) installs today. The server passes the text through, e.g. `Error transferring TRX: Provide only one of …`, or `Error: Provide only one of …` from `get_wallet_address`. Unset one of the two. |
+| `Wallet not configured.` | Agent Wallet could not even load its configuration — for example a malformed `runtime_secrets.json` or `wallets_config.json`. |
+| `Provide only one of AGENT_WALLET_PRIVATE_KEY or AGENT_WALLET_MNEMONIC` | A private key (`AGENT_WALLET_PRIVATE_KEY` or `TRON_PRIVATE_KEY`) and a mnemonic (`AGENT_WALLET_MNEMONIC` or `TRON_MNEMONIC`) are both set and the env-var path is reached, with agent-wallet 2.4.0 — the version locked by source v1.1.11 and also resolved by npm 1.1.7 (`^2.3.0`). The server passes the text through, e.g. `Error transferring TRX: Provide only one of …`, or `Error: Provide only one of …` from `get_wallet_address`. Unset one of the two. |
-Both agent-wallet versions read the private key from `AGENT_WALLET_PRIVATE_KEY` or its alias `TRON_PRIVATE_KEY`, and the mnemonic from `AGENT_WALLET_MNEMONIC` or its alias `TRON_MNEMONIC`. They read these env vars only on the env-var path — when no password resolves **and** the wallet directory holds no wallets. Otherwise the variables are silently ignored, and neither of the both-set errors above can occur.
+Agent Wallet 2.4.0 reads the private key from `AGENT_WALLET_PRIVATE_KEY` or its alias `TRON_PRIVATE_KEY`, and the mnemonic from `AGENT_WALLET_MNEMONIC` or its alias `TRON_MNEMONIC`. It reads these env vars only on the env-var path — when no password resolves **and** the wallet directory holds no wallets. Otherwise the variables are silently ignored, and the both-set error above cannot occur.
To resolve the first two:
@@ -116,7 +120,9 @@ The API Key is configured but requests are still rate-limited — check the foll
2. **Is the Key still active?** Log into [trongrid.io](https://www.trongrid.io/) to confirm your API Key is active.
-3. **The key is read from the environment, not from a request header.** The server reads `TRONGRID_API_KEY` from its own process environment and forwards it upstream as `TRON-PRO-API-KEY`; it does not inspect incoming request headers at all. A per-request API key against the hosted cloud service is therefore not possible — run a local or self-hosted instance with `TRONGRID_API_KEY` set if you need your own quota.
+3. **The key is read from the environment, not from a request header.** The server reads `TRONGRID_API_KEY` from its own process environment; it does not inspect incoming request headers at all. Source v1.1.11 attaches the upstream `TRON-PRO-API-KEY` header only for official HTTPS TronGrid origins. A per-request API key against the hosted cloud service is therefore not possible — run a local or self-hosted instance with `TRONGRID_API_KEY` set if you need your own quota.
+
+4. **Check the Mainnet RPC override.** On source v1.1.11, `MCP_MAINNET_RPC_URL` takes precedence over the key. An override to another RPC origin receives no TronGrid credential. Unset the override to restore automatic selection, or configure the intended endpoint in the deployment environment; restart the server after changes. See [network configuration](./LocalPrivatizedDeployment.md#mainnet-rpc-override-source-v1111).
---
@@ -183,7 +189,7 @@ If this keeps happening, remind the AI: "Please only use tools provided by TRON
Several common causes and solutions:
-- **No TronGrid API Key**: Without `TRONGRID_API_KEY`, Mainnet requests go to the BANK OF AI fallback endpoint `https://hptg.bankofai.io` on a source checkout from `v1.1.8`, and to `https://api.trongrid.io` without a key on npm `1.1.7` (what `npx` runs). Setting a free API Key sends them to `https://api.trongrid.io` under your own quota in both versions
+- **No TronGrid API Key**: Without `TRONGRID_API_KEY` or a Mainnet RPC override, Mainnet requests go to `https://hptg.bankofai.io` on source v1.1.11, and to `https://api.trongrid.io` without a key on npm `1.1.7` (what `npx` runs). Setting a free API Key sends them to `https://api.trongrid.io` under your own quota; on source v1.1.11, `MCP_MAINNET_RPC_URL` must be unset for that automatic selection.
- **Complex multi-tool workflows**: Some operations (like full wallet analysis) require multiple sequential calls — waiting is normal
- **Use testnet for development**: Nile and Shasta testnets are usually faster
- **Be more specific in prompts**: Reduce the AI's exploratory calls — tell it directly which tool to use and which network to query
@@ -220,16 +226,17 @@ To clear the npx cache instead, delete `~/.npm/_npx` (and, if needed, run `npm c
npx clear-npx-cache
```
-If you cloned from source:
+For the source deployment, fetch tags and select the reviewed tag (currently `v1.1.11`), then rebuild with its lockfile:
```bash
cd mcp-server-tron
-git pull
-npm install
+git fetch --tags origin
+git checkout v1.1.11
+npm ci
npm run build
```
### What MCP protocol version is supported?
-The protocol version is negotiated by `@modelcontextprotocol/sdk`, which the server depends on as `^1.22.0`; a source checkout's `package-lock.json` pins 1.27.1. MCP protocol version **2025-11-25** requires SDK 1.24.1 or later — SDK 1.22.0–1.24.0 top out at 2025-06-18. Older protocol versions requested by the client are also accepted.
+The protocol version is negotiated by `@modelcontextprotocol/sdk`. Source v1.1.11 depends on `^1.32.2` and locks **1.32.2**; npm 1.1.7 declares `^1.22.0`, so its resolved SDK depends on the installation lockfile. MCP protocol version **2025-11-25** requires SDK 1.24.1 or later — SDK 1.22.0–1.24.0 top out at 2025-06-18. Older protocol versions requested by the client are also accepted.
diff --git a/docs/McpServer-Skills/MCP/TRONMCPServer/Intro.md b/docs/McpServer-Skills/MCP/TRONMCPServer/Intro.md
index 738dc833..2ef335b4 100644
--- a/docs/McpServer-Skills/MCP/TRONMCPServer/Intro.md
+++ b/docs/McpServer-Skills/MCP/TRONMCPServer/Intro.md
@@ -1,5 +1,7 @@
# Introduction
+> **Version status (2026-11-12):** the reviewed source tag is **v1.1.11**; npm `latest` remains **1.1.7**. v1.1.11 upgrades TronWeb to 6.5.2 and retains the deployment-specific Mainnet RPC override and TronGrid credential restrictions introduced in v1.1.10, plus the dependency fixes, bounded tool inputs, and HTTP and Docker limits from v1.1.9. Use the [source deployment instructions](/McpServer-Skills/MCP/TRONMCPServer/LocalPrivatizedDeployment/#option-b-clone-from-source) for these updates.
+
## What is TRON MCP Server?
TRON MCP Server is a bridge that connects AI assistants with the TRON blockchain. Built on the [Model Context Protocol (MCP)](../Intro.md) standard, it lets you interact with the blockchain using natural language — checking balances, initiating transfers, calling smart contracts — without writing any code.
diff --git a/docs/McpServer-Skills/MCP/TRONMCPServer/LocalPrivatizedDeployment.md b/docs/McpServer-Skills/MCP/TRONMCPServer/LocalPrivatizedDeployment.md
index 134d731c..5828ce66 100644
--- a/docs/McpServer-Skills/MCP/TRONMCPServer/LocalPrivatizedDeployment.md
+++ b/docs/McpServer-Skills/MCP/TRONMCPServer/LocalPrivatizedDeployment.md
@@ -1,5 +1,9 @@
# Local Private Deployment
+:::info Source and npm versions
+As of **2026-11-12**, source tag **v1.1.11** and npm `latest` **1.1.7** differ. The Mainnet RPC override, dependency overrides, input limits, and Docker behavior described for v1.1.11 below apply to the source build. Use **Option B** for those updates; `npx ...@latest` still runs 1.1.7.
+:::
+
## What is Local Private Deployment?
Local private deployment means running TRON MCP Server on your own machine, giving your AI assistant **full read and write access** to the TRON blockchain.
@@ -29,7 +33,7 @@ Of course, all read-only query capabilities are also fully retained.
| Requirement | Description |
| :--- | :--- |
-| **Node.js** | Recommended: 22.23.4+ (22.x) or 24.22.1+ (24.x), the October 2026 security releases ([download](https://nodejs.org/)). A source checkout of `main` (tag `v1.1.8`, Option B below) requires this range (its `package.json` still says `1.1.7`, so the server reports version `1.1.7`); the npm package `1.1.7` that `npx` runs (Option A) declares `>=20`. |
+| **Node.js** | Source v1.1.11 requires **22.23.4+ (22.x) or 24.22.1+ (24.x)** ([download](https://nodejs.org/)); 20.x, 23.x, 25.x, and 26.x are outside its declared range. npm 1.1.7 declares `>=20`, but use the supported 22.x/24.x security baseline for either route. |
| **TronGrid API Key** | Optional but recommended ([apply here](https://www.trongrid.io/)) |
Verify your Node.js version:
@@ -65,7 +69,7 @@ TRON MCP Server uses [Agent Wallet](../../../Agent-Wallet/Intro.md) for wallet m
| Runtime Wallet Switching | Yes |
| Recommended For | All use cases |
-> TRON MCP Server depends on Agent Wallet **2.x** (`@bankofai/agent-wallet ^2.3.0`). The [Agent-Wallet documentation](../../../Agent-Wallet/Intro.md) describes 3.x, which this server does not use yet — follow the 2.x commands on this page.
+> TRON MCP Server depends on Agent Wallet **2.x** (source v1.1.11: `@bankofai/agent-wallet ^2.4.0`, locked to 2.4.0; npm 1.1.7: `^2.3.0`). The [Agent-Wallet documentation](../../../Agent-Wallet/Intro.md) describes 3.x, which this server does not use yet — follow the 2.x commands on this page.
First, install the Agent Wallet 2.x CLI:
@@ -98,61 +102,70 @@ Without a saved or exported password, unlocking a `local_secure` wallet fails wh
If you already have a private key you want to use, set it via the `AGENT_WALLET_PRIVATE_KEY` environment variable (Agent Wallet also accepts the alias `TRON_PRIVATE_KEY`, and a mnemonic via `AGENT_WALLET_MNEMONIC` or `TRON_MNEMONIC`). Note the precedence: the env-var path is only reached when no password resolves (neither `runtime_secrets.json` nor `AGENT_WALLET_PASSWORD`) **and** the wallet directory holds no wallets. If you already ran Path 1, saved a runtime password, or ran the Openclaw installer, the keystore path wins and these variables are silently ignored.
-```bash
-export AGENT_WALLET_PRIVATE_KEY=your_private_key_here
-```
-
-:::tip
-To make this persist across terminal sessions, add it to your shell configuration file:
+Enter the key locally with hidden terminal input so its value is not written into shell history:
```bash
-echo 'export AGENT_WALLET_PRIVATE_KEY=your_private_key' >> ~/.zshrc # zsh (macOS default)
-echo 'export AGENT_WALLET_PRIVATE_KEY=your_private_key' >> ~/.bashrc # bash (Linux default)
-source ~/.zshrc # or source ~/.bashrc — takes effect immediately without restarting the terminal
+printf 'Private key (hidden input): '
+read -r -s AGENT_WALLET_PRIVATE_KEY
+printf '\n'
+export AGENT_WALLET_PRIVATE_KEY
```
-Verify the environment variable is set:
+:::tip
+Verify only whether the variable is present; never print its value. For persistent storage, use the encrypted Agent Wallet setup in Path 1 instead of writing private keys into shell startup files.
```bash
-echo $AGENT_WALLET_PRIVATE_KEY
+node -e 'console.log(Boolean(process.env.AGENT_WALLET_PRIVATE_KEY))'
```
:::
-
-
---
### Step 2: Configure Network (Optional)
#### TronGrid API Key
-On a source checkout from `v1.1.8`, the API Key also decides which Mainnet endpoint the server talks to. For frequent on-chain queries, it is recommended to configure a free TronGrid API Key:
+On source v1.1.11, the API Key decides the default Mainnet endpoint when `MCP_MAINNET_RPC_URL` is unset. For frequent on-chain queries, it is recommended to configure a free TronGrid API Key:
```bash
# Add to ~/.zshrc or ~/.bashrc
export TRONGRID_API_KEY=""
```
-Register for free at [trongrid.io](https://www.trongrid.io/). How the variable affects each network (the only difference between versions is Mainnet without a key):
+Register for free at [trongrid.io](https://www.trongrid.io/). Without a Mainnet RPC override, the defaults are:
| Network | `TRONGRID_API_KEY` set | `TRONGRID_API_KEY` not set |
| :--- | :--- | :--- |
-| **Mainnet** | `https://api.trongrid.io`, with your key sent as `TRON-PRO-API-KEY` (your own quota) | Source checkout from `v1.1.8`: falls back to the BANK OF AI endpoint `https://hptg.bankofai.io`. npm `1.1.7` (what `npx` runs): `https://api.trongrid.io` without a key |
+| **Mainnet** | `https://api.trongrid.io`, with your key sent as `TRON-PRO-API-KEY` (your own quota) | Source v1.1.11: falls back to `https://hptg.bankofai.io`. npm `1.1.7` (what `npx` runs): `https://api.trongrid.io` without a key |
| **Nile** | `https://nile.trongrid.io` (key header also sent) | `https://nile.trongrid.io` |
| **Shasta** | `https://api.shasta.trongrid.io` (key header also sent) | `https://api.shasta.trongrid.io` |
The server works without a key, but keyless requests to TronGrid (Mainnet on npm `1.1.7`, and Nile / Shasta) share TronGrid's public rate limits, so high-frequency use can hit rate-limit errors. Set one if you want Mainnet traffic to go to TronGrid under your own quota.
+#### Mainnet RPC Override (Source v1.1.11)
+
+Set `MCP_MAINNET_RPC_URL` in the server's deployment environment to override all three Mainnet RPC hosts: full node, solidity node, and event server. It takes precedence over `TRONGRID_API_KEY`, applies to `mainnet`, `tron`, and `trx`, and leaves Nile and Shasta unchanged. It cannot be set through MCP tool arguments.
+
+For example, a test deployment can explicitly use this Mainnet RPC:
+
+```bash
+export MCP_MAINNET_RPC_URL="https://tg.ops.sunpump.xyz"
+```
+
+This still connects to Mainnet. Leave the variable unset in production to retain the default selection above. Only absolute HTTP/HTTPS URLs without credentials, query strings, or fragments are accepted; a base path is allowed. Restart the server after changing the setting because RPC clients are cached. For Docker, set it in `.env.docker` or pass `-e MCP_MAINNET_RPC_URL=https://tg.ops.sunpump.xyz` to `docker run`.
+
+Source v1.1.11 attaches `TRON-PRO-API-KEY` only when the configured RPC URL has an official HTTPS TronGrid origin (`https://api.trongrid.io`, `https://nile.trongrid.io`, or `https://api.shasta.trongrid.io`). Other RPC origins receive no TronGrid key, even if `TRONGRID_API_KEY` is set.
+
---
### Step 3: Local Private Deployment
-Multiple deployment options are available. For most users, Option A is sufficient.
+Use Option B for the reviewed v1.1.11 source and its security updates. Option A runs the older published npm package.
-#### Option A: Run directly with npx (Recommended)
+#### Option A: Run the published package with npx
-No need to clone the repository — run the latest version directly via `npx`. This is also the command used in the [Configuration Notes](#configuration-notes) below.
+No clone is needed. This runs the published npm package (currently 1.1.7), rather than source v1.1.11. This is also the command used in the [Configuration Notes](#configuration-notes) below.
```bash
npx -y @bankofai/mcp-server-tron
@@ -160,15 +173,17 @@ npx -y @bankofai/mcp-server-tron
#### Option B: Clone from Source
-For developers who need to modify the source code or contribute:
+Build the reviewed source tag with its lockfile and security overrides:
```bash
-git clone https://github.com/BofAI/mcp-server-tron.git
+git clone --branch v1.1.11 --depth 1 https://github.com/BofAI/mcp-server-tron.git
cd mcp-server-tron
-npm install
+npm ci
npm run build
```
+Source v1.1.11 pins **TronWeb 6.5.2**, uses MCP SDK **^1.32.2** and Zod **^4.6.7**, and keeps Agent Wallet on **2.x**. Its root overrides patch TronWeb's Axios and force Agent Wallet's parser onto the server's Zod 4; preserve `package-lock.json` and the overrides. The npm 1.1.7 package does not include these source-project overrides.
+
#### Option C: Run in HTTP Mode
Start the server in HTTP mode, then connect your MCP client via the HTTP endpoint. From the published package, pass the `--http` flag — no clone needed:
@@ -189,6 +204,8 @@ npm run start:http
This will start a local stateless Streamable HTTP server (default: `http://localhost:3001/mcp`) that your MCP client can connect to. `GET` and `DELETE` on `/mcp` return `405` (SSE is not supported), and `GET /` returns server information. Each request is handled independently — no session state is maintained between requests.
+In source v1.1.11, HTTP accepts **uncompressed JSON up to 1 MiB**. Compressed request bodies return **415**; oversized bodies return **413**. In both stdio and HTTP modes, tool arguments have a combined limit of **10,000 array elements and object keys**, checked before schema validation. These are source v1.1.11 limits, not guarantees for npm 1.1.7 or an unverified hosted deployment.
+
You can customize the port and host via environment variables:
```bash
@@ -212,18 +229,23 @@ EOF
# the Dockerfile is not part of the published npm package)
docker build -t mcp-server-tron .
+mkdir -p logs
+# Ensure the host logs directory is writable by UID/GID 1000:1000.
+
# 3. Run the container with --env-file
docker run -d \
-p 3001:3001 \
- -v $(pwd)/logs:/app/logs \
+ -v "$(pwd)/logs:/app/logs" \
--env-file .env.docker \
mcp-server-tron
```
:::warning
-Never pass API keys with `-e KEY=value` on the command line — the value will appear in shell history and `docker inspect` output. Always use `--env-file` with a file excluded from version control (add `.env.docker` to your `.gitignore`).
+Use `--env-file` with a file excluded from version control (add `.env.docker` to `.gitignore`) to keep literal keys out of shell commands. Docker administrators can still inspect container environment variables; an env file does not hide them from `docker inspect`.
:::
+The v1.1.11 image runs as **`node` (UID/GID 1000:1000)**. Application files are root-owned; within `/app`, only `/app/logs` is writable by the service. A bind mount replaces the image directory permissions, so prepare host log-directory ownership before starting. Do not mount host credential directories or the Docker socket; host log collectors must avoid following links into credential files.
+
The container exposes port 3001 and writes date-stamped logs to the mounted `logs/` directory. A health check endpoint is available at `http://localhost:3001/health`.
:::tip
@@ -234,7 +256,8 @@ The Docker image is designed for read-only cloud deployments. For local write op
If you're configuring an MCP client to point to your local server:
-- **If running via npx or source**: Use the appropriate command in your MCP client's configuration (e.g., `command: npx` with `args: ["-y", "@bankofai/mcp-server-tron"]`)
+- **Published npm package (Option A)**: Use `command: "npx"` with `args: ["-y", "@bankofai/mcp-server-tron@latest"]` (currently 1.1.7).
+- **Source stdio build (Option B)**: Use `command: "node"` with `args: ["/absolute/path/to/mcp-server-tron/build/index.js"]`; replace the path with your checkout's absolute path after building. This runs the source build directly.
- **If running in HTTP mode or Docker**: Point your client to `http://localhost:3001/mcp` via the HTTP URL configuration option
If your MCP client does not inherit system environment variables, you'll need to configure them explicitly in the client settings. **Make sure any configuration file storing credentials is never shared or committed to version control**.
diff --git a/docs/McpServer-Skills/MCP/TRONMCPServer/OfficialServerAccess.md b/docs/McpServer-Skills/MCP/TRONMCPServer/OfficialServerAccess.md
index a02a3a88..23417798 100644
--- a/docs/McpServer-Skills/MCP/TRONMCPServer/OfficialServerAccess.md
+++ b/docs/McpServer-Skills/MCP/TRONMCPServer/OfficialServerAccess.md
@@ -23,7 +23,7 @@ Since the cloud service is read-only, you never need to provide a wallet private
**2. Official maintenance and continuous updates**
-The cloud service is maintained by the official team and always runs the latest stable version of TRON MCP Server. This includes:
+The cloud service is maintained by the official team. Its deployed version is separate from both the source tag and npm `latest`; check the server information at `https://tron-mcp-server.bankofai.io/` for the advertised version. Maintenance includes:
- Updates with new tools and features
- Adaptations for underlying TRON network upgrades
diff --git a/docs/McpServer-Skills/MCP/TRONMCPServer/ToolList.md b/docs/McpServer-Skills/MCP/TRONMCPServer/ToolList.md
index aa36dc39..c6c217d2 100644
--- a/docs/McpServer-Skills/MCP/TRONMCPServer/ToolList.md
+++ b/docs/McpServer-Skills/MCP/TRONMCPServer/ToolList.md
@@ -15,6 +15,10 @@ Each tool is labeled with a **mode** — "read" or "write":
Write tools are always visible in the AI’s tool list, but wallet availability is checked at execution time. If no wallet is configured, calling a write tool returns a wallet error (see [FAQ](./FAQ.md#wallet-error-messages)). In **read-only mode** (cloud service or `--readonly` flag), the 29 write tools and the 2 write prompts (`prepare_transfer`, `interact_with_contract`) are not registered, leaving 68 read tools and 4 prompts.
:::
+:::info Source v1.1.11 input limits
+Across all tool arguments, array elements and object keys have a combined limit of **10,000**, checked before schema validation. Large ABI and multicall inputs count toward this limit. The HTTP transport also accepts only uncompressed JSON bodies up to **1 MiB**. These limits describe source v1.1.11; npm `latest` is still 1.1.7 as of 2026-11-12.
+:::
+
:::tip `network` parameter
Most tools include an optional `network` parameter used to specify the target network (`mainnet`, `nile`, or `shasta`; `tron` / `trx` are aliases for `mainnet` and `testnet` for `nile`). If not specified, the default is `mainnet`.
diff --git a/docs/wallet-cli/command-reference.md b/docs/wallet-cli/command-reference.md
index 7f705e87..fe3c98c1 100644
--- a/docs/wallet-cli/command-reference.md
+++ b/docs/wallet-cli/command-reference.md
@@ -6,7 +6,7 @@ description: "Commands and payment options for wallet-cli."
# Wallet CLI Command Reference
-This reference targets the published **4.15.1** package. Use schema discovery to inspect command parameters.
+This reference targets the published **4.16.0** package. Use schema discovery to inspect command parameters.
```bash
wallet-cli --json-schema -o json
@@ -19,9 +19,9 @@ wallet-cli bai recharge --json-schema -o json
- `--network`: explicit payment network; use `tron:728126428` for TRON mainnet.
- `--account`: wallet-cli account selection.
- `--token` or `--asset` and `--decimals`: select an asset according to the schema.
-- `--max-amount` / `--max-raw-amount`: mutually exclusive payment caps. `--max-raw-amount` is in smallest units and requires `--token` or `--asset`, because a raw amount has no unit. Without `--max-amount` or `--max-raw-amount`, a built-in ceiling of $1 per payment applies to known stablecoins; routes priced above it are dropped before signing, and the command fails with `amount_exceeds_limit` when every offered route is above it. A `--dry-run` preview does not apply this built-in cap, so a preview can pass while the real payment still fails with `amount_exceeds_limit`.
+- `--max-amount` / `--max-raw-amount`: mutually exclusive payment caps. `--max-raw-amount` is in smallest units and requires `--token` or `--asset`, because a raw amount has no unit. The first route matching the network and asset/scheme filters is checked against your explicit cap; if it exceeds that cap, the command fails with `amount_exceeds_limit` before signing, including under `--dry-run`. It does not search later offers for a cheaper route. Without either explicit cap, actual payments use the SDK's known-stablecoin allowlist and $1 per-payment ceiling. A preview does not apply that built-in ceiling, so it can pass while the real payment still fails with `amount_exceeds_limit`.
- `--dry-run`: read payment requirements without signing.
-- `--method`, `--header`, `--body` / `--body-file`: HTTP request options.
+- `--method`, `--header`, `--body` / `--body-file`: HTTP request options. The default method is `GET`, which rejects both body options with `invalid_option` before any request. For a body, explicitly select a method such as `POST`; `--body-file -` reads stdin and cannot share stdin with `--password-stdin` or another stdin-consuming flag.
- `--out `: write the response body byte-for-byte to a new file instead of `data.response`; an existing file is refused before any request is sent. Binary media types (such as `application/octet-stream`, images, audio, video, PDF, and archives) require `--out`.
- `--password-stdin`: secure master-password input for signing.
- `-o json`: machine output.
@@ -42,7 +42,7 @@ The paid response is in `data.response`. On failure inspect `error.details.payme
| --- | --- | --- |
| `missing_wallet_address` | 1 | No wallet-cli account is configured (also for `--dry-run`) |
| `auth_required` | 1 | A real payment was attempted without `--password-stdin` |
-| `invalid_option` | 2 | `--max-raw-amount` without `--token` / `--asset`, a binary response without `--out`, or mutually exclusive flags |
+| `invalid_option` | 2 | `--max-raw-amount` without `--token` / `--asset`, a body with `GET`, a binary response without `--out`, or mutually exclusive flags |
| `output_exists` | 2 | The `--out` file already exists; nothing was sent |
| `no_matching_requirement` | 1 | No route matched `--network` / `--token` / `--asset` / `--scheme`, or, without `--max-amount` / `--max-raw-amount`, no route uses an asset the built-in spend control allows; `paymentStatus: "not_sent"` |
| `amount_exceeds_limit` | 1 | The route's price is above `--max-amount`, `--max-raw-amount` or the built-in $1 cap; `not_sent` |
@@ -51,7 +51,7 @@ The paid response is in `data.response`. On failure inspect `error.details.payme
| `provider_error` / `provider_rate_limited` | 1 | The endpoint or facilitator failed or returned 429 (`error.details.retryAfterSeconds` when sent) |
| `invalid_x402_response` | 1 | The paid response could not be decoded; may carry `paymentStatus: "settled"` |
-`paymentStatus` appears in `error.details` only for real payments; a `--dry-run` failure carries no `error.details`.
+Failures may include `paymentStatus` in `error.details`, including `not_sent` when an explicit amount limit rejects a `--dry-run` preview. Some earlier validation or request failures omit these details. A preview never signs or pays; the presence of payment-status details does not mean a payment was sent.
## B.AI recharge
diff --git a/docs/wallet-cli/faq.md b/docs/wallet-cli/faq.md
index 0e6561e2..e0446033 100644
--- a/docs/wallet-cli/faq.md
+++ b/docs/wallet-cli/faq.md
@@ -8,7 +8,7 @@ description: "Installation, wallet, and payment questions for wallet-cli."
## Does a preview need a wallet?
-`x402 pay --dry-run` requires a configured account but does not sign. Catalog queries need neither a wallet nor a password. Actual payments need the master password through a secure input source.
+`x402 pay --dry-run` requires a configured account but does not sign. Actual payments need the master password through a secure input source.
## Should I retry a failed payment?
diff --git a/docs/wallet-cli/index.md b/docs/wallet-cli/index.md
index 553dae80..0845c664 100644
--- a/docs/wallet-cli/index.md
+++ b/docs/wallet-cli/index.md
@@ -1,20 +1,19 @@
---
title: "Wallet CLI and x402"
-description: "Use wallet-cli for payments and service discovery."
+description: "Use wallet-cli for x402 payments."
---
# Wallet CLI and x402
-Use **`@tron-walletcli/wallet-cli@4.15.1`** for new command-line integrations.
+Use **`@tron-walletcli/wallet-cli@4.16.0`** for new command-line integrations.
+
+As of 2026-11-12, this is the npm `latest` release and declares **TronWeb 6.5.1** as an exact dependency. It does not automatically install TronWeb 6.5.2. The wallet-cli Skill has its own CLI version pin; follow the [Skills quick start](/McpServer-Skills/SKILLS/QuickStart/) when using that Skill.
| Task | Entry point |
| --- | --- |
| Pay a protected HTTP API | `wallet-cli x402 pay` |
| Test a local paywall | `wallet-cli x402 serve`, `wallet-cli x402 roundtrip` |
-| Browse providers and endpoints | `wallet-cli x402 provider-list`, `provider-show`, `endpoint-list` |
-| Refresh the catalog cache | `wallet-cli x402 update-catalog` |
| B.AI recharge and records | `wallet-cli bai recharge`, `recharge-orders` |
-| Gateway deployment, configuration and catalog builds | [Gateway deployment guide](/x402/core-concepts/gateway/#run-your-own-gateway) and [Catalog guide](/x402/api-catalog/) |
Configure and select accounts through wallet-cli. An agent-wallet configuration does not automatically become a wallet-cli account. Use decimal CAIP-2 network IDs for the CLI: Nile `tron:3448148188`, TRON mainnet `tron:728126428`, BSC `eip155:56`, and Base `eip155:8453`. Protocol documentation can use hexadecimal TRON IDs; do not substitute those into CLI examples.
diff --git a/docs/wallet-cli/quickstart.md b/docs/wallet-cli/quickstart.md
index 98be7010..c29e92dc 100644
--- a/docs/wallet-cli/quickstart.md
+++ b/docs/wallet-cli/quickstart.md
@@ -11,7 +11,7 @@ Requires Node.js 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+.
## Install and inspect
```bash
-npm install -g @tron-walletcli/wallet-cli@4.15.1
+npm install -g @tron-walletcli/wallet-cli@4.16.0
wallet-cli --version
wallet-cli x402 pay --json-schema -o json
```
@@ -33,27 +33,17 @@ wallet-cli list -o json
wallet-cli current -o json
```
-## Browse the catalog
-
-```bash
-wallet-cli x402 provider-list -o json
-wallet-cli x402 provider-show dia -o json
-wallet-cli x402 endpoint-list dia -o json
-```
-
-Choose the network-specific `x402Routes[].url` and fill in its path placeholders. Do not construct a Gateway URL from the catalog FQN.
-
## Preview a payment
-This reads DIA's payment requirements **without signing or paying**. A configured account is still required for payment previews.
+Start the TRON resource server from the [seller quickstart](/x402/getting-started/quickstart-for-sellers/) on port 4021, configured for Nile, or use a test endpoint you control. This reads its payment requirements **without signing or paying**. A configured account is still required for payment previews.
```bash
-wallet-cli x402 pay https://x402-gateway.bankofai.io/providers/dia-price-tron/v1/quotation/BTC \
+wallet-cli x402 pay http://localhost:4021/credit \
--method GET \
- --network tron:728126428 \
+ --network tron:3448148188 \
--token USDT \
--scheme exact \
- --max-amount 0.01 \
+ --max-amount 1 \
--dry-run -o json
```
diff --git a/docs/x402/AGENTS.md b/docs/x402/AGENTS.md
index afacdca3..30f61b4a 100644
--- a/docs/x402/AGENTS.md
+++ b/docs/x402/AGENTS.md
@@ -88,7 +88,7 @@ Documentation must reflect code changes immediately. Follow these dependency map
- **Settlement Asset**: Use official Base USDC at `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`.
- **Payment Scheme**: Use `exact` with EIP-3009 authorization; do not describe Base USDC as Permit2.
- **Address Format**: Payout and token addresses use EVM hexadecimal (`0x`) format.
-- **Catalog Scope**: Public catalog examples use Base Mainnet only. Base Sepolia (`eip155:84532`) may appear only in explicit CLI/SDK testing documentation.
+- **Network Scope**: Production examples use Base Mainnet. Base Sepolia (`eip155:84532`) may appear only in explicit CLI/SDK testing documentation.
diff --git a/docs/x402/api-catalog/get-started.md b/docs/x402/api-catalog/get-started.md
deleted file mode 100644
index f5796d7b..00000000
--- a/docs/x402/api-catalog/get-started.md
+++ /dev/null
@@ -1,41 +0,0 @@
----
-title: "Catalog Quick Start"
-description: "Discover catalog services and preview payments with wallet-cli."
----
-
-# Catalog Quick Start
-
-Install Wallet CLI using the [Wallet CLI quick start](/wallet-cli/quickstart/). Catalog reads need no wallet or password; payment previews and payments require a configured account.
-
-## Browse providers
-
-```bash
-wallet-cli x402 update-catalog -o json
-wallet-cli x402 provider-list -o json
-wallet-cli x402 provider-show dia -o json
-wallet-cli x402 endpoint-list dia -o json
-```
-
-`update-catalog` downloads the catalog to the local cache. `provider-list`, `provider-show`, and `endpoint-list` read that cache and download from the catalog only when the cache is missing or lacks what was asked for; they never refresh it, so run `update-catalog` again when you want the latest providers and prices. `provider-list` supports `--network`, `--category`, and `--capability` filters.
-
-## Choose an endpoint and network
-
-Read the network-specific URL from the CLI JSON's `x402Routes[].url` and fill in path placeholders. Gateway provider IDs differ from catalog FQNs, so do not construct URLs yourself. For example, preview DIA's TRON BTC quotation endpoint:
-
-```bash
-wallet-cli x402 pay https://x402-gateway.bankofai.io/providers/dia-price-tron/v1/quotation/BTC \
- --method GET \
- --network tron:728126428 \
- --token USDT \
- --scheme exact \
- --max-amount 0.01 \
- --dry-run -o json
-```
-
-This only previews the payment. For an actual payment, review the network and amount, obtain authorization, and use `--password-stdin` from a secure source. Cap GasFree fees separately; reconcile uncertain transactions before considering another payment.
-
-For direct API access, read the [Catalog JSON](https://x402-catalog.bankofai.io/api/catalog.json) for the service list, and `/api/providers/.json` for endpoints and their `x402_routes`. The static API uses snake_case field names, except inside `i18n` and route objects (for example `assetTransferMethod`); use the CLI's schema and documentation for its output shape rather than mixing the two.
-
-- [Catalog data and API reference](/x402/api-catalog/reference/)
-- [List your service](/x402/api-catalog/list-your-service/)
-- [Payment command reference](/wallet-cli/command-reference/)
diff --git a/docs/x402/api-catalog/index.md b/docs/x402/api-catalog/index.md
deleted file mode 100644
index 9cf05710..00000000
--- a/docs/x402/api-catalog/index.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-title: API Catalog Introduction
-sidebar_label: Introduction
-description: BANK OF AI's wallet-native service catalog — where AI Agents discover, call, and pay for any API, settled on-chain via x402.
----
-
-import ThemedImage from '@theme/ThemedImage';
-
-# API Catalog
-
-Traditional API onboarding is designed for humans: create an account, request an API key, link a credit card, subscribe monthly. When an AI Agent wants to call an API on its own, it fails at the very first step — it has no email, no credit card, and it shouldn't be holding a pile of secret keys for you anyway.
-
-The **API Catalog** is BANK OF AI's wallet-native service catalog. AI Agents discover services here, call them by name, and pay per call — every call settles on-chain via x402. No accounts, no API keys: **your wallet is your identity**. The catalog covers TRON, BNB Chain, and Base Mainnet.
-
-## What it solves
-
-- **For Agents / developers**: discover every callable service in one catalog and pay per call — no separate sign-ups or key management for each service.
-- **For service providers**: list your existing API so Agents can discover, call, and pay for it directly, with payments settled straight to your own wallet — without changing a single line of code.
-
-## How it works
-
-The catalog itself is just a public list of services: it keeps no database and accepts no upstream secrets — it makes services discoverable, and never touches calls or funds.
-
-To get listed, a provider submits two **public** files to the catalog repository (you can start with the application form and we'll help you through); the call addresses inside the files point to the gateway of your choice — BANK OF AI hosted or self-hosted. The platform validates, scans for sensitive data, then publishes:
-
-
-
-Three consumers share the same data:
-
-- **[Catalog website](https://bankofai.io/catalog)**: for humans to browse and compare services.
-- **wallet-cli**: search, inspect, and make paid calls from the command line.
-- **MCP**: `@x402/mcp` (the official MCP integration used since SDK 2.1.0) lets an Agent pay for an x402 endpoint over MCP. Catalog-aware MCP discovery — browsing the catalog by name from inside an MCP client — is not shipped yet; use `wallet-cli x402 provider-list` for discovery today.
-
-## What's in the catalog
-
-The first live services cover token creation plus DeFi market data and on-chain security, with routes settling across TRON, BNB Chain, and Base Mainnet as published by each provider:
-
-| Service | What it does | Billing |
-|---|---|---|
-| SunPump | One-call agent/meme token launch, paid via x402 — submit token metadata (name, symbol, description, image) and the gateway forwards your request after settlement | $0.000001 / call |
-| DefiLlama | Aggregated DeFi data — protocol TVL, token prices (current & historical), and pool yields/APY | $0.000001 / call |
-| DexScreener | Real-time DEX pairs, prices and liquidity, token search, and the latest new-listing profiles | $0.000001 / call |
-| DIA | Decentralized, multi-source oracle prices by symbol or by chain + contract address | $0.000001 / call |
-| GoPlus | Token and address security checks — honeypot/scam screening, malicious-address and risky-approval detection | $0.000001 / call |
-
-All of the above are in the **Finance** category. Check each endpoint's `x402_routes` for its currently published TRON, BNB Chain, and Base Mainnet routes — they appear in `/api/providers/.json`, `/api/pay/.json` and `/api/search-index.json`, not in the summary-only `/api/catalog.json`.
-
-:::note
-The live service list and statistics (service count, chain count, etc.) are **generated dynamically** from catalog data — treat `/api/catalog.json` as the source of truth for the service list and counts (it carries provider summaries only — per-endpoint routes live in the per-provider files above); this page hard-codes no numbers, and the catalog grows as new services are listed.
-:::
-
-## Next steps
-
-- Want your Agent to use these services → [Catalog Quick Start](./get-started.md)
-- Want to list and monetize your own API → [List Your Service](./list-your-service.md)
-- Want the data structures and API details → [Data Format & API Reference](./reference.md)
diff --git a/docs/x402/api-catalog/list-your-service.md b/docs/x402/api-catalog/list-your-service.md
deleted file mode 100644
index 4b31c8ff..00000000
--- a/docs/x402/api-catalog/list-your-service.md
+++ /dev/null
@@ -1,339 +0,0 @@
----
-title: List Your Service
-sidebar_label: List Your Service
-description: List your API in the API Catalog — apply via the form or open a PR directly; two public files; official or self-hosted gateway both work. Once live, every AI Agent can discover it and pay per call.
----
-
-# List Your Service
-
-List once — every AI Agent call after that is revenue in.
-
-Put your API behind the Gateway and it appears in the catalog: any Agent can discover it, call it, and pay for it. Payments settle to the wallet you specify in real time — **no platform escrow, no payout cycle**; settle on TRON, BNB Chain, or Base Mainnet; your existing API stays exactly as it is, **not one line of code changes**, and you set the prices.
-
-## The big picture: what listing actually means
-
-Listing comes down to one action: opening a PR against the [catalog repository](https://github.com/BofAI/x402-catalog) with just two **public** files:
-
-| File | Purpose |
-|---|---|
-| `providers//catalog.json` | Public service info used by the frontend, CLI, and Agents |
-| `providers//pay.md` | Human- and Agent-readable call & payment instructions |
-
-`` is your service's globally unique identifier (lowercase letters, digits, hyphens) and must match the directory name.
-
-The catalog repository **stores public discovery data only**: it keeps no database and never accepts upstream API keys, tokens, passwords, `provider.yml`, or `.env`. With a self-hosted gateway your secrets stay on your machine; with the official gateway your credentials are held on the gateway side — either way, secrets **never enter the catalog repository**.
-
-Before you start, make two decisions.
-
-## Decision 1: whose gateway?
-
-This determines the call addresses in your two files — each endpoint's `url` and its `x402Routes[].url`. (`serviceUrl` is your service's public website, not a gateway address.)
-
-| | Official gateway (hosted) | Self-hosted gateway |
-|---|---|---|
-| Call address in your files | Official domain (`x402-gateway.bankofai.io/...`) | Your own gateway domain |
-| Who runs the gateway | BANK OF AI | You |
-| Funds & traffic | Proxied through the official gateway, settled to your wallet | Straight to your gateway and wallet, never passing through BANK OF AI |
-| Where upstream credentials live | Held by the official gateway | Your machine only |
-| Best for | Fastest launch, nothing to deploy | Full control over credentials and infrastructure |
-
-Either way, the catalog handles **discovery** only: what Agents actually call is always the gateway address registered in your files.
-
-## Decision 2: pick a submission route
-
-Two routes, one destination — that PR.
-
-**Route 1: apply first, we'll contact you** (recommended for first-time providers)
-
-1. **Submit the application form** — via the **Apply to list your service** entry at the bottom of the [catalog page](https://bankofai.io/catalog): service name, short description, API URL, preferred settlement network(s), and contact info. If you've registered an ERC-8004 identity address, include it — verified applicants are **prioritized**.
-2. **We get in touch** — within **1–2 business days** by email or Telegram, to confirm endpoints, pricing, payout wallet, and whether you'll use the official or a self-hosted gateway.
-3. **Open the PR** — once everything is confirmed, follow the steps below; your service goes live when it merges.
-
-**Route 2: open a PR directly** (for providers familiar with the flow)
-
-Skip the form and follow the steps below to prepare the files and open the PR.
-
-## Step 1: Prepare the two public files
-
-**Self-hosted gateway**: prepare `catalog.json` and `pay.md` using the formats below. Include public endpoints, prices, and payment details only. Before you do, [run and validate your Gateway](/x402/core-concepts/gateway/#run-your-own-gateway).
-
-**Official gateway**: once onboarding is confirmed, fill in the two files using the official addresses assigned to you, following the examples below. The gateway uses one provider ID per payment chain, which differs from your catalog `fqn` — for example `https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron`, `…-bsc`, and `…-base`.
-
-### What catalog.json looks like
-
-The real **SunPump** file, `providers/sunpump-token-launch/catalog.json`:
-
-```json
-{
- "version": 1,
- "fqn": "sunpump-token-launch",
- "title": "SunPump",
- "mainTitle": "One-call agent token launch, paid via x402",
- "subtitle": "Create a meme or agent token from structured metadata.",
- "description": "## What it does\n\nSunPump Agent Token Launch API lets agents, scripts, and applications pay with x402 and submit token launch metadata to SunPump. The gateway forwards the caller's JSON payload to the SunPump launch endpoint after payment settlement.\n\n## Best for\n\n- Agent workflows that need to create a meme or agent token from structured metadata.\n- Operator tools that want one paid API call for token creation.\n- Mainnet payment flows across TRON Mainnet, BNB Smart Chain and Base Mainnet while using the same SunPump launch request shape.\n\n## Request shape\n\nPOST a JSON body with `name`, `symbol`, `description`, `imageBase64`, `twitterUrl`, `telegramUrl`, `websiteUrl`, and `tweetUsername`. Keep `name` within 1-20 characters and use a unique symbol. `imageBase64` may include a base64-encoded token image; if it is empty or omitted, SunPump generates an image automatically.\n\n## Code usage\n\nTRON Mainnet defaults to `exact` + `permit2` and also supports `exact_gasfree`. First inspect the payment requirements:\n\n```bash\ncurl -sS -X POST 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch' \\\n -H 'Content-Type: application/json' \\\n --data '{\"name\":\"X402MainA\",\"symbol\":\"X4M17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}'\n```\n\nThen pay and submit the launch request with Wallet CLI:\n\n```bash\nwallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch' \\\n --password-stdin \\\n --method POST \\\n --header 'Content-Type: application/json' \\\n --body '{\"name\":\"X402MainA\",\"symbol\":\"X4M17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}' \\\n --network tron:728126428 \\\n --token USDT \\\n --scheme exact \\\n --max-amount 0.000001\n```\n\nBNB Smart Chain Mainnet supports `exact` + `permit2`:\n\n```bash\ncurl -sS -X POST 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch' \\\n -H 'Content-Type: application/json' \\\n --data '{\"name\":\"X402BscA\",\"symbol\":\"X4B17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}'\n```\n\n```bash\nwallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch' \\\n --password-stdin \\\n --method POST \\\n --header 'Content-Type: application/json' \\\n --body '{\"name\":\"X402BscA\",\"symbol\":\"X4B17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}' \\\n --network eip155:56 \\\n --token USDT \\\n --scheme exact \\\n --max-amount 0.000001\n```\n\n## Base Mainnet payment\n\nBase Mainnet uses official USDC on `eip155:8453` with x402 `exact` and EIP-3009. A successful call still launches the token on TRON Mainnet.",
- "useCase": "Use this provider when an app, agent, or CLI workflow needs to launch a SunPump token after a successful x402 payment. Choose a TRON Mainnet, BNB Smart Chain, or Base Mainnet payment route; every successful launch creates the token on TRON Mainnet.",
- "i18n": {
- "zh-CN": {
- "title": "SunPump",
- "subtitle": "用结构化元数据一次付费发币。",
- "description": "## 能做什么\n\nSunPump Agent 发币 API 允许 Agent、脚本和应用先完成 x402 支付,再把发币元数据提交给 SunPump。Gateway 在支付结算后把调用方的 JSON 请求体转发到 SunPump 发币接口。\n\n## 适合场景\n\n- 需要基于结构化元数据创建 meme token 或 agent token 的 Agent 工作流。\n- 希望用一次付费 API 调用完成发币的运营工具。\n- 在 TRON 主网、BNB Smart Chain 主网和 Base 主网使用同一套 SunPump 发币请求格式。\n\n## 请求格式\n\nPOST JSON 请求体包含 `name`、`symbol`、`description`、`imageBase64`、`twitterUrl`、`telegramUrl`、`websiteUrl` 和 `tweetUsername`。`name` 需要保持在 1-20 个字符内,并使用唯一 symbol。`imageBase64` 可以传入 base64 编码的 token 图片;如果为空或不传,SunPump 会自动生成图片。\n\n## 代码用法\n\nTRON 主网默认使用 `exact` + `permit2`,同时支持 `exact_gasfree`。先查看支付要求:\n\n```bash\ncurl -sS -X POST 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch' \\\n -H 'Content-Type: application/json' \\\n --data '{\"name\":\"X402MainA\",\"symbol\":\"X4M17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}'\n```\n\n然后使用 Wallet CLI 支付并提交发币请求:\n\n```bash\nwallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch' \\\n --password-stdin \\\n --method POST \\\n --header 'Content-Type: application/json' \\\n --body '{\"name\":\"X402MainA\",\"symbol\":\"X4M17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}' \\\n --network tron:728126428 \\\n --token USDT \\\n --scheme exact \\\n --max-amount 0.000001\n```\n\nBNB Smart Chain 主网支持 `exact` + `permit2`:\n\n```bash\ncurl -sS -X POST 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch' \\\n -H 'Content-Type: application/json' \\\n --data '{\"name\":\"X402BscA\",\"symbol\":\"X4B17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}'\n```\n\n```bash\nwallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch' \\\n --password-stdin \\\n --method POST \\\n --header 'Content-Type: application/json' \\\n --body '{\"name\":\"X402BscA\",\"symbol\":\"X4B17\",\"description\":\"x402 launch\",\"imageBase64\":\"\",\"twitterUrl\":\"\",\"telegramUrl\":\"\",\"websiteUrl\":\"\",\"tweetUsername\":\"\"}' \\\n --network eip155:56 \\\n --token USDT \\\n --scheme exact \\\n --max-amount 0.000001\n```\n\n## Base 主网支付\n\nBase 主网路由使用 `eip155:8453` 官方 USDC,通过 x402 `exact` + EIP-3009 支付;成功调用仍会在 TRON 主网创建 Token。",
- "useCase": "适合应用、Agent 或 CLI 流程在 x402 支付成功后调用 SunPump 发币接口。可选择 TRON 主网、BNB Smart Chain 或 Base 主网支付路由;成功后均在 TRON 主网创建 Token。",
- "mainTitle": "一次付费完成 Agent 代币发行"
- }
- },
- "logo": "https://sunpump.meme/favicon.ico",
- "category": "finance",
- "chains": [
- "tron:0x2b6653dc",
- "eip155:56",
- "eip155:8453"
- ],
- "isFirstParty": true,
- "isFeatured": true,
- "featuredTags": [
- "sunpump",
- "token-launch",
- "agent-token",
- "tron",
- "bsc",
- "base"
- ],
- "serviceUrl": "https://sunpump.meme",
- "endpoints": [
- {
- "method": "POST",
- "path": "/pump-api/ai/agentTokenLaunch",
- "url": "https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch",
- "x402Routes": [
- {
- "network": "tron:0x2b6653dc",
- "provider": "sunpump-token-launch-tron",
- "scheme": "exact",
- "assetTransferMethod": "permit2",
- "url": "https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch"
- },
- {
- "network": "tron:0x2b6653dc",
- "provider": "sunpump-token-launch-tron",
- "scheme": "exact_gasfree",
- "url": "https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch"
- },
- {
- "network": "eip155:56",
- "provider": "sunpump-token-launch-bsc",
- "scheme": "exact",
- "assetTransferMethod": "permit2",
- "url": "https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch"
- },
- {
- "provider": "sunpump-token-launch-base",
- "network": "eip155:8453",
- "scheme": "exact",
- "assetTransferMethod": "eip3009",
- "url": "https://x402-gateway.bankofai.io/providers/sunpump-token-launch-base/pump-api/ai/agentTokenLaunch"
- }
- ],
- "title": "Launch Agent Token",
- "subtitle": "Create a SunPump token from metadata",
- "description": "Submit token metadata to SunPump after x402 payment settlement. `imageBase64` can carry a base64-encoded token image; when it is empty or omitted, SunPump generates an image automatically. The response includes SunPump status and token data such as token id, owner address, contract address, logo URL, create transaction hash, reserves, and market data when available.",
- "useCase": "Use this endpoint when an agent or backend has already validated launch metadata and is ready to create the token.",
- "i18n": {
- "zh-CN": {
- "title": "Agent 发币",
- "subtitle": "根据元数据创建 SunPump token",
- "description": "在 x402 支付结算后向 SunPump 提交发币元数据。`imageBase64` 可以携带 base64 编码的 token 图片;为空或不传时,SunPump 会自动生成图片。响应包含 SunPump 状态和 token 数据,例如 token id、owner address、contract address、logo URL、create transaction hash、储备和市场数据等。",
- "useCase": "适合 Agent 或后端已经校验好发币元数据,准备正式创建 token 的场景。"
- }
- },
- "metered": true,
- "minPriceUsd": 0.000001,
- "maxPriceUsd": 0.000001
- }
- ],
- "status": {
- "catalog": "listed",
- "gateway": "configured",
- "payment": "mainnet",
- "upstream": "public"
- }
-}
-```
-
-Full field definitions: [Data Format & API Reference](./reference.md).
-
-### How to write pay.md
-
-`pay.md` is read by humans and Agents alike. Three parts are recommended: basic service info, endpoint addresses and prices, and copy-paste call examples. The catalog's CI tests require every `pay.md` to contain a `wallet-cli x402 pay` example with `--network tron:728126428` and `--scheme exact`, to mention `exact_gasfree`, and to cover Base Mainnet: the text must contain `Base Mainnet`, `eip155:8453`, a `-base` gateway provider, `USDC`, and `EIP-3009`, and must not mention `Sepolia` or `eip155:84532`. The real SunPump file, `providers/sunpump-token-launch/pay.md`:
-
-````markdown
-# SunPump Agent Token Launch API
-
-SunPump Agent Token Launch API is an x402-paid gateway provider for launching a TRON Mainnet SunPump token from structured metadata. It exposes the same launch request shape across TRON Mainnet, BNB Smart Chain and Base Mainnet payment routes.
-
-Use it when an agent, backend workflow, or CLI script has validated launch metadata and is ready to create a token through a paid API call.
-
-## Service
-
-- FQN: `sunpump-token-launch`
-- Service URL: `https://sunpump.meme`
-- Category: `finance`
-- Payment chains: `tron:0x2b6653dc`, `eip155:56`, `eip155:8453`
-- TRON schemes: `exact` + `permit2` (default), `exact_gasfree`
-- BNB Smart Chain scheme: `exact` + `permit2`
-- Base Mainnet scheme: `exact` + official USDC EIP-3009
-- TRON Mainnet gateway base: `https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron`
-- BNB Smart Chain gateway base: `https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc`
-- Base Mainnet gateway base: `https://x402-gateway.bankofai.io/providers/sunpump-token-launch-base`
-
-## CLI Quick Start
-
-Install or update Wallet CLI and configure an account before paying:
-
-```bash
-npm install -g @tron-walletcli/wallet-cli@4.14.0
-```
-
-The examples use the active account. Supply its master password through standard input for `--password-stdin`. `--max-amount` limits the payment in whole units of the selected token.
-
-Call the route matching the payment chain you want to use.
-
-TRON Mainnet:
-
-```bash
-curl -sS -X POST 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch' \
- -H 'Content-Type: application/json' \
- --data '{"name":"X402MainA","symbol":"X4M17","description":"x402 launch","imageBase64":"","twitterUrl":"","telegramUrl":"","websiteUrl":"","tweetUsername":""}'
-```
-
-```bash
-wallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-tron/pump-api/ai/agentTokenLaunch' \
- --password-stdin \
- --method POST \
- --network tron:728126428 \
- --token USDT \
- --scheme exact \
- --max-amount 0.000001 \
- --header 'Content-Type: application/json' \
- --body '{"name":"X402MainA","symbol":"X4M17","description":"x402 launch","imageBase64":"","twitterUrl":"","telegramUrl":"","websiteUrl":"","tweetUsername":""}'
-```
-
-BNB Smart Chain:
-
-```bash
-curl -sS -X POST 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch' \
- -H 'Content-Type: application/json' \
- --data '{"name":"X402BscA","symbol":"X4B17","description":"x402 launch","imageBase64":"","twitterUrl":"","telegramUrl":"","websiteUrl":"","tweetUsername":""}'
-```
-
-```bash
-wallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-bsc/pump-api/ai/agentTokenLaunch' \
- --password-stdin \
- --method POST \
- --network eip155:56 \
- --token USDT \
- --scheme exact \
- --max-amount 0.000001 \
- --header 'Content-Type: application/json' \
- --body '{"name":"X402BscA","symbol":"X4B17","description":"x402 launch","imageBase64":"","twitterUrl":"","telegramUrl":"","websiteUrl":"","tweetUsername":""}'
-```
-
-Base Mainnet:
-
-```bash
-wallet-cli x402 pay 'https://x402-gateway.bankofai.io/providers/sunpump-token-launch-base/pump-api/ai/agentTokenLaunch' \
- --password-stdin \
- --method POST \
- --network eip155:8453 \
- --token USDC \
- --scheme exact \
- --max-amount 0.000001 \
- --header 'Content-Type: application/json' \
- --body '{"name":"X402BaseA","symbol":"X4BA17","description":"x402 launch","imageBase64":"","twitterUrl":"","telegramUrl":"","websiteUrl":"","tweetUsername":""}'
-```
-
-The Base Mainnet route changes only the payment network. A successful call still creates a token on TRON Mainnet.
-
-## Endpoint
-
-### POST /pump-api/ai/agentTokenLaunch
-
-Create a SunPump token from JSON metadata after x402 payment settlement.
-
-Required request fields:
-
-- `name`: token name, 1-20 characters.
-- `symbol`: token symbol. Use a unique value.
-- `description`: token description.
-- `imageBase64`: optional base64-encoded token image. Leave it empty or omit it to let SunPump generate an image automatically.
-- `twitterUrl`, `telegramUrl`, `websiteUrl`: optional social links, or empty strings.
-- `tweetUsername`: optional tweet username, or an empty string.
-
-The upstream response returns SunPump status and token launch data such as token id, owner address, contract address, create transaction hash, logo URL, reserves, and market data when available.
-
-## Integration Notes
-
-- The endpoint has side effects: a successful paid call can create a token.
-- Validate metadata before paying. In particular, keep `name` within 1-20 characters.
-- You can provide your own token image with `imageBase64`; otherwise the launch service generates one.
-- Current listed prices are fixed per request across all listed payment routes.
-- The public catalog does not contain gateway runtime secrets or wallet keys.
-````
-
-### Pre-submission checklist
-
-CI enforces the following rules — go through them before submitting:
-
-- `version` must be `1`.
-- `fqn` is lowercase letters/digits/hyphens and must match the directory name.
-- `category` must be one of the allowed values (see [reference](./reference.md#allowed-categories)).
-- `chains` needs at least one entry, using CAIP-2 style chain IDs. TRON IDs must be `tron:0x2b6653dc`, `tron:0xcd8690dc`, or `tron:0x94a9059e` — the decimal form (`tron:728126428`) is rejected; see [Chain IDs](./reference.md#chain-ids). CI tests require every provider to list Base Mainnet `eip155:8453` and reject Base Sepolia `eip155:84532`.
-- `isFirstParty`, `isFeatured` (booleans) and `featuredTags` (string array, may be empty `[]`) are **required** — missing any of them fails validation.
-- For every endpoint: `method` must be uppercase, `path` must start with `/`, and `maxPriceUsd` must not be less than `minPriceUsd`.
-- `serviceUrl`, every endpoint `url`, and every route `url` must start with `https://`.
-- Unknown fields are rejected — at the top level and in endpoints, routes, `i18n.`, and `status`.
-- `x402Routes` is optional in the schema, but CI tests require every endpoint to publish exactly one Base Mainnet route: `scheme` `exact`, `assetTransferMethod` `eip3009`, and a `provider` ending in `-base`. Every route's `network` must also appear in `chains`, and `exact_gasfree` is allowed only on TRON networks. Every route needs `network`, `provider`, `scheme`, and `url`; an `exact` route must also carry `assetTransferMethod` (`permit2` or `eip3009`), and an `exact_gasfree` route must **omit** it. A network may appear more than once — TRON typically publishes both an `exact` and an `exact_gasfree` route — as long as each `(provider, network, scheme, url)` combination is unique. Legacy `fee` / `feeConfig` fields are rejected. See the [reference](./reference.md#x402routes--multi-network-routing).
-- On every endpoint with TRON routes, the first TRON route must be `exact` + `permit2` (the default), and the service-level `description` — including its `i18n` translations — must not contain `--scheme exact_gasfree`.
-- The service and every endpoint must provide `i18n.zh-CN` translations for `title`, `subtitle`, `description`, and `useCase`.
-- `status` is optional, but if present it must include all four keys, and only accepts: `catalog` `listed`/`unlisted`; `gateway` `configured`/`unknown`/`unavailable`; `payment` `paid-route`/`mainnet`/`testnet`/`unknown`; `upstream` `public`/`authenticated`/`unknown`/`unavailable`.
-- `pay.md` must be submitted together with `catalog.json`; both files are scanned for sensitive data.
-- No keys, private keys, or private network addresses anywhere.
-
-## Step 2: Validate locally
-
-Before submitting, install the validation dependency, then run validation, build, and the unit tests locally — the same steps CI runs. The scripts need Python 3.11 or newer (CI uses 3.12); on 3.10 they fail with `ImportError: cannot import name 'UTC' from 'datetime'`.
-
-```bash
-pip install -r requirements.txt
-python3 scripts/validate.py
-python3 scripts/build.py
-python3 -m unittest discover -s tests
-```
-
-The first two print `validated N provider(s)` and `built N provider(s) into dist`, where N counts every provider in the repository, yours included.
-
-:::note Pinned counts in the tests
-`tests/test_build.py` pins current catalog totals, such as the number of Base Mainnet routes across all providers. A new provider that passes `validate.py` can still fail those assertions (for example `AssertionError: 20 != 18`); update the expected counts in the same PR.
-:::
-
-## Step 3: Open the Pull Request
-
-Add the two files to the [catalog repository](https://github.com/BofAI/x402-catalog) under the matching directory, together with the regenerated `dist/` files:
-
-```text
-providers//catalog.json
-providers//pay.md
-dist/
-```
-
-:::caution Security red line: these two files are public
-**Never** include upstream API keys, bearer tokens, wallet private keys, passwords, `provider.yml`, `.env`, or any internal/local addresses (such as `localhost`, `127.0.0.1`, `10.x`, `192.168.x`). CI scans for these patterns and rejects the merge on any hit.
-:::
-
-## Step 4: Merge = go live
-
-After your PR merges, the release process refreshes the freshly built `dist/` to the Catalog Server / CDN. Your service is live in the catalog and starts taking Agent calls.
-
-## Next steps
-
-- All fields, categories, and API structures → [Data Format & API Reference](./reference.md)
-- Want to try the caller side first? → [Catalog Quick Start](./get-started.md)
diff --git a/docs/x402/api-catalog/reference.md b/docs/x402/api-catalog/reference.md
deleted file mode 100644
index a7e99d02..00000000
--- a/docs/x402/api-catalog/reference.md
+++ /dev/null
@@ -1,254 +0,0 @@
----
-title: Data Format & API Reference
-sidebar_label: Data Format & API
-description: Field definitions for catalog.json / pay.md, allowed categories and chain IDs, and the response structures of the Catalog static API (/api/*).
----
-
-# Data Format & API Reference
-
-This page is the API Catalog's data contract: the `catalog.json` fields providers submit to the [catalog repository](https://github.com/BofAI/x402-catalog), the allowed values, and the structures of the `/api/*` endpoints the catalog exposes after build.
-
-## provider catalog.json fields
-
-Each service is described in `providers//catalog.json`. Top-level fields:
-
-| Field | Type | Required | Description |
-|---|---|---|---|
-| `version` | number | Yes | Always `1` |
-| `fqn` | string | Yes | Globally unique ID, regex `^[a-z0-9][a-z0-9-]{1,62}$`, must match the directory name |
-| `title` | string | Yes | Service name (typically a clean brand name, e.g. `DefiLlama`) |
-| `subtitle` | string | Yes | One-line subtitle |
-| `mainTitle` | string | No | Display tagline for the card/header (e.g. `Aggregated DeFi data — TVL, prices & yields`); falls back to `title` |
-| `description` | string | Yes | Service description |
-| `useCase` | string | Yes | When to use it — helps Agents decide when to call |
-| `i18n` | object | Yes | Translations, must include `zh-CN` (see below) |
-| `logo` | string | Yes | Logo image URL |
-| `category` | string | Yes | Must be an allowed value (see [allowed categories](#allowed-categories)) |
-| `chains` | string[] | Yes | Settlement chains, at least one, CAIP-2 style |
-| `serviceUrl` | string | Yes | The service's public website (e.g. `https://defillama.com`), starting with `https://`. Gateway call addresses go in each endpoint's `url` and `x402Routes[].url` |
-| `endpoints` | object[] | Yes | Endpoint list, at least one (see below) |
-| `isFirstParty` | boolean | Yes | First-party service or not |
-| `isFeatured` | boolean | Yes | Featured or not (affects catalog ordering, see [aggregate fields and ordering](#catalogjson-aggregate-fields-and-ordering)) |
-| `featuredTags` | string[] | Yes | Featured tags, may be an empty array `[]` |
-| `status` | object | No | Status block (see [status block](#status-block)) |
-
-### i18n translations
-
-`i18n.zh-CN` is required and must contain Chinese translations for `title`, `subtitle`, `description`, and `useCase`. It may also include `mainTitle` (Chinese display tagline). Every endpoint needs its own `i18n.zh-CN` as well.
-
-### endpoint fields
-
-| Field | Type | Required | Description |
-|---|---|---|---|
-| `method` | string | Yes | HTTP method, must be uppercase (e.g. `GET`) |
-| `path` | string | Yes | Path, must start with `/` |
-| `url` | string | Yes | Full endpoint URL |
-| `title` | string | Yes | Endpoint name |
-| `subtitle` | string | Yes | Subtitle |
-| `description` | string | Yes | Description |
-| `useCase` | string | Yes | When to use it |
-| `i18n` | object | Yes | Endpoint-level Chinese translations (same four fields) |
-| `metered` | boolean | Yes | Metered billing or not |
-| `minPriceUsd` | number | Yes | Minimum price (USD) |
-| `maxPriceUsd` | number | Yes | Maximum price (USD), must not be less than `minPriceUsd` |
-| `x402Routes` | object[] | No | Per-network payment routes (see below) |
-
-### x402Routes — multi-network routing
-
-An endpoint may serve the same capability across several chains, each settling through its own gateway provider and payment scheme. List those alternatives in `x402Routes`; each route describes one network:
-
-| Field | Type | Description |
-|---|---|---|
-| `network` | string | CAIP-2 chain ID this route settles on (e.g. `tron:0x2b6653dc`, `eip155:56`, `eip155:8453`). For TRON the catalog accepts only the hexadecimal IDs listed under [Chain IDs](#chain-ids); aliases such as `tron:nile` and the decimal form `tron:728126428` are both rejected by the catalog's validation. |
-| `provider` | string | The gateway provider `fqn` that handles this network |
-| `scheme` | string | x402 payment scheme for this route: `exact` or, on TRON, `exact_gasfree` — each route declares its own |
-| `assetTransferMethod` | string | **Required** for every `exact` route: use `permit2` for TRON/BSC routes and `eip3009` for Base USDC routes. **Omit** it only on `exact_gasfree` routes. |
-| `url` | string | Full gateway URL for this network's route |
-
-The build passes this through to outputs as `x402_routes`. When present, callers/agents pick the route matching their intended payment chain; the top-level `url` remains the default route.
-
-:::note GasFree routes
-On TRON you can add an `exact_gasfree` route alongside the `exact` one for the same endpoint: a relayer pays the network energy and deducts its fee from the payment token, so the payer needs no TRX. GasFree routes are TRON-only and must not carry `assetTransferMethod`. Since x402 SDK 1.0.1 the relayer cost is estimated client-side, so catalog routes must **not** publish the legacy `fee` or `feeConfig` fields.
-:::
-
-For example, an endpoint may expose one route per supported chain — TRON Mainnet, BSC Mainnet, and Base Mainnet — each with its own `provider` and `scheme`. To call one, point `wallet-cli x402 pay` at the chosen route's `url` and pass the matching `--network` / `--scheme`:
-
-```bash
-wallet-cli x402 pay --dry-run -o json 'https://x402-gateway.bankofai.io/providers//' \
- --method POST \
- --network tron:728126428 \
- --token USDT \
- --scheme exact \
- --max-amount 0.000001 \
- --header 'Content-Type: application/json' \
- --body '{ ... }'
-```
-
-The other routes reuse the same request body, swapping only the route `url`, `--network`, and the route's declared `--scheme`.
-
-### status block
-
-`status` is optional and describes the state of each stage of the service, with four keys: `catalog` / `gateway` / `payment` / `upstream`. When present, all four keys are required. When omitted, the build output (service detail) fills in defaults automatically:
-
-```json
-{ "catalog": "listed", "gateway": "unknown", "payment": "unknown", "upstream": "unknown" }
-```
-
-Allowed values:
-
-| Key | Values |
-|---|---|
-| `catalog` | `listed`, `unlisted` |
-| `gateway` | `configured`, `unknown`, `unavailable` |
-| `payment` | `paid-route`, `mainnet`, `testnet`, `unknown` |
-| `upstream` | `public`, `authenticated`, `unknown`, `unavailable` |
-
-## pay.md
-
-Submitted alongside `catalog.json` in the same directory — a human- and Agent-readable call guide, and a **required** file. Recommended contents: basic service info (FQN, entry address, category, settlement chains), each endpoint's address and price, plus copy-paste call examples. The catalog's CI tests currently require a `wallet-cli x402 pay` example with `--network tron:728126428` and `--scheme exact`, a mention of `exact_gasfree`, and Base Mainnet coverage (the strings `Base Mainnet`, `eip155:8453`, `-base`, `USDC`, and `EIP-3009`, with no `Sepolia` or `eip155:84532`). Like `catalog.json`, this file goes through the sensitive-data scan (see below).
-
-## Allowed categories
-
-`category` must be one of:
-
-```text
-ai_ml cloud compute data
-devtools finance identity media
-messaging other productivity search
-security shopping storage translation
-```
-
-## Chain IDs
-
-`chains` uses CAIP-2 style chain identifiers. Mainnets and testnets are both recognized:
-
-:::note TRON ID format
-The catalog schema accepts TRON chains only in the hexadecimal form below. The x402 SDK (since 2.0.0) and Wallet CLI use the decimal CAIP-2 IDs — `tron:728126428` (mainnet), `tron:3448148188` (Nile), `tron:2494104990` (Shasta). The SDK still accepts the hexadecimal values as deprecated aliases of the same chains; Wallet CLI's global `--network` (used by `x402 pay` and account commands) does not — use the decimal ID or an alias such as `tron`, `nile` or `shasta`; only the catalog filter `x402 provider-list --network` also accepts the hex form. That is why the CLI examples pass `--network tron:728126428` while `catalog.json` lists `tron:0x2b6653dc`.
-:::
-
-| Chain | ID |
-|---|---|
-| TRON mainnet | `tron:0x2b6653dc` |
-| TRON Nile testnet | `tron:0xcd8690dc` |
-| TRON Shasta testnet | `tron:0x94a9059e` — schema-level only: the gateway has no Shasta token registry and the official facilitator does not settle it, so it cannot back a live route |
-| BNB Chain (BSC) | `eip155:56` |
-| BNB Smart Chain testnet | `eip155:97` |
-| Base mainnet | `eip155:8453` |
-| Base Sepolia testnet | `eip155:84532` — schema-level only: the build has no display metadata for it, so `label` falls back to the raw chain ID and `chain_kinds` reports `evm` instead of `base`. The catalog's CI tests also reject it in `chains` |
-
-Per-endpoint routes are published in `/api/providers/.json` and `/api/pay/.json` (as `x402_routes`), not in the summary-only `/api/catalog.json`. 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).
-
-## Validation and secret scanning
-
-Every submission goes through field validation and a sensitive-data scan; any hit rejects the submission. The scan covers:
-
-- **Secret field names**: `api_key`, `secret`, `password`, `token`, `authorization`, `bearer`, `private_key`, `provider.yml`, `.env`, etc.
-- **Secret values**: tokens shaped like `sk-...` or `Bearer ...`, and 64-character hex strings starting with `0x` (private-key signature).
-- **Private network addresses**: `localhost`, `127.0.0.1`, `0.0.0.0`, `10.x`, `192.168.x`, `172.16-31.x`, etc.
-
-Both `catalog.json` and `pay.md` are scanned.
-
-## Build outputs and API
-
-CI builds the static snapshot `dist/`, which the Catalog Server serves under the `/api/` path (CORS enabled):
-
-| Endpoint | Contents |
-|---|---|
-| `GET /api/catalog.json` | List-page data: service summaries + aggregate stats + frontend config |
-| `GET /api/categories.json` | Categories in use and their counts |
-| `GET /api/search-index.json` | Lightweight search index |
-| `GET /api/providers/.json` | Single service detail (full endpoints + status) |
-| `GET /api/pay/.json` | Payment & call summary for Agents / CLI |
-| `GET /api/pay/.md` | Human-readable call guide |
-| `GET /api/status.json` | Build status and service count |
-
-### catalog.json aggregate fields and ordering
-
-Besides the `providers` array, the list endpoint carries dynamic stats — frontends should read them directly, never hard-code:
-
-| Field | Description |
-|---|---|
-| `version` | Always `1` |
-| `base_url` | Base URL of the static API |
-| `provider_count` | Total services live |
-| `first_party_count` | First-party service count |
-| `chain_count` | Chains covered |
-| `generated_at` | Build time (UTC) |
-| `frontend.featured_fqns` | `fqn` list of featured services |
-| `frontend.categories` | Categories in use — each `{ id, label, label_zh, count }` |
-| `frontend.chains` | Chains in use — each `{ id, kind, label, label_zh, count }` |
-
-The `providers` array is pre-sorted at build time by **featured first → category → fqn**; frontends can render it as-is. Use `frontend.categories` / `frontend.chains` to drive filter UIs — including their `label` / `label_zh` display names — rather than hard-coding category or chain lists.
-
-### Derived fields
-
-Build outputs add derived fields on top of the raw data and convert top-level and endpoint field names to snake_case (e.g. `useCase` → `use_case`, `x402Routes` → `x402_routes`). The `i18n` block and the objects inside `x402_routes` are passed through unchanged, so they keep camelCase keys such as `mainTitle` and `assetTransferMethod`:
-
-| Field | Description |
-|---|---|
-| `endpoint_count` | Number of endpoints |
-| `has_metering` | Whether any endpoint is metered |
-| `has_free_tier` | Whether any endpoint has `minPriceUsd` of 0 |
-| `min_price_usd` / `max_price_usd` | The service's price range across all endpoints |
-| `sha` | Content hash of `catalog.json` + `pay.md`, for change detection |
-
-### Frontend display fields
-
-To save the frontend from parsing raw IDs and picking translations, the build also emits ready-to-render fields on each provider summary and detail:
-
-| Field | Description |
-|---|---|
-| `title_zh` | Chinese service name (from `i18n.zh-CN.title`, falls back to `title`) |
-| `main_title` | Display tagline (from `mainTitle`, falls back to `title`) |
-| `main_title_zh` | Chinese display tagline (from `i18n.zh-CN.mainTitle` / `mainTitle`, falls back to `title`) |
-| `sub_title` | Secondary display line (from `subtitle`) |
-| `sub_title_zh` | Chinese secondary display line (from `i18n.zh-CN.subtitle`, falls back to `subtitle`) |
-| `category_meta` | `{ id, label, label_zh }` for the category |
-| `chain_kinds` | De-duplicated friendly chain kinds, e.g. `["tron"]`, `["bnb"]`, `["base"]` |
-| `chains_meta` | Per-chain `{ id, kind, label, label_zh }`, so the frontend never parses CAIP-2 |
-
-These are additive — the raw `title`, `subtitle`, `category`, `chains`, and `i18n.zh-CN` are still present.
-
-### Other output structures
-
-- **`/api/pay/.json`**: payment summary for Agents / CLI. Top level includes `version`, `fqn`, `title`, `title_zh`, `main_title`, `main_title_zh`, `sub_title`, `sub_title_zh`, `subtitle`, `description`, `use_case`, `i18n`, `service_url`, `chains`, `chain_kinds`, `chains_meta`, `sha`; `endpoints[]` keeps the call-relevant fields `method`, `path`, `url`, `description`, `metered`, `min_price_usd`, `max_price_usd`, plus `x402_routes` when the endpoint defines multi-network routes.
-- **`/api/search-index.json`**: `{ version, generated_at, documents[] }`, each document carrying a reduced set of service fields — `fqn`, `title`, `subtitle`, `description`, `use_case`, `category`, `category_meta`, `chains`, `chain_kinds`, `chains_meta`, `featured_tags`, `service_url` — plus each endpoint's `method` / `path` / `title` / `description` (and `x402_routes` when present).
-- **`/api/categories.json`**: array of categories in use, each `{ id, label, label_zh, count }` — a direct export of `frontend.categories`.
-- **`/api/status.json`**: `{ version, generated_at, provider_count, status }`; `status` of `ok` means the build is healthy.
-
-## Local build and run
-
-Requires Python 3.11 or newer.
-
-```bash
-# install the validation dependency (jsonschema)
-pip install -r requirements.txt
-
-# validate all providers
-python3 scripts/validate.py
-
-# build the static snapshot into dist/
-python3 scripts/build.py
-
-# run the unit tests
-python3 -m unittest discover -s tests
-```
-
-Container mode (validates and builds `dist/` at image build time, then serves from `/api/`):
-
-```bash
-docker compose build catalog
-docker compose up -d catalog
-curl http://127.0.0.1:8088/api/status.json
-```
-
-The port can be overridden with the `X402_CATALOG_PORT` environment variable (default `8088`; the container listens on `8080` internally).
-
-:::note CI scheduling
-The catalog repository's CI (GitHub Actions) runs validation, build, and the unit tests on every PR, on pushes to `main`, on release tags, and every 30 minutes; it can also be triggered manually.
-:::
-
-## Related pages
-
-- [List Your Service](./list-your-service.md) — submission flow and security red lines
-- [Get Started](./get-started.md) — onboarding from the caller's side
diff --git a/docs/x402/core-concepts/OfficialFacilitator.md b/docs/x402/core-concepts/OfficialFacilitator.md
index c6f736ac..b6aa65e5 100644
--- a/docs/x402/core-concepts/OfficialFacilitator.md
+++ b/docs/x402/core-concepts/OfficialFacilitator.md
@@ -1,3 +1,8 @@
+---
+title: 'Official Facilitator'
+description: 'Connect to the hosted x402 Facilitator, manage API keys, and handle cache refreshes and authentication outages.'
+---
+
# Official Facilitator
## What is an Official Facilitator?
@@ -122,6 +127,18 @@ Therefore, it is **strongly recommended to apply for and configure an API Key**
---
+### Key refreshes and temporary authentication failures
+
+Facilitator v2.3.2 reads active keys from DevCenter into a cache; the built-in production configuration refreshes it every **5 seconds**. Both key creation and deletion affect authentication after the next successful refresh, rather than immediately. Each process refreshes independently; replicas need not apply changes together, and database read time also affects the delay.
+
+While the cache is fresh, incorrect keys, keys not yet synced, and revoked keys after syncing are treated as anonymous rather than uniformly rejected with HTTP 401. A successful call does not prove that a key was recognized. In particular, transaction-hash and authorization-identity lookups apply seller filtering only for a **valid, recognized key**.
+
+If DevCenter becomes unavailable, the previous snapshot remains usable for up to three refresh intervals (**15 seconds** with the production configuration, measured from the last successful read). Once it expires, requests carrying `X-API-KEY` to `/verify`, `/settle`, `/payments`, and `/payments/tx/{tx_hash}` receive HTTP **503** with reason code `api_key_auth_unavailable` until refreshes recover. This error has no `Retry-After` header. Retain the key and retry with backoff; do not remove the authentication header to bypass the error. Anonymous requests continue under the existing policy.
+
+See [Facilitator API key cache](../facilitator#api-key-cache-and-authentication-availability) for each endpoint's error response.
+
+---
+
## Apply for an API Key
To unlock production-level throughput, please apply for a free API Key in the admin backend: [https://admin-facilitator.bankofai.io](https://admin-facilitator.bankofai.io)
@@ -135,7 +152,7 @@ This is an admin panel accessible via a browser, where you can register an accou
- **API Key leakage is equivalent to identity leakage**: Anyone holding your API Key can consume your rate limit quota in your name. Please protect it like a password.
- **Do not commit to code repositories**: Ensure that the `.env` file has been added to `.gitignore` to avoid uploading keys to public platforms like GitHub.
-- **1 Key per account limit**: If you believe your Key has been leaked, please log in to the admin backend to delete the old Key and recreate a new one. The old Key will become invalid immediately.
+- **1 Key per account limit**: If you believe your Key has been leaked, please log in to the admin backend to delete the old Key and recreate a new one. The old Key becomes invalid after the next successful Facilitator key-cache refresh.
- **Signature authorization does not equal transfer**: The wallet signature during login is only used for identity verification and will not trigger any asset transfers.
:::
@@ -227,7 +244,7 @@ Click the **"Create API Key"** button on the page. The system will pop up a conf
After clicking **"Confirm"**, you will return to the Dashboard page, and the API Key will be displayed in a hidden state by default. You can manage it in the following ways:
- **View / Hide**: Click the **View** button to the right of the API Key to switch between plain text display and hidden state. You can copy the Key directly whether it is currently displayed or hidden.
-- **Delete**: Click the **Delete** button on the far right to delete the current API Key. After deletion, the old Key will become invalid immediately, and you can recreate a new Key.
+- **Delete**: Click the **Delete** button on the far right to delete the current API Key. After deletion, the old Key becomes invalid after the next successful Facilitator key-cache refresh, and you can recreate a new Key.
![]()
When an API Key is provided, these interfaces only return payment records associated with your account; you will not see data from other sellers.
+> When a valid API Key recognized by Facilitator is provided, these interfaces only return payment records associated with your account; you will not see data from other sellers.
:::danger Without an API Key
The `tx_hash` and `network` + `nonce` lookups add **no seller filter** when the request is anonymous, so the response may include records bound to a seller — anyone holding an exact identifier can resolve the corresponding record. The `/payments` list endpoint still requires authentication, so there is no unauthenticated listing endpoint; but these lookups are not rate-limited either (the official service's 10-requests-per-IP-per-minute anonymous limit covers `/verify` and `/settle` only), and settlement tx hashes are public on-chain data. Treat settlement metadata as effectively public rather than seller-private.
@@ -307,7 +324,7 @@ Yes, it can run, but the official service limits `/verify` and `/settle` to 10 r
**Q: Does the API Key expire?**
-Currently, API Keys do not actively expire, but if you actively delete and recreate one, the old Key will become invalid immediately.
+Currently, API Keys do not actively expire, but if you actively delete and recreate one, the old Key becomes invalid after the next successful Facilitator key-cache refresh.
**Q: Can I use the same API Key for multiple projects?**
@@ -315,7 +332,7 @@ Yes, the same API Key can be reused across multiple service instances. On the of
**Q: I want to change my API Key, how do I do it?**
-After logging in to the admin backend, click **Delete** on the Dashboard to delete the current Key, then click **"Create API Key"** again to generate a new Key. The old Key will become invalid immediately after deletion. Please ensure that you have updated the new Key in all active projects before deleting to avoid service interruption.
+After logging in to the admin backend, click **Delete** on the Dashboard to delete the current Key, then click **"Create API Key"** again to generate a new Key. The old Key becomes invalid after the next successful Facilitator key-cache refresh. Each account allows one key, so schedule a rotation window: delete the old key, create the replacement, update all active projects, and verify calls after the cache refreshes.
**Q: Will Facilitator hold my funds?**
diff --git a/docs/x402/core-concepts/client-server.md b/docs/x402/core-concepts/client-server.md
index 7b561731..e934fd62 100644
--- a/docs/x402/core-concepts/client-server.md
+++ b/docs/x402/core-concepts/client-server.md
@@ -62,7 +62,7 @@ In the x402 protocol, a typical interaction between client and server proceeds a
2. **Server Requires Payment**: Responds with `402 Payment Required`, including payment details in the `PAYMENT-REQUIRED` header (Base64-encoded).
3. **Client Submits Payment**: Generates a signature and resends the request with the signed payload in the `PAYMENT-SIGNATURE` header (Base64-encoded).
4. **Server Validates Payment**: Calls the Facilitator service to verify the received payment payload.
-5. **Server Delivers Resource, then Settles**: Under the default `authorization` payment flow — the flow every built-in scheme declares — the resource server runs its handler first and settles through the Facilitator afterwards, returning the resource with settlement confirmation (transaction hash) in the `PAYMENT-RESPONSE` header. A server that opts into a settle-first flow, and the BANK OF AI gateway, invert this step: they settle first and deliver afterwards.
+5. **Server Delivers Resource, then Settles**: Under the default `authorization` payment flow — the flow every built-in scheme declares — the resource server runs its handler first and settles through the Facilitator afterwards, returning the resource with settlement confirmation (transaction hash) in the `PAYMENT-RESPONSE` header. A server that opts into a settle-first flow reverses this order: it settles first and delivers afterwards.
/v1/...`, where the id comes from the catalog entry's `url` — it is not the catalog FQN) — they never reach your upstream API directly.
-- **The gateway forwards requests.** Once payment is verified (or the endpoint is free), it proxies the request upstream and returns the upstream response body to the Agent unchanged — a fixed set of response headers is stripped — hop-by-hop headers plus `set-cookie`, `authorization`, `content-encoding`, `content-length` and every x402 payment header (so an upstream `PAYMENT-RESPONSE` never leaks through) — and a `PAYMENT-RESPONSE` header is added, and an operator can configure a response contract that turns an upstream `200` carrying a business error into a gateway error.
-- **Never a wallet private key.** Settlement uses a wallet **address** only; callers pay on-chain from their own wallets. Neither side of the gateway ever touches a private key.
-- **Upstream keys stay isolated.** If your upstream API needs auth, that API key lives only on the side running the gateway — in your local YAML / env for a self-hosted gateway, or held by us for the official gateway. Either way the caller never sees it, and it never enters the public catalog.
-- **You decide pricing per endpoint.** Price an endpoint in the config and it takes the paid flow; leave it unpriced (price 0) and it's forwarded directly — free endpoints stay free.
-
-
-
-## Anatomy of a call
-
-### Paid endpoints: the HTTP 402 flow
-
-Every paid call clears on-chain via x402 — the price in the response is always the single source of truth.
-
-1. **Agent calls** — requests the target endpoint.
-2. **Gateway quotes** — returns the price (HTTP `402`).
-3. **Wallet authorizes** — the client signs the selected payment requirement and retries with a `PAYMENT-SIGNATURE` header.
-4. **Verified & settled** — the facilitator verifies the signed payload and settles the payment on-chain to your payout wallet.
-5. **Response returns** — the gateway forwards the request upstream and returns the result to the Agent.
-
-### Free endpoints: straight pass-through
-
-Unpriced endpoints skip the quote step entirely and trigger no on-chain transaction:
-
-1. **Agent calls** — requests the target endpoint.
-2. **Gateway forwards** — proxies upstream and returns the result.
-
-That means one service can mix paid and free endpoints — say `/v1/current` billed per call while `/v1/ping` stays free. An Agent tells them apart from the endpoint's `metered` flag and `min_price_usd` in the catalog output (there is no separate free-endpoint marker). Every endpoint published in the catalog today is metered, so this is a gateway capability rather than something the current listings demonstrate.
-
-:::note
-Paid or free, the caller gets access by paying on-chain and needs no API key; any upstream credentials stay gateway-side and the calling Agent can never touch them.
-:::
-
-## Built for both sides
-
-Providers turn calls into cash flow. Agents turn calls into capabilities. The gateway is the bridge.
-
-### For API providers: list your API, earn on every call
-
-- **Straight to your wallet** — payments settle to your payout wallet in real time; no platform escrow, no payout cycle.
-- **Native multi-chain** — settle on TRON, BNB Chain, or Base Mainnet, according to the provider's published route.
-- **Zero-touch onboarding** — your existing API stays exactly as it is, not one line changes.
-- **You set the price** — flexible per-endpoint, per-tier pricing; free routes stay free.
-
-→ [List your API](../api-catalog/list-your-service.md)
-
-### For AI Agents: one catalog, many APIs, pay as you go
-
-- **CLI discovery today** — `wallet-cli x402 provider-list` / `provider-show` / `endpoint-list` find the right API and its routes. Paying over MCP is supported via `@x402/mcp`; catalog-aware MCP discovery is not shipped yet.
-- **Per-call pricing** — no subscriptions, no minimums.
-- **Live price transparency** — the gateway returns the computed price in its `402` response, and the client's authorization binds the selected payment requirement. The quote itself is not a gateway cryptographic signature.
-- **No accounts, no keys** — your wallet is your identity; nothing to register or manage.
-
-→ [Browse the API Catalog](../api-catalog/index.md)
-
-## How to plug your API in
-
-Three steps to launch — your API stays untouched:
-
-1. **Pick a gateway** — use BANK OF AI's hosted gateway, or run your own (differences below).
-2. **Set your price list** — decide the endpoints, per-endpoint pricing, and the payout wallet; no SDK to install, no code to rewrite.
-3. **Get listed** — submit two public files to the catalog repository (or start with the application form and we'll help you through). Once your service appears in the [API Catalog](../api-catalog/index.md), any Agent can discover it, call it, and pay automatically.
-
-Full steps: [List Your Service](../api-catalog/list-your-service.md).
-
-### Official gateway, or run your own?
-
-- **Official gateway (hosted)**: BANK OF AI runs the gateway, proxies your API, and handles payment — you deploy nothing; the call addresses in your listing files use the official domain (like `x402-gateway.bankofai.io/providers/`).
-- **Run your own**: deploy the gateway on your own machine; upstream credentials and payout config stay local; the call addresses in your listing files use your own domain. For providers who want full control over credentials and infrastructure. Setup steps: [Run your own gateway](#run-your-own-gateway).
-
-Either way, the calling Agent's experience is identical: discovery, quoting, payment, and the call all follow the same x402 flow.
-
-:::note Why list in the catalog if I run my own gateway?
-The gateway and the catalog solve two different problems: **the gateway collects the money; the catalog gets you discovered.** The catalog is just a public list of services — it never touches calls or funds. What Agents call is always the gateway address registered in the catalog; with a self-hosted gateway that's your own domain, so traffic and funds go straight to you. The point of listing: every Agent, CLI user, and catalog visitor plugged into the BANK OF AI catalog can discover and call your service — not just the people who happen to know your domain.
-:::
-
-## Run your own gateway
-
-These steps use gateway release **v1.0.5** and the Docker image `bankofai/x402-gateway:v1.0.5`. This release uses `@bankofai/x402-tron` / `@bankofai/x402-tron-extensions` **2.1.1** with official `@x402/core` **2.29.0**; repository and Docker installations pin Zod to **4.6.6**. Source installations require Node.js **24.22.1+ (24.x) or 26.12.1+**; Docker and CI pin 24.22.1. Full reference: [x402-gateway v1.0.5 README](https://github.com/BofAI/x402-gateway/blob/v1.0.5/README.md).
-
-### 1. Write a provider file
-
-Each provider lives in its own directory as `provider.yml` (or `provider.yaml`), for example `providers/example/provider.yml`:
-
-```yaml
-name: example-provider
-forward_url: ${X402_PROVIDER_FORWARD_URL}
-
-operator:
- network: tron:3448148188 # TRON Nile; mainnet is tron:728126428
- currencies:
- usd: ["USDT"]
- recipient: ${X402_PROVIDER_RECIPIENT}
- scheme: exact
- protocol: exact
- facilitator_url: ${X402_FACILITATOR_URL}
- facilitator_api_key_env: X402_FACILITATOR_API_KEY
- valid_for_seconds: 300
-
-endpoints:
- - method: GET
- path: /v1/ping
- metering:
- dimensions:
- - tiers:
- - price_usd: 0.002
-```
-
-- `network` must be a decimal CAIP-2 ID. Aliases such as `tron:nile` are rejected.
-- `recipient` is your payout **address**. The gateway never needs a private key.
-- Endpoints without `metering` are forwarded for free.
-- If your upstream needs an API key, add a `routing.auth` block that reads it from an environment variable. See the README's *Provider Config* section.
-
-### 2. Set the environment
-
-Put the values the YAML references in a `.env` file next to the `providers/` directory:
-
-```bash
-X402_PROVIDER_FORWARD_URL=https://api.example.com
-X402_PROVIDER_RECIPIENT=
-X402_FACILITATOR_URL=https://facilitator.bankofai.io
-X402_FACILITATOR_API_KEY=
-X402_GATEWAY_ADMIN_TOKEN=
-X402_GATEWAY_PUBLIC_BASE_URL=https://gateway.example.com
-```
-
-`X402_GATEWAY_PUBLIC_BASE_URL` is the public origin Agents call. It is also the base of the addresses you publish in the catalog. Because `facilitator_api_key_env` is set, the gateway refuses to start without `X402_FACILITATOR_API_KEY`. For the facilitator's API key, see [Official Facilitator](./OfficialFacilitator.md).
-
-### 3. Validate the configuration
-
-```bash
-docker run --rm --env-file .env \
- -v "$PWD/providers:/app/providers:ro" \
- bankofai/x402-gateway:v1.0.5 \
- x402-gateway check --providers /app/providers
-```
-
-`check` validates YAML syntax, required fields, environment expansion, network IDs and endpoint shape. It does not call your upstream, the facilitator or the chain.
-
-### 4. Start the gateway
-
-```bash
-docker run -d --name x402-gateway --env-file .env \
- -p 4020:8080 \
- -v "$PWD/providers:/app/providers:ro" \
- bankofai/x402-gateway:v1.0.5
-```
-
-The image listens on `0.0.0.0:8080` inside the container. For production, pin the image by digest instead of tag, as the README recommends.
-
-### 5. Check health and the payment challenge
-
-```bash
-curl http://127.0.0.1:4020/__402/health
-curl -i http://127.0.0.1:4020/providers/example-provider/v1/ping
-```
-
-The `curl -i` request to the metered endpoint should return `402 Payment Required` with a `PAYMENT-REQUIRED` header. The provider path segment is the `name` field from the YAML. Once both checks pass and the public URL is reachable, continue with [List Your Service](../api-catalog/list-your-service.md).
-
-### Optional: sponsor the first TRON approval
-
-To let the facilitator sponsor a payer's first `approve(Permit2)`, add the `payment` setting to a metered TRON `exact` Permit2 endpoint. For example, replace the `/v1/ping` endpoint above with:
-
-```yaml
-endpoints:
- - method: GET
- path: /v1/ping
- payment:
- trc20_approval_resource_sponsoring: true
- metering:
- dimensions:
- - tiers:
- - price_usd: 0.002
-```
-
-This advertises `trc20ApprovalResourceSponsoring` in the 402 challenge. The client must also register `createTrc20ApprovalResourceSponsoringClientExtension(signer)`, and the facilitator must enable its sponsoring runtime; the gateway flag alone does not configure them. The flag requires a TRON `exact` Permit2 payment option and does not apply to EVM-only or GasFree-only endpoints. The official facilitator requires an API Key for Nile USDT sponsorship; see [Official Facilitator](/x402/core-concepts/OfficialFacilitator/).
-
-Ordinary payments use `X402_GATEWAY_FACILITATOR_TIMEOUT_MS`, defaulting to 10,000 milliseconds. Sponsored TRON Permit2 payments and GasFree payments use `X402_GATEWAY_RESOURCE_SPONSORING_TIMEOUT_MS` and `X402_GATEWAY_GASFREE_TIMEOUT_MS`, respectively; each defaults to the greater of 240,000 milliseconds and the ordinary timeout. These settings cover a single facilitator call and its complete response body; they do not extend the client's request upload timeout. The resource-sponsoring timeout applies only when the endpoint enables sponsorship and the payment carries the extension.
-
-### Payment failure responses
-
-After successful payment, the gateway returns the upstream response with the settlement result in `PAYMENT-RESPONSE`. In v1.0.5, a consumed Permit2 authorization is an explicit client rejection: when the facilitator returns `success: false`, the matching network, `errorReason: "permit2_nonce_consumed"`, and `transaction: ""`, the gateway returns **HTTP 400** without calling upstream:
-
-```json
-{"error":"payment authorization already used","code":"permit2_nonce_consumed"}
-```
-
-When the facilitator returns an HTTP success response but its settlement result is unsuccessful or its network does not match the selected requirement, the gateway returns **HTTP 502** unless it meets the consumed-authorization condition above:
-
-```json
-{"error":"settlement failed"}
-```
-
-Facilitator HTTP errors and timeouts use separate responses. If the facilitator returns HTTP 429 with a valid JSON response, the gateway returns **HTTP 429** and forwards `Retry-After` when present:
-
-```json
-{"error":"facilitator rate limited"}
-```
-
-If the facilitator request times out, including while reading its response body, the gateway returns **HTTP 504**:
-
-```json
-{"error":"facilitator request timed out"}
-```
-
-These failures during facilitator verification or settlement do not forward the request upstream or include `PAYMENT-RESPONSE`. Do not replay a consumed authorization. A settlement timeout does not prove that no payment occurred: the facilitator may still complete the transaction. For a timeout or an ambiguous settlement result, reconcile the original transaction and payment record before deciding whether to create another payment.
-
-### Upstream API failure after settlement
-
-The gateway calls the upstream API after settlement succeeds. If that call then fails to connect, times out, or fails the configured business-response validation, the gateway returns the corresponding error status (typically **502**, or **504** for an upstream timeout) with:
-
-```json
-{"error":"upstream failed after payment settlement","settled":true}
-```
-
-This response still includes the settlement receipt in `PAYMENT-RESPONSE`. Retain the receipt and transaction ID to resolve the delivery failure; do not automatically create another payment as if settlement had failed. If upstream simply returns an HTTP error without failing a configured business-response check, the gateway forwards its status and body while retaining `PAYMENT-RESPONSE`. An HTTP error status alone therefore does not establish whether payment settled.
-
-## Next steps
-
-- [List your API](../api-catalog/list-your-service.md) — submission flow, required info, and security red lines
-- [Browse the API Catalog](../api-catalog/index.md) — see what's already live
-- [API Catalog · Get Started](../api-catalog/get-started.md) — onboard from the caller's perspective
diff --git a/docs/x402/core-concepts/network-and-token-support.md b/docs/x402/core-concepts/network-and-token-support.md
index d5e2a7ac..0f83be99 100644
--- a/docs/x402/core-concepts/network-and-token-support.md
+++ b/docs/x402/core-concepts/network-and-token-support.md
@@ -23,7 +23,7 @@ Use the exported constants from `@bankofai/x402-tron` (`TRON_MAINNET`, `TRON_NIL
| **TRON Shasta** | `tron:2494104990` | `TRON_SHASTA` | TRON Shasta Testnet |
| **TRON Nile** | `tron:3448148188` | `TRON_NILE` | TRON Nile Testnet |
-> **TRON ID format**: since `@bankofai/x402-tron` 2.0.0 the SDK constants use decimal CAIP-2 references. The older hexadecimal forms (`tron:0x2b6653dc`, `tron:0xcd8690dc`, `tron:0x94a9059e`) are still accepted as input aliases and are normalized to the decimal form. The official facilitator reports the decimal identifiers in `/supported`; the API Catalog still lists the hexadecimal forms.
+> **TRON ID format**: since `@bankofai/x402-tron` 2.0.0 the SDK constants use decimal CAIP-2 references. The older hexadecimal forms (`tron:0x2b6653dc`, `tron:0xcd8690dc`, `tron:0x94a9059e`) are still accepted as input aliases and are normalized to the decimal form. The official facilitator reports the decimal identifiers in `/supported`.
---
@@ -46,7 +46,7 @@ Base uses canonical EIP-155 identifiers on the x402 wire:
| Network Name | Protocol ID | Description |
| :----------- | :---------- | :---------- |
-| **Base Mainnet** | `eip155:8453` | Production network; published by the API Catalog |
+| **Base Mainnet** | `eip155:8453` | Production network |
| **Base Sepolia** | `eip155:84532` | CLI/SDK test network |
Base Mainnet uses official USDC and the `exact` scheme with EIP-3009 authorization. The payer signs a `transferWithAuthorization` message off-chain; no Permit2 approval is required.
@@ -68,7 +68,7 @@ The protocol uses secure signing mechanisms to ensure tamper-resistant message a
| **BSC Mainnet** | **Mainnet** | **Production network** for real-value assets |
| **BSC Testnet** | **Testnet** | **Recommended testnet** for BSC development |
| **Base Mainnet** | **Mainnet** | **Production network** using official USDC |
-| **Base Sepolia** | **Testnet** | CLI/SDK testing; not published in the API Catalog |
+| **Base Sepolia** | **Testnet** | CLI/SDK testing |
---
diff --git a/docs/x402/faq.md b/docs/x402/faq.md
index ecb3fbf6..2632abba 100644
--- a/docs/x402/faq.md
+++ b/docs/x402/faq.md
@@ -173,11 +173,13 @@ The flow mirrors a human user:
Install the published packages in your TypeScript app and build against npm, for example:
```bash
-pnpm add @x402/core@2.29.0 @x402/fetch@2.29.0 @bankofai/x402-tron@2.1.1 @x402/evm@2.29.0 @bankofai/agent-wallet
+pnpm add @x402/core@2.29.0 @x402/fetch@2.29.0 @bankofai/x402-tron@2.1.2 @x402/evm@2.29.0 @bankofai/agent-wallet
pnpm add @x402/express@2.29.0
```
-Use the framework package that matches your server (`@x402/express`, `@x402/hono`, `@x402/fastify`, or `@x402/next`), at the same `2.29.0` as `@x402/core` — `@bankofai/x402-tron` 2.1.1 requires exactly `@x402/core@2.29.0`. Add `@bankofai/x402-tron-extensions@2.1.1` only if you use TRON resource sponsoring. The [`examples/typescript`](https://github.com/BofAI/x402/tree/main/examples/typescript) workspace is a runnable reference for client → server → facilitator flows, not a prerequisite for application development.
+Use the framework package that matches your server (`@x402/express`, `@x402/hono`, `@x402/fastify`, or `@x402/next`), at the same `2.29.0` as `@x402/core` — `@bankofai/x402-tron` 2.1.2 requires exactly `@x402/core@2.29.0`. Add `@bankofai/x402-tron-extensions@2.1.2` only if you use TRON resource sponsoring. The [`examples/typescript`](https://github.com/BofAI/x402/tree/main/examples/typescript) workspace is a runnable reference for client → server → facilitator flows, not a prerequisite for application development.
+
+For TronWeb HTTP dependency overrides in your own application, see [Dependency security](/x402/sdk-features/#dependency-security).
When upgrading an existing application, align all official `@x402/*` transports too. If you use `@x402/core/schemas`, migrate to Zod 4 and replace `error.errors` with `error.issues`; see the [SDK Feature Matrix](/x402/sdk-features/).
diff --git a/docs/x402/getting-started/quickstart-for-agent.md b/docs/x402/getting-started/quickstart-for-agent.md
index 06991611..48a2f7bc 100644
--- a/docs/x402/getting-started/quickstart-for-agent.md
+++ b/docs/x402/getting-started/quickstart-for-agent.md
@@ -9,15 +9,15 @@ Use **wallet-cli** for new payment integrations; do not install the standalone x
1. Follow the [Wallet CLI quick start](/wallet-cli/quickstart/), configure an account locally, and verify its address.
2. If using a Skill, follow the [Skills quick start](/McpServer-Skills/SKILLS/QuickStart/) and match its dependency version to the CLI.
-3. Discover an endpoint through the [API Catalog](/x402/api-catalog/get-started/), then preview it with `wallet-cli x402 pay --dry-run`.
+3. Obtain the x402 endpoint URL from the service provider, then preview it with `wallet-cli x402 pay --dry-run`.
4. Show the network, recipient, token, amount, and fees. Sign only within the user's authorization, using an approved secure password source.
5. Inspect structured results and retain the transaction hash. Submission or unconfirmed credit does not mean the entire operation completed.
Example agent request:
-> Use wallet-cli to inspect DIA's BTC quotation endpoint. Preview the TRON mainnet USDT payment with a 0.01 cap. Do not pay.
+> Use wallet-cli to inspect the local test endpoint `http://localhost:4021/credit`. Preview the TRON Nile (`tron:3448148188`) USDT payment using `--dry-run`, with a cap of 1 USDT. Do not sign or pay.
-Never print private keys or master passwords into chat, logs, or command arguments. Do not use `echo` to reveal a private key as a setup check. Use a testnet endpoint you control for test payments; production catalog services may support mainnet only.
+Never print private keys or master passwords into chat, logs, or command arguments. Do not use `echo` to reveal a private key as a setup check. Use a testnet endpoint you control for test payments; production services may support mainnet only.
On `paymentStatus: "unknown"` or `retryPayment: false`, reconcile the original transaction rather than allowing an automatic repeat payment.
diff --git a/docs/x402/getting-started/quickstart-for-human.md b/docs/x402/getting-started/quickstart-for-human.md
index aa66297c..dad3569e 100644
--- a/docs/x402/getting-started/quickstart-for-human.md
+++ b/docs/x402/getting-started/quickstart-for-human.md
@@ -99,11 +99,13 @@ x402 is a **TypeScript-only** SDK: the TRON mechanism ships as `@bankofai/x402-t
Install the published npm packages in your TypeScript application:
```bash
-pnpm add @bankofai/agent-wallet @x402/core@2.29.0 @x402/fetch@2.29.0 @bankofai/x402-tron@2.1.1
+pnpm add @bankofai/agent-wallet @x402/core@2.29.0 @x402/fetch@2.29.0 @bankofai/x402-tron@2.1.2
pnpm add -D tsx # to run the TypeScript entry point below
```
-Use `npm install` or `yarn add` with the same package names if your project does not use pnpm. Keep `@x402/core` and `@x402/fetch` at exactly `2.29.0` — `@bankofai/x402-tron` 2.1.1 declares `@x402/core@2.29.0` as an exact peer dependency.
+Use `npm install` or `yarn add` with the same package names if your project does not use pnpm. Keep `@x402/core` and `@x402/fetch` at exactly `2.29.0` — `@bankofai/x402-tron` 2.1.2 declares `@x402/core@2.29.0` as an exact peer dependency.
+
+For TronWeb HTTP dependency overrides in your own application, see [Dependency security](/x402/sdk-features/#dependency-security).
When upgrading an existing application, align all official `@x402/*` transports too. If you use `@x402/core/schemas`, migrate to Zod 4 and replace `error.errors` with `error.issues`; see the [SDK Feature Matrix](/x402/sdk-features/).
diff --git a/docs/x402/getting-started/quickstart-for-sellers.md b/docs/x402/getting-started/quickstart-for-sellers.md
index 4d40107b..99310c61 100644
--- a/docs/x402/getting-started/quickstart-for-sellers.md
+++ b/docs/x402/getting-started/quickstart-for-sellers.md
@@ -140,11 +140,13 @@ Deposit a small amount of official USDC on Base Mainnet. The resource server onl
Install official Core, the Express adapter and the TRON/EVM payment schemes in your TypeScript API project:
```bash
-pnpm add express @x402/core@2.29.0 @x402/express@2.29.0 @bankofai/x402-tron@2.1.1 @x402/evm@2.29.0
+pnpm add express @x402/core@2.29.0 @x402/express@2.29.0 @bankofai/x402-tron@2.1.2 @x402/evm@2.29.0
pnpm add -D tsx # to run the TypeScript entry point below
```
-Use the framework package that matches your server (`@x402/express`, `@x402/hono`, `@x402/fastify`, or `@x402/next`), at the same `2.29.0` as `@x402/core` — `@bankofai/x402-tron` 2.1.1 declares `@x402/core@2.29.0` as an exact peer dependency. Install `@x402/evm` only for BSC/Base routes. Use `npm install` or `yarn add` with the same package names if your project does not use pnpm.
+Use the framework package that matches your server (`@x402/express`, `@x402/hono`, `@x402/fastify`, or `@x402/next`), at the same `2.29.0` as `@x402/core` — `@bankofai/x402-tron` 2.1.2 declares `@x402/core@2.29.0` as an exact peer dependency. Install `@x402/evm` only for BSC/Base routes. Use `npm install` or `yarn add` with the same package names if your project does not use pnpm.
+
+For TronWeb HTTP dependency overrides in your own application, see [Dependency security](/x402/sdk-features/#dependency-security).
When upgrading an existing application, align all official `@x402/*` transports too. If you use `@x402/core/schemas`, migrate to Zod 4 and replace `error.errors` with `error.issues`; see the [SDK Feature Matrix](/x402/sdk-features/).
@@ -356,6 +358,8 @@ new HTTPFacilitatorClient({
});
```
+> **Key refreshes and retries:** Key creation and deletion take effect after the next successful Facilitator cache refresh (every 5 seconds in the built-in production configuration, independently per process). While the cache is fresh, unrecognized keys use anonymous access, so a successful call does not prove authentication. In v2.3.2, keyed verification and settlement requests receive `503 api_key_auth_unavailable` if the cache expires while refreshes are failing. Retain the authentication header and retry with backoff; see [authentication availability](../../core-concepts/facilitator#api-key-cache-and-authentication-availability).
+
> ⚠️ **Security reminder:** Your API Key is a service credential — **treat it like a password and never commit it to Git**.
> ✅ **Done!** The Official Facilitator is configured — **no local service to start**. Proceed directly to Step 5 to test.
diff --git a/docs/x402/sdk-features.md b/docs/x402/sdk-features.md
index a59386cb..38f97011 100644
--- a/docs/x402/sdk-features.md
+++ b/docs/x402/sdk-features.md
@@ -9,10 +9,26 @@ This page tracks the feature support of the x402 SDK.
> **SDK (TypeScript-only)**: x402 is a **TypeScript-only** SDK. It publishes the TRON mechanism and the TRON resource-sponsoring extension as the `@bankofai/x402-tron` and `@bankofai/x402-tron-extensions` npm packages and builds on the official x402 Foundation `@x402/*` packages for Core, EVM, the HTTP/MCP integrations and the generic extensions. The source is maintained in a pnpm/turbo monorepo, but applications should depend on the published packages. The previous-generation Python + TypeScript SDK archive (`legacy/`) was removed from the repository in 2.0.0, and the `typescript/packages/legacy/` compatibility packages in 2.1.0.
>
-> **Current release: 2.1.1** (2026-10-30). The payment call chain now runs on official `@x402/core` `2.29.0`, which `@bankofai/x402-tron` `2.1.1` declares as an exact peer dependency; use the matching official HTTP/MCP integration (`@x402/fetch`, `@x402/axios`, `@x402/express`, `@x402/fastify`, `@x402/hono`, `@x402/next` or `@x402/mcp`, all `2.29.0`). TRON resource sponsoring ships as the separate `@bankofai/x402-tron-extensions` `2.1.1`, which pins the exact mechanism version — upgrade the two TRON packages together. EVM uses official `@x402/evm` `2.29.0` and the generic extensions official `@x402/extensions` `2.29.0`; the local EVM package and `@bankofai/x402-extensions` were removed. `@bankofai/x402-core` and the `@bankofai/x402-*` HTTP/MCP adapters built on it are not interchangeable with the 2.1 mechanism — new TRON integrations use official Core and adapters. Upgrading from 2.0 is a source migration; see the [TRON 2.1 migration guide](https://github.com/BofAI/x402/blob/main/docs/migrations/tron-2.1.md). The SDK requires **Node.js 24.22.1+**; the runnable examples use `@bankofai/agent-wallet` **3.0+**.
+> **Current release: 2.1.2** (2026-11-10). The payment call chain now runs on official `@x402/core` `2.29.0`, which `@bankofai/x402-tron` `2.1.2` declares as an exact peer dependency; use the matching official HTTP/MCP integration (`@x402/fetch`, `@x402/axios`, `@x402/express`, `@x402/fastify`, `@x402/hono`, `@x402/next` or `@x402/mcp`, all `2.29.0`). TRON resource sponsoring ships as the separate `@bankofai/x402-tron-extensions` `2.1.2`, which pins the exact mechanism version — upgrade the two TRON packages together. EVM uses official `@x402/evm` `2.29.0` and the generic extensions official `@x402/extensions` `2.29.0`; the local EVM package and `@bankofai/x402-extensions` were removed. `@bankofai/x402-core` and the `@bankofai/x402-*` HTTP/MCP adapters built on it are not interchangeable with the 2.1 mechanism — new TRON integrations use official Core and adapters. Upgrading from 2.0 is a source migration; see the [TRON 2.1 migration guide](https://github.com/BofAI/x402/blob/main/docs/migrations/tron-2.1.md). The SDK requires **Node.js 24.22.1+**; the runnable examples use `@bankofai/agent-wallet` **3.0+**.
> **2.1.1 schema migration:** official Core now uses native **Zod 4.6.6+**. If your application composes schemas from `@x402/core/schemas`, use Zod 4 and read validation details from `error.issues`; the Zod 3 `error.errors` alias is removed. Payment-option arrays (`accepts`) are limited to **1,024 entries**, with oversized collections rejected before element validation. Upgrade the exact Core peer and matching transports together with both TRON packages.
+## Dependency security {#dependency-security}
+
+The SDK **2.1.2** repository lockfiles use **TronWeb 6.5.1** for both TRON packages and all 11 TypeScript examples. TronWeb 6.5.1 uses the same input snapshot for validation and execution in signing and contract calls. The official Core peer remains **2.29.0**.
+
+The published mechanism declares `tronweb: ^6.5.1`, so a fresh application install can resolve **6.5.2**. The resource extension still pins **6.5.1**, so both versions may be installed together.
+
+The SDK repository resolves TronWeb's Axios to **1.21.0** and follow-redirects to **1.16.2** through pnpm workspace overrides. **These overrides do not propagate to applications installing the npm packages.** Apply overrides in your own project, refresh its lockfile, and inspect the resolved dependency tree. The application example below covers TronWeb's `^6.5.1` range, including both 6.5.1 and 6.5.2. For pnpm, merge these entries into your root `pnpm-workspace.yaml`:
+
+```yaml
+overrides:
+ "tronweb@^6.5.1>axios": "1.21.0"
+ "axios@1.21.0>follow-redirects": "1.16.2"
+```
+
+For other package managers, use their root-project override mechanism. An upstream TronWeb release that includes the patched dependencies is another option after verifying SDK compatibility. See the [2.1.2 release notes](https://github.com/BofAI/x402/blob/main/RELEASE_NOTES.md).
+
---
## Packages
@@ -63,9 +79,9 @@ This page tracks the feature support of the x402 SDK.
| `eip155:8453` (Base Mainnet) | - | ✅ |
| `eip155:84532` (Base Sepolia) | - | ✅ (CLI/SDK testing) |
-> **TRON ID format**: since `@bankofai/x402-tron` 2.0.0 the SDK constants use decimal CAIP-2 references. The older hexadecimal forms (`tron:0x2b6653dc`, `tron:0xcd8690dc`, `tron:0x94a9059e`) are still accepted as input aliases and are normalized to the decimal form. The official facilitator reports the decimal identifiers in `/supported`; the API Catalog still lists the hexadecimal forms.
+> **TRON ID format**: since `@bankofai/x402-tron` 2.0.0 the SDK constants use decimal CAIP-2 references. The older hexadecimal forms (`tron:0x2b6653dc`, `tron:0xcd8690dc`, `tron:0x94a9059e`) are still accepted as input aliases and are normalized to the decimal form. The official facilitator reports the decimal identifiers in `/supported`.
-> EVM support comes from the official `@x402/evm` 2.29.0. Its default-asset registry covers Base, Base Sepolia, Ethereum, Polygon, Arbitrum One/Sepolia, Avalanche, Celo, Sei, MegaETH, Monad, Stable, XDC, Flare, Mezo, Radius, ADI, HPP, Igra and others — but **not BSC**. On BSC, price a route with an explicit `{ asset, amount, extra }` object (a `$` price fails with `No default asset configured for network eip155:56`), and clients must allowlist the asset in `spendControls.allowedAssets`. The public API Catalog publishes Base Mainnet routes only; Base Sepolia remains available for CLI/SDK testing.
+> EVM support comes from the official `@x402/evm` 2.29.0. Its default-asset registry covers Base, Base Sepolia, Ethereum, Polygon, Arbitrum One/Sepolia, Avalanche, Celo, Sei, MegaETH, Monad, Stable, XDC, Flare, Mezo, Radius, ADI, HPP, Igra and others — but **not BSC**. On BSC, price a route with an explicit `{ asset, amount, extra }` object (a `$` price fails with `No default asset configured for network eip155:56`), and clients must allowlist the asset in `spendControls.allowedAssets`. Base Sepolia remains available for CLI/SDK testing.
---
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 2f087e5e..6edf10af 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -1,6 +1,7 @@
import math from 'remark-math'
import katex from 'rehype-katex'
import { themes } from 'prism-react-renderer'
+import ssrTemplate from './scripts/ssr-template.mjs'
require('dotenv').config()
export default {
@@ -9,6 +10,7 @@ export default {
url: 'https://docs.bankofai.io',
baseUrl: '/',
trailingSlash: true,
+ ssrTemplate,
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-Hans'],
diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs-changelog/current/index.md b/i18n/zh-Hans/docusaurus-plugin-content-docs-changelog/current/index.md
index 5f4852f6..ecd81e21 100644
--- a/i18n/zh-Hans/docusaurus-plugin-content-docs-changelog/current/index.md
+++ b/i18n/zh-Hans/docusaurus-plugin-content-docs-changelog/current/index.md
@@ -8,14 +8,54 @@ description: 'BANK OF AI 各产品的更新与公告——全部产品,按时
BANK OF AI 各产品的更新与公告。
-
2026-11-05
+
2026-11-12
-### 文档 1.5.2:补充网关赞助配置与结算后失败处理
+### Wallet CLI 4.16.0 与 TronWeb 安装说明
-
DocsFix
+
Docsx402
-- 更新 x402 网关的资源赞助配置、专用超时与已结算后的交付失败说明;文档版本升级为 1.5.2。[详情](./x402/)
+- wallet-cli 指南同步已发布的 4.16.0,说明其精确依赖 TronWeb 6.5.1、GET 请求体限制及预览错误详情。wallet-cli Skill 继续使用自己的 CLI 版本锁定。[Wallet CLI 详情](./x402/)
+- 明确 8004 TypeScript SDK 1.2.1 的 TronWeb 范围(`^6.5.1`)、源码锁文件(6.5.1)与全新安装结果(6.5.2)的区别,并链接业务项目的 HTTP 依赖覆盖配置。[安装指南](/zh-Hans/8004/Usage/Install/)
+
+
+
+
+
+
2026-11-12
+
+
+### TRON MCP 源码 v1.1.10 与 v1.1.11:主网 RPC 配置与 TronWeb 6.5.2
+
+
DocsMCP
+
+- TRON MCP 文档同步至源码 v1.1.11:v1.1.10 引入按部署选择主网 RPC、恢复无 Key 时的默认节点,并限制 TronGrid 凭据转发;v1.1.11 将 TronWeb 升级为 6.5.2。npm `latest` 仍为 1.1.7。[详情](./mcp-server/)
+
+
+
+
+
+
2026-11-11
+
+
+### TRON MCP 源码 v1.1.9:部署与输入限制
+
+
DocsMCP
+
+- TRON MCP 文档同步源码 v1.1.9:依赖修复、主网 RPC 回退、HTTP/工具输入限制及 Docker 日志权限。npm `latest` 仍为 1.1.7,部署文档明确区分源码与发布包的行为。[详情](./mcp-server/)
+
+
+
+
+
+
2026-11-11
+
+
+### SDK 2.1.2 与 Facilitator 2.3.1
+
+
Docsx402
+
+- SDK 安装与依赖说明同步到 2.1.2,Facilitator 运行要求及 1Password Connect 部署说明同步到 2.3.1。[详情](./x402/)
@@ -24,11 +64,11 @@ BANK OF AI 各产品的更新与公告。
2026-11-04
-### x402 文档同步三个项目的新版本
+### x402 文档同步 SDK 与 Facilitator 新版本
Docsx402Fix
-- SDK 2.1.1 / 官方 Core 2.29.0 与 Zod 4 迁移、Facilitator 2.3.0 的 EVM nonce 恢复和运行要求、Gateway 1.0.5 部署及已使用 Permit2 授权的 HTTP 400 响应。[详情](./x402/)
+- SDK 2.1.1 / 官方 Core 2.29.0 与 Zod 4 迁移、Facilitator 2.3.0 的 EVM nonce 恢复和运行要求。[详情](./x402/)
@@ -54,7 +94,7 @@ BANK OF AI 各产品的更新与公告。
文档x402修复
-- 基于官方 `@x402/core` 2.28.0 的 2.1.0 版本组合(TRON 资源赞助使用 `@bankofai/x402-tron-extensions`)、十进制 TRON ID、官方 Facilitator 匿名调用 `/verify` 与 `/settle` 各每分钟 10 次的限流、Nile 资源赞助,以及 API Catalog 其余的 CI 规则。[详情](./x402/)
+- 基于官方 `@x402/core` 2.28.0 的 2.1.0 版本组合(TRON 资源赞助使用 `@bankofai/x402-tron-extensions`)、十进制 TRON ID、官方 Facilitator 匿名调用 `/verify` 与 `/settle` 各每分钟 10 次的限流、Nile 资源赞助。[详情](./x402/)