Byreal DEX Analytics
Get Full Documentation
Always run these commands first to get complete, up-to-date documentation:
CODEBLOCK0
Installation
CODEBLOCK1
Check for Updates
CODEBLOCK2
If an update is available:
CODEBLOCK3
Credentials & Permissions
- - Most commands are read-only and require no wallet
- Write commands require wallet setup via
byreal-cli setup (interactive, handled by the CLI itself) - AI agents should never ask users to paste private keys in chat; always direct them to INLINECODE1
Hard Constraints
- 1.
-o json only for parsing — when showing results to the user, omit it and let the CLI's built-in tables/charts render directly. Never fetch JSON then re-draw charts yourself. - Never truncate on-chain data — always display the FULL string for: transaction signatures (txid), mint addresses, pool addresses, NFT addresses, wallet addresses. Never use
xxx...yyy abbreviation. - Preview first with
--dry-run, then INLINECODE5 - Large amounts (>$1000) require explicit confirmation
- High slippage (>200 bps) must warn user
Byreal DEX 分析
获取完整文档
始终先运行以下命令以获取完整、最新的文档:
bash
完整文档(命令、参数、工作流程、约束条件)
byreal-cli skill
结构化能力发现(所有能力及其参数)
byreal-cli catalog list
特定能力的详细参数信息
byreal-cli catalog show <能力ID>
安装
bash
检查是否已安装
which byreal-cli && byreal-cli --version
安装
npm install -g @byreal-io/byreal-cli
检查更新
bash
byreal-cli update check
如果有可用更新:
bash
byreal-cli update install
凭证与权限
- - 大多数命令为只读,无需钱包
- 写入命令需要通过 byreal-cli setup 设置钱包(交互式,由CLI自行处理)
- AI代理绝不应要求用户在聊天中粘贴私钥;始终引导用户使用 byreal-cli setup
硬性约束
- 1. -o json 仅用于解析 — 向用户展示结果时,省略该参数,让CLI内置的表格/图表直接渲染。切勿先获取JSON再自行重新绘制图表。
- 绝不截断链上数据 — 始终显示以下内容的完整字符串:交易签名(txid)、铸币地址、池地址、NFT地址、钱包地址。绝不使用 xxx...yyy 缩写。
- 先预览 使用 --dry-run,然后使用 --confirm
- 大额交易(>1000美元) 需要明确确认
- 高滑点(>200基点) 必须警告用户