跳转到内容
本页面的翻译由 LLM 生成。如果你发现翻译有误,请在 GitHub 上提交 issue 告诉我们。

使用 AI 智能体在 Sai 上交易

先查询公开市场数据。连接钱包前即可配置 CLI 或 MCP。

将提示词复制给智能体,或运行使用 jq 的 CLI 命令。输出是记录下来的 Sai L1 响应。

Agent prompt
Get the BTC oracle price on Sai L1.
Use Sai MCP or the Sai CLI. Tell me
which network you queried. Keep the
task read-only.
Sai CLI
sai --json market prices | jq -c '
.oracle.tokenPricesUsd[]
| select(.token.symbol == "BTC")
| {symbol: .token.symbol, priceUsd}'
Observed output
{"symbol":"BTC","priceUsd":58865.36}

Open Sai GitHub 仓库提供 CLI 和 MCP 的源代码。下载及变更记录见 Open Sai 发布页面。