From a9733041431dc6f1c163e9cb7206c0e7484f3cce Mon Sep 17 00:00:00 2001
From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com>
Date: Fri, 31 Jul 2026 04:16:27 +0000
Subject: [PATCH] docs: sync recent English updates and translate new pages
into Simplified Chinese (first part)
---
.gitbook/cn/add-network-to-wallet.mdx | 566 ++++++++++++++++++++++++++
.gitbook/cn/developers-ai/ai-sdk.mdx | 165 ++++++++
.gitbook/cn/developers-ai/index.mdx | 146 ++++---
.gitbook/cn/faq.mdx | 76 +++-
.gitbook/docs.json | 2 +
5 files changed, 886 insertions(+), 69 deletions(-)
create mode 100644 .gitbook/cn/add-network-to-wallet.mdx
create mode 100644 .gitbook/cn/developers-ai/ai-sdk.mdx
diff --git a/.gitbook/cn/add-network-to-wallet.mdx b/.gitbook/cn/add-network-to-wallet.mdx
new file mode 100644
index 00000000..d9c607a5
--- /dev/null
+++ b/.gitbook/cn/add-network-to-wallet.mdx
@@ -0,0 +1,566 @@
+---
+title: 添加网络到钱包
+description: >-
+ 一键将 Injective 网络添加到浏览器钱包。为 Injective EVM(MetaMask 及其他 EVM 钱包)和
+ Injective 原生链(Keplr、Leap)提供交互式钱包按钮,涵盖主网与测试网。
+icon: wallet
+updatedAt: "2026-07-20"
+---
+
+一键将 Injective 添加到浏览器钱包,或使用下方的手动配置。Injective 提供两个可互操作的接口:
+
+- **Injective EVM** 是兼容以太坊的 JSON-RPC 层。可与 MetaMask、Rabby 或任何注入 `window.ethereum` 的 EVM 钱包配合使用。
+- **Injective(CosmWasm / 原生)** 是原生 Cosmos SDK 链。可与 Keplr、Leap 等 Cosmos 钱包配合使用。
+
+
+Injective EVM 与 Injective 原生链映射到同一个网络。它们使用不同的 chain ID,但共享底层状态。完整参考请参见
+[Network Information](/developers/network-information) 与
+[EVM Network Information](/developers-evm/network-information)。
+
+
+## Injective EVM
+
+Injective EVM 可与 MetaMask、Rabby、SubWallet 等 EVM 钱包配合使用。选择一个网络并点击钱包按钮 — 钱包会提示你添加或切换到 Injective。
+
+
+
+ Injective EVM 主网
+ Chain ID 1776
+
+
+
+
+
+
+
+
+
+ Injective EVM 测试网
+ Chain ID 1439
+
+
+
+
+
+
+
+
+按钮使用标准的 `wallet_addEthereumChain` 请求。如果网络已添加,钱包会显示切换提示。如果没有反应,请使用下方的值手动添加。
+
+
+### 手动配置
+
+
+
+
+
+| 属性 | 值 |
+| --- | --- |
+| 网络名称 | Injective |
+| Chain ID | `1776` |
+| RPC URL | `https://sentry.evm-rpc.injective.network/` |
+| WS 端点 | `wss://sentry.evm-ws.injective.network` |
+| 货币符号 | `INJ` |
+| 精度 | `18` |
+| 区块浏览器 | `https://blockscout.injective.network/` |
+
+
+
+
+
+| 属性 | 值 |
+| --- | --- |
+| 网络名称 | Injective Testnet |
+| Chain ID | `1439` |
+| RPC URL | `https://k8s.testnet.json-rpc.injective.network/` |
+| WS 端点 | `wss://k8s.testnet.ws.injective.network/` |
+| 货币符号 | `INJ` |
+| 精度 | `18` |
+| 区块浏览器 | `https://testnet.blockscout.injective.network/` |
+| 水龙头 | [`testnet.faucet.injective.network`](https://testnet.faucet.injective.network/) |
+
+
+
+
+
+## Injective(CosmWasm / 原生)
+
+Injective 原生链可与 Keplr、Leap 等 Cosmos 钱包配合使用。Injective 已内置于这两个钱包中,因此开箱即用。选择一个网络并点击钱包按钮以解锁该链。
+
+
+
+ Injective 主网
+ Chain ID injective-1
+
+
+
+
+
+
+
+
+
+ Injective 测试网
+ Chain ID injective-888
+
+
+
+
+
+
+
+
+Keplr 和 Leap 默认包含 Injective,因此按钮只是解锁钱包中的该链。完整的钱包接入指南请参见
+[钱包](/cn/defi/wallet/index)。
+
+
+### 手动配置
+
+
+
+
+
+| 属性 | 值 |
+| --- | --- |
+| Chain ID | `injective-1` |
+| RPC / 节点 | `https://sentry.tm.injective.network:443` |
+| 货币符号 | `INJ` |
+| 精度 | `18` |
+| 浏览器 | [`injscan.com`](https://injscan.com/) |
+
+
+Injective 原生链使用 chain ID `injective-1`。它的 EVM 接口使用数字型 chain ID `1776`。两者映射到同一个主网。
+
+
+
+
+
+
+| 属性 | 值 |
+| --- | --- |
+| Chain ID | `injective-888` |
+| RPC / 节点 | `https://testnet.sentry.tm.injective.network:443` |
+| 货币符号 | `INJ` |
+| 精度 | `18` |
+| 浏览器 | [`testnet.explorer.injective.network`](https://testnet.explorer.injective.network/) |
+| 水龙头 | [`testnet.faucet.injective.network`](https://testnet.faucet.injective.network/) |
+
+
+Injective 原生链在测试网上使用 chain ID `injective-888`。它的 EVM 接口使用数字型 chain ID `1439`。两者映射到同一个测试网。
+
+
+
+
+
diff --git a/.gitbook/cn/developers-ai/ai-sdk.mdx b/.gitbook/cn/developers-ai/ai-sdk.mdx
new file mode 100644
index 00000000..912d518a
--- /dev/null
+++ b/.gitbook/cn/developers-ai/ai-sdk.mdx
@@ -0,0 +1,165 @@
+---
+title: AI SDK
+description: >-
+ 安装 Injective AI SDK,一次性获取 Injective CLI、MCP 服务器与 agent skills。
+updatedAt: "2026-07-01"
+---
+
+在 Injective 上使用 AI 进行开发通常需要拼装多个部分:
+命令行工具(CLI)、
+一个或多个 Model Context Protocol(MCP)服务器,以及
+面向 Codex、Claude Code 等 harness 的 agent skills。
+`@injectivelabs/ainj` 将这些组件打包为一次安装,
+让你一次配置完成,更快地开始构建。
+
+在本教程中,你将:
+
+- 安装 AInj
+ - 通过 `npm` 全局安装
+ - 使用 `ainj install` 配置 AInj 与你偏好的 harness
+ - 使用 `ainj status` 与 `ainj skills` 验证安装
+- 运行一条 Injective CLI 命令
+- 调用一个 Injective agent skill
+- 同时运行两个 Injective MCP 服务器
+
+## 前置条件
+
+| 工具 | 最低版本 | 检查命令 | 安装链接 |
+| --- | --- | --- | --- |
+| Node.js | `24.0.0` | `node --version` | [Node.js](https://nodejs.org/en/download) |
+| npm | `11.0.0` | `npm --version` | [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) |
+| Git | `2.53.0` | `git --version` | [Git](https://git-scm.com/downloads) |
+| Codex | `0.139.0` | `codex --version` | [Codex](https://platform.openai.com/docs/codex) |
+| Claude Code | `2.1.81` | `claude --version` | [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) |
+
+Codex 和 Claude Code 只需其中一个 harness 即可。
+
+你还需要:
+
+- 一个具备安装全局 `npm` 包权限的终端会话
+- 一个本地项目或工作目录,让 harness 可以读取配置文件
+
+## 快速开始
+
+使用 `npm` 全局安装 Injective AI SDK:
+
+```shell
+npm install -g @injectivelabs/ainj
+```
+
+## `ainj install` 会配置什么?
+
+`ainj install` 会写入 AInj 状态,为所支持的 harness 配置 MCP 条目,
+并安装内置的 skills,让你的 AI 工具无需手动接线即可使用 Injective 相关的提示词与传输方式。
+
+在实际操作中,安装流程做了三件有用的事:
+
+1. 保存 AInj 状态,包括 scope、端口、默认 harness。
+2. 为你的 harness 配置添加 stdio 与 HTTP 传输的 MCP 条目。
+3. 安装 agent skills,使 harness 可以调用它们。
+
+
+你必须运行一次 `ainj install`。
+它包含交互式提示,用于配置安装。
+
+
+## 安装与配置 AInj
+
+1. 在终端中运行 `ainj install`。
+2. 在安装向导中选择相应选项
+ - 选择 `global`(推荐)。
+ - 除非你希望配置仅在当前目录生效。
+ - 保留 MCP 服务器的默认端口 `3001` 与 `3002`(或选择其他端口)。
+ - 选择你希望 AInj 配置的 harness,例如 `Codex` 或 `Claude Code`。
+ - 选择你希望安装的 agent skills。
+
+命令完成时,你应能在终端看到 `AInj configured`。
+
+## 检查 AInj 安装
+
+1. 运行 `ainj status`。
+2. 查看已安装的版本、已配置的 scope、所选端口、默认 harness,以及 agent skills。
+3. 确认这些值都符合预期
+ - 如果有任何项不正确,只需重新运行 `ainj install`。
+
+
+注意,`ainj status` 只显示可用 agent skills 的数量。
+要查看完整的可用 skills 列表,请运行 `ainj skills`。
+
+
+## 运行 Injective CLI 命令
+
+1. 运行 `ainj cli version`,确认 AInj 能定位到内置的 `injectived` 可执行文件。
+2. 如果想在使用链相关命令之前查看 CLI 命令列表,运行 `ainj cli --help`。
+
+你应该会看到内置 Injective CLI 的版本输出,
+这表明可执行文件已安装并可通过 AInj 调用。
+
+
+注意,`ainj injectived` 是 `ainj cli` 的别名。
+
+
+## 通过 harness 运行一个 Injective agent skill
+
+1. 启动你偏好的 harness(例如 Codex 或 Claude Code)。
+2. 输入一个引用先前已安装 agent skill 的提示词
+ - 例如,如果你想在 Injective 上构建智能合约或 dApp:
+ - 在 Codex 中使用 `$injective-evm-developer (… 你的智能合约 / dApp 思路)`
+ - 在 Claude Code 中使用 `/injective-evm-developer (… 你的智能合约 / dApp 思路)`
+3. 之后 agent skill 会被加载到上下文窗口中,
+ 你就可以与之交互。
+
+
+注意,harness 应该会为 skill 名称提供 Tab 补全,
+即当你输入 `$inj`(Codex)或 `/inj`(Claude Code)时,应有若干 Injective 相关的
+agent skills 供你选择。
+
+如果这样做后没有出现名称匹配的 skills,
+很可能是你还没有安装它们。
+重新运行 `ainj install` 以重新安装 agent skills。
+
+
+## 启动文档 MCP 服务器
+
+1. 在一个专门的终端窗口中运行 `ainj mcp docs http`。
+ - 服务器运行期间保持该终端打开。
+2. 将 MCP 客户端连接到 `http://localhost:3002/mcp`。
+ - 如果你配置了非默认端口,请相应修改端口号。
+3. 发起一些 MCP 工具调用。
+
+
+或者,如果你还没有 MCP 客户端,
+可以将一个 inspector 指向同一 URL,用来查看可用工具并手动发起工具调用。
+
+
+Injective 文档 MCP 服务器应持续运行,你的 MCP 客户端应能连接到它。
+
+## 启动主 Injective MCP 服务器
+
+1. 运行 `ainj mcp main http`。
+ - 打开另一个终端窗口,以便同时运行文档服务器(如果你希望两个 MCP 服务器同时运行)。
+ - 服务器运行期间保持该终端打开。
+2. 将 MCP 客户端连接到 `http://localhost:3001/mcp`
+ - 如果你配置了非默认端口,请相应修改端口号。
+3. 发起一些 MCP 工具调用
+
+## 下一步
+
+你已经完成 AInj 的安装、配置,并让它在涵盖 CLI、agent skills 与 MCP 服务器的多种工作流中运行。
+
+以下是你学到的内容:
+
+- 如何将 AInj 作为 Injective AI 开发的统一入口进行安装
+- 如何通过 `ainj install` 配置 harness 集成与 MCP 端口
+- 如何通过 `ainj status` 与 `ainj skills` 验证安装
+- 如何使用 CLI、agent skills 与两个 MCP 服务器
+
+从这里开始,继续阅读其他 AI 开发者文档:
+
+- [AI 开发者概览](/cn/developers-ai/)
+- [Injective 主 MCP 服务器](/cn/developers-ai/mcp)
+- [Injective 文档 MCP 服务器](/cn/developers-ai/documentation-mcp)
+- [Injective CLI agent skill](/cn/developers-ai/injective-cli-skill)
+- [Injective EVM Developer agent skill](/cn/developers-ai/injective-evm-developer-skill)
+- [Injective MCP Servers agent skill](/cn/developers-ai/injective-mcp-servers-skill)
+- [Injective Trading agent skills](/cn/developers-ai/injective-trading-skills)
diff --git a/.gitbook/cn/developers-ai/index.mdx b/.gitbook/cn/developers-ai/index.mdx
index 6484a21f..383beef0 100644
--- a/.gitbook/cn/developers-ai/index.mdx
+++ b/.gitbook/cn/developers-ai/index.mdx
@@ -1,99 +1,137 @@
---
-description: >-
- 使用生成式 AI 软件工程在 Injective 上构建应用。
title: AI 开发者
-updatedAt: "2026-03-07"
+description: >-
+ 如何在 Injective 上构建 AI 驱动的应用与 agent,包括生成式 AI 工具、MCP 服务器与 agent skills。
+updatedAt: "2026-07-01"
---
## 为什么要在 Injective 上使用生成式 AI 工具进行构建?
-使用生成式 AI 编程工具,你可以非常快速地构建应用程序,包括在 Injective 上。
-然而,快速构建但方向错误并不理想。
-你可以在这里找到 skills、agents、workflows 和 MCP 服务器,它们将帮助你进行高效的 AI 软件工程。
+使用生成式 AI 编程工具,你可以非常快速地构建应用,包括在 Injective 上。
+然而,方向错误地快速构建并不理想。
+你会在这里找到 skills、agents、workflows 和 MCP 服务器,它们将帮助你进行高效的 AI 软件工程。
+
+## 有哪些类型的生成式 AI 工具?
-## 有哪些类型的生成式 AI 工具可用?
+LLMs、LLM 提供商、MCP 服务器、agent skills、CLIs / SDKs / 函数 / 脚本,
+以及 AI 工程 IDEs / Harnesses / Orchestrators 都属于生成式 AI 工具的不同类型。
+你可以在 Injective 上使用其中所有类型。
- **LLMs** -
大型语言模型(LLMs)是驱动几乎所有生成式 AI 软件工程的基础层技术。
几乎所有 AI 开发工具都是 LLMs 的封装。
流行的包括 Claude Opus(Anthropic)、Gemini(Google)和 Kimi(Moonshot AI)。
- **LLM 提供商** -
- 中低端 LLMs 可以在零售/消费级硬件上运行。
- 然而,顶级 LLMs 需要远程访问。
- 你有 3 个主要选项:
- - **本地提供商** - 例如,使用 LM Studio 或 Ollama。
- - **模型开发者的远程提供商** - 例如,通过 Anthropic 订阅访问 Claude Opus。
- - **模型聚合器的远程提供商** - 例如,通过 OpenRouter 订阅访问 Claude Opus、Gemini 或 Kimi。
-- **Tools** -
- 这些可以是任何东西,从函数到脚本,再到命令行界面(CLIs),它们以一种让 LLMs 理解或可调用的方式打包。
+ 中低端 LLMs 可在零售 / 消费级硬件上运行。
+ 但顶级 LLMs 需要远程访问。
+ 你有 3 个主要选择:
+ - **本地提供商** —
+ 例如使用 LM Studio 或 Ollama。
+ - **来自模型开发方的远程提供商** —
+ 例如通过 Anthropic 订阅访问 Claude Opus。
+ - **来自模型聚合器的远程提供商** —
+ 例如通过 OpenRouter 订阅访问 Claude Opus、Gemini 或 Kimi。
+- **CLIs、SDKs、函数与脚本** -
+ 这些可以是任何以 LLMs 能理解或可调用的方式打包的函数、脚本或命令行接口(CLIs)。
例如,如果你希望 LLM 访问实时信息,
即 LLM 训练时不可用的信息,
你需要让它能够调用用于网络搜索或其他数据 API 的工具。
+ 需要注意的是,即使这些工具没有专门为 LLMs 做适配,
+ 也可以通过 agent skills 提供一层轻量封装。
- **MCP** -
- Model-Context-Protocol(MCP)是一种专为 LLMs 发现和调用工具而设计的协议。
- 它们旨在标准化不同 LLMs 和 LLM 提供商调用工具的方式。
- 以前每个 LLM 或 LLM 提供商都有竞争性的标准/协议来做这件事。
-- **Skills、workflows、agents** -
- 这些是可选地引用支持资源、工具、MCP 服务器等的 markdown 文件。
- 它们专门设计用于与 AI 工程框架配合使用(但也可以在其他上下文中使用)。
+ Model Context Protocol(MCP)是为 LLMs 发现与调用工具而设计的协议。
+ 它旨在为不同的 LLMs 与 LLM 提供商调用工具的方式建立统一标准。
+ 此前,各家 LLM 与 LLM 提供商在这方面各自定义了互相竞争的标准 / 协议。
+- **Agent Skills** -
+ 这些是主要包含一段详细、可复用提示词的 markdown 文件。
+ 它们可以按需引用支持资源、工具、MCP 服务器等。
+ 它们专门为与 AI 工程 harness 配合使用而设计,
+ 但也可以用于其他场景。
它们可以是递归的,例如一个 skill 可以引用其他 skills。
- 同样,workflows 通常是一组具有定义顺序的 skills;
- 而 agents 是 workflows 和 skills 的集合。
- 注意 "agents" 这个术语被过度使用,有多种定义,因此上述内容不适用于其他上下文。
+ 有时它们也被称为 "workflows"、"subagents" 和 "agents"。
+ 在此上下文中,workflows 通常是一组具有既定顺序的 skills;
+ 而 agents / subagents 是一组没有固定顺序的 workflows 与 skills,
+ 由 LLM 自主决定使用哪些以及顺序。
+ 注意 "agents" 一词被过度使用,含义众多,
+ 上述定义仅适用于本上下文。
- **AI 工程 IDEs** -
- 这些是专用 IDE 或 IDE 内的插件,允许你提示 LLMs,
+ 这些是专用 IDE 或 IDE 内的插件,允许你向 LLMs 发送提示,
包括执行工具调用或 MCPs,
并使用其输出来处理 IDE 中打开的代码库。
流行的包括:Roo、Cline 和 Cursor。
-- **AI 工程框架** -
- 这些是命令行界面(CLIs)或终端用户界面(TUIs),围绕
- 调用 LLMs 进行编码任务而设计。
- 它们直接在文件系统上操作,通常带有内置的工程任务优化和实用程序。
- 这些往往比使用 AI 工程 IDEs 更强大,
- 因为当使用 skills、workflows 和 agents 时它们工作得最好。
+- **AI 工程 Harnesses** -
+ 这些是命令行界面(CLIs)或终端用户界面(TUIs),
+ 围绕调用 LLMs 完成编码任务而设计。
+ 它们直接在文件系统上运行,通常内置了针对工程任务的优化与实用工具。
+ 这些通常比使用 AI 工程 IDEs 更强大,
+ 因为它们在使用 skills、workflows 和 agents 时表现最佳。
流行的包括:Claude Code(Anthropic)、Codex(OpenAI)和 OpenCode(独立)。
-- **AI 工程编排器** -
- 这些工具充当框架的包装器。
- 它们的主要目的是启用长时间运行的循环或框架调用的并行化,
- 使得 LLMs 能够自主地处理更长、更复杂的任务
+- **AI 工程 Orchestrators** -
+ 这些工具充当 harness 的包装器。
+ 它们的主要目的是支持长时间运行的循环或对 harness 调用进行并行化,
+ 使 LLMs 能够自主处理更长、更复杂的任务,
而无需持续的人工监督。
流行的包括:Ralph、GSD。
## 在 Injective 上开发时哪些类型的生成式 AI 工具可以使用?
-LLMs、LLM 提供商、Tools、MCP、Skills、Workflows、Agents、AI 工程 IDEs、AI 工程框架、AI 工程编排器。
+LLMs、LLM 提供商、Tools、MCP、Skills、Workflows、Agents、AI 工程 IDEs、AI 工程 Harnesses、AI 工程 Orchestrators。
简而言之,所有这些都可以!
-事实上,这就是这个 **AI 开发者** 部分的意义所在!
+事实上,这就是本 **AI 开发者** 部分的意义所在!
-## Skills
+## AI SDK
-### Injective CLI
+Injective 让你可以轻松地使用 AI 进行开发。
+使用 [Injective AI SDK](/cn/developers-ai/ai-sdk/),
+它一次安装即可提供 agent skills、CLI 与 MCP 服务器。
-如何安装和使用 [Injective CLI skill](/cn/developers-ai/injective-cli-skill)。
+## Agent skills
-使用 `injectived` 二进制文件查询和交易 Injective 链,
-具有一致的钱包处理、端点选择和 gas 配置。
+### Injective CLI agent skill
-### Injective EVM Developer
+如何安装与使用 [Injective CLI skill](/cn/developers-ai/injective-cli-skill)。
-如何安装和使用 [Injective EVM Developer skill](/cn/developers-ai/injective-evm-developer-skill)。
+使用 `injectived` 可执行文件查询并向 Injective 链发送交易,
+具备一致的钱包处理、端点选择与 gas 配置。
+
+### Injective EVM developer agent skill
+
+如何安装与使用 [Injective EVM Developer skill](/cn/developers-ai/injective-evm-developer-skill)。
在 Injective 的 EVM 上构建时,
-你需要适用于 EVM 兼容网络的常规 EVM 开发者技能。
+你会需要适用于 EVM 兼容网络的通用 EVM 开发者技能。
你还需要一些 Injective EVM 的特定内容。
-这个 skill 增强了现有的 EVM 开发者技能,为你提供这些内容。
+这个 skill 在现有 EVM 开发者技能之上进行增强,为你提供这些内容。
+
+### Injective MCP servers agent skill
+
+如何安装与使用 [Injective MCP Servers skill](/cn/developers-ai/injective-mcp-servers-skill)。
+
+### Injective trading agent skills
+
+如何安装与使用 [Injective Trading skills](/cn/developers-ai/injective-trading-skills)。
+
+这是一组可以自由搭配使用的多种 skills,
+适用于多种交易场景:
+账户、自动签名、跨链桥、链上分析、行情数据、质押与代币。
## MCP 服务器
-### Injective Documentation MCP
+### Injective 文档 MCP 服务器
-如何使用 [Injective documentation MCP 服务器](/cn/developers-ai/documentation-mcp)
+如何使用 [Injective 文档 MCP 服务器](/cn/developers-ai/documentation-mcp)
从本文档站点获取最新信息。
-如果你向任何 LLM 询问有关 Injective 的问题,
-它可能会给你过时的信息,就像对任何快速发展的技术一样。
-这是因为它们的信息来自其训练数据,
-根据定义,这些数据是"时间冻结的"。
-通过将此 MCP 添加到你的 AI 开发工作流程中,
+如果你向任何 LLM 询问 Injective 相关问题,
+它可能会给出过时信息,就像对任何快速发展的技术一样。
+这是因为它的信息来自其训练数据,
+根据定义这些数据是"时间冻结的"。
+通过将该 MCP 加入你的 AI 开发工作流,
你不仅可以获得关于在 Injective 上开发的最新信息,
-你还将以本文档站点 URL 的形式获得该信息的引用。
+还能以本文档站点 URL 的形式获得这些信息的引用。
+
+### Injective MCP 服务器
+
+如何使用 [Injective MCP 服务器](/cn/developers-ai/mcp)
+让 AI 工具具备在 Injective 上进行交易的完整能力。
+包括永续合约、现货转账、跨链桥接与原生 EVM 交易。
diff --git a/.gitbook/cn/faq.mdx b/.gitbook/cn/faq.mdx
index 4021af76..fc7d99de 100644
--- a/.gitbook/cn/faq.mdx
+++ b/.gitbook/cn/faq.mdx
@@ -1,45 +1,91 @@
---
title: Injective 常见问题
icon: question
-updatedAt: "2026-02-13"
+updatedAt: "2026-07-02"
---
## 基础知识
-问:Injective 支持哪些账户地址类型?
+**问**:Injective 支持哪些账户地址类型?
-答:支持 2 种地址类型:
-- Bech32 (`inj...`),主要用于通过 Cosmos 钱包/工具进行交互
-- Hexadecimal (`0x...`),主要用于通过 EVM 钱包/工具进行交互
+**答**:支持 2 种地址类型:
+- Bech32 (`inj...`),主要用于通过 Cosmos 钱包 / 工具进行交互
+- Hexadecimal (`0x...`),主要用于通过 EVM 钱包 / 工具进行交互
+
+**问**:如何将 *hex* 地址转换为 *bech32* 地址?
+
+**答**:可以使用 Injective TS SDK 中的 `getInjectiveAddress` 与 `getEthereumAddress`,
+在 `inj1...` 与 `0x...` 之间进行双向转换。
+[如何在 Injective 上进行 hex 与 bech32 地址之间的转换](https://docs.injective.network/developers/convert-addresses)。
+
+Injective 地址使用 *bech32* 格式:`inj1...`。
+它们与使用 *hex* 格式(`0x...`)的 EVM 地址兼容。
+两者共享同一底层公钥,可一对一确定性地相互转换。
----
-问:有没有办法查找 Injective Cosmos 地址与 Injective EVM 地址之间的映射关系?
+**问**:有没有办法查找 Injective Cosmos 地址与 Injective EVM 地址之间的映射关系?
-答:这两种地址类型之间的映射是通过数学运算完成的,是一对一的双向映射。
+**答**:这两种地址类型之间的映射是通过一次一对一的双向数学运算完成的:
- 在线示例:[Injective Testnet Faucet](https://testnet.faucet.injective.network/)
-- 文档:[TS 代码示例](https://docs.injective.network/developers/convert-addresses)
+- 文档:[TypeScript (TS) 代码示例](https://docs.injective.network/developers/convert-addresses)
----
## 基础设施
-问:维护私有节点时:
+**问**:维护私有节点时:
-- 是否需要存储 2.5 Ti 的归档数据(event provider)?
+- 是否需要存储 2.5 TiB 的归档数据(event provider)?
- 可以跳过这部分并让 indexer 正常工作吗?
-答:Event provider 可以进行修剪。可以使用公共 event provider 端点进行初始同步,然后切换到本地部署,但只从最新高度开始。因此,可以跳过。
+**答**:Event provider 可以进行修剪。可以使用公共 event provider 端点进行初始同步,然后从最新高度开始切换到本地部署。是的,可以跳过。
+
+**问**:在 Injective 上应该使用哪个区块浏览器?
+
+**答**:需要完整 EVM 兼容性时使用 Blockscout,
+需要完整 Cosmos 兼容性时使用 Injscan。
+
+具体来说,如果你需要:
+- [EIP-3091](https://eips.ethereum.org/EIPS/eip-3091) 兼容的体验,或
+- 在 dApp 中使用 `wallet_addEthereumChain`(或类似方法),
+… 请使用 Blockscout。
+其他情况下 Blockscout 或 Injscan 都可以。
+
+- [Injective 主网 Blockscout](https://blockscout.injective.network/)
+- [Injective 测试网 Blockscout](https://testnet.blockscout.injective.network/)
+- [Injective 主网 Injscan](https://injscan.com/)
+- [Injective 测试网 Injscan](https://testnet.explorer.injective.network/)
----
## EVM
-问:Injective 是否部署了 [`multicall3`](https://www.multicall3.com/) 智能合约?
+**问**:Injective 是否部署了 [`multicall3`](https://www.multicall3.com/) 智能合约? {/* tachida2k */}
-答:是的。
+**答**:是的,部署在以下地址:
-- Injective Mainnet `multicall3`:[`0xcA11bde05977b3631167028862bE2a173976CA11`](https://blockscout.injective.network/address/0xcA11bde05977b3631167028862bE2a173976CA11?tab=contract)
-- Injective Testnet `multicall3`:[`0xcA11bde05977b3631167028862bE2a173976CA11`](https://testnet.blockscout.injective.network/address/0xcA11bde05977b3631167028862bE2a173976CA11?tab=contract)
+- Injective 主网 `multicall3`:[`0xcA11bde05977b3631167028862bE2a173976CA11`](https://blockscout.injective.network/address/0xcA11bde05977b3631167028862bE2a173976CA11?tab=contract)
+- Injective 测试网 `multicall3`:[`0xcA11bde05977b3631167028862bE2a173976CA11`](https://testnet.blockscout.injective.network/address/0xcA11bde05977b3631167028862bE2a173976CA11?tab=contract)
----
+
+## Injective 原生模块
+
+**问**:对于 exchange 模块上的交易,
+为什么有些事件日志会显示在交易上,而另一些却不会?
+
+**答**:要查看所有事件日志,你必须*同时*检查交易本身
+以及按 subaccount 过滤的所有 exchange 事件。
+这是因为当 Injective 在 exchange 模块上执行一笔交易
+(例如 `MsgBatchUpdateOrders`)时,该交易可能在下述两种上下文之一中完成结算:
+
+- 在直接的交易上下文中,
+ 此时事件日志会在*交易*层面发出。
+- 或在 frequent batch auction (FBA) 上下文中,
+ 此时事件日志会在*区块*层面发出。
+
+要了解 Injective exchange 模块中 FBA 的更多信息:
+
+- 术语表:[Frequent Batch Auction](https://docs.injective.network/glossary#frequent-batch-auction-fba)
+- Injective 原生模块 → Exchange → `EndBlocker`:[Order Matching: Frequent Batch Auction](https://docs.injective.network/developers-native/injective/exchange/08_end_block#order-matching-frequent-batch-auction-fba)
diff --git a/.gitbook/docs.json b/.gitbook/docs.json
index 929e4c04..53a51f48 100644
--- a/.gitbook/docs.json
+++ b/.gitbook/docs.json
@@ -746,6 +746,7 @@
"group": "INJECTIVE",
"pages": [
"cn/index",
+ "cn/add-network-to-wallet",
{
"group": "DeFi",
"icon": "coins",
@@ -891,6 +892,7 @@
"expanded": false,
"pages": [
"cn/developers-ai/index",
+ "cn/developers-ai/ai-sdk",
"cn/developers-ai/injective-cli-skill",
"cn/developers-ai/injective-evm-developer-skill",
"cn/developers-ai/injective-mcp-servers-skill",