--json 用于机器可读输出和 --api-key <key> / --network <net> 全局覆盖。详情请参见全局选项。
账户管理
创建 Helius 账户,生成密钥对,认证,升级计划,支付续费。| 命令 | 描述 |
|---|---|
helius keygen | 生成新的 Solana 密钥对 |
helius signup | 创建 Helius 账户(需要 --email、--first-name、--last-name;支持 --plan、--period、--coupon) |
helius login | 使用现有钱包认证 |
helius upgrade | 升级计划(需要 --email、--first-name、--last-name;支持 --plan、--period、--coupon) |
helius pay <id> | 支付现有支付意图(例如,续费) |
项目和 API Key 管理
列出项目,创建和管理 API Keys,检查信用使用情况,获取 RPC 端点。| 命令 | 描述 |
|---|---|
helius projects | 列出所有项目 |
helius project [id] | 获取项目详情 |
helius apikeys [project-id] | 列出项目的 API Keys |
helius apikeys create [project-id] | 创建新的 API Key |
helius usage [project-id] | 显示信用使用情况 |
helius rpc [project-id] | 显示 RPC 端点 |
配置
管理本地 CLI 配置——API Key、网络、默认项目和存储的凭据。| 命令 | 描述 |
|---|---|
helius config show | 显示当前配置(--reveal 显示完整 API Key) |
helius config set-api-key <key> | 设置 Helius API Key |
helius config set-network <net> | 设置网络(mainnet 或 devnet) |
helius config set-project <id> | 设置默认项目 ID |
helius config clear | 清除所有配置 |
余额与代币
查询本机SOL余额、可替代代币持有量和顶级代币持有者。| Command | Description |
|---|---|
helius balance <address> | 获取本机SOL余额 |
helius tokens <address> | 获取可替代代币余额(--limit) |
helius token-holders <mint> | 获取代币的顶级持有者(--limit) |
交易
将交易解析成人类可读格式,获取增强的历史记录,并估算优先费用。| Command | Description |
|---|---|
helius tx parse <signatures...> | 解析交易为人类可读格式 |
helius tx history <address> | 获取增强的交易历史(--limit, --before, --type) |
helius tx fees | 获取优先费用估算(--accounts) |
数字资产(DAS API)
使用数字资产标准API查询NFT、压缩NFT、可替代代币和代币账户。| Command | Description |
|---|---|
helius asset get <id> | 通过铸币地址获取资产详细信息 |
helius asset batch <ids...> | 获取多个资产 |
helius asset owner <address> | 按所有者获取资产(--page, --limit) |
helius asset creator <address> | 通过创建者获取资产(--verified) |
helius asset authority <address> | 通过更新授权获取资产 |
helius asset collection <address> | 获取集合中的资产 |
helius asset search | 使用过滤器进行搜索(--owner, --creator, --compressed, --burnt) |
helius asset proof <id> | 获取压缩NFT的Merkle证明 |
helius asset proof-batch <ids...> | 批量Merkle证明 |
helius asset editions <mint> | 获取NFT版本 |
helius asset signatures <id> | 获取资产的交易签名 |
helius asset token-accounts | 查询代币账户(--owner, --mint) |
钱包API
查找钱包身份,获取带有美元价值的资产组合余额,查看交易历史,追踪资金来源。| 命令 | 描述 |
|---|---|
helius wallet identity <address> | 查询谁拥有一个钱包 |
helius wallet identity-batch <addrs...> | 批量身份查询 |
helius wallet balances <address> | 获取所有代币余额并转换为美元值 (--show-nfts) |
helius wallet history <address> | 带有余额变化的交易历史记录 (--type, --limit) |
helius wallet transfers <address> | 带有发送方/接收方信息的代币转移 |
helius wallet funded-by <address> | 查找原始资金来源 |
Webhooks
创建、更新、列出和删除实时HTTP webhooks用于监控链上事件。| 命令 | 描述 |
|---|---|
helius webhook list | 列出所有webhooks |
helius webhook get <id> | 获取webhook详细信息 |
helius webhook create | 创建webhook (--url, --accounts, --types, --webhook-type) |
helius webhook update <id> | 更新webhook |
helius webhook delete <id> | 删除webhook |
事务发送
广播签名事务,通过Helius Sender发送以实现超低延迟,并估算计算单元。| 命令 | 描述 |
|---|---|
helius send broadcast <base64-tx> | 广播签名事务并轮询确认 |
helius send raw <base64-tx> | 发送原始事务 |
helius send sender <base64-tx> | 通过Helius Sender发送以实现超低延迟 (--region) |
helius send poll <signature> | 轮询事务状态直至确认 |
helius send compute-units <base64-tx> | 模拟并返回计算单元估算 |
WebSocket 订阅
通过WebSockets流式传输实时账户变动、事务日志、槽位更新和程序活动。| 命令 | 描述 |
|---|---|
helius ws account <address> | 流式账户变动通知 |
helius ws logs | 流式日志通知 (--mentions) |
helius ws slot | 流式槽位通知 |
helius ws signature <sig> | 流式签名确认 |
helius ws program <program-id> | 流式程序账户变动 |
程序账户
获取由 Solana 程序拥有的账户,支持可选过滤和自动分页。| Command | Description |
|---|---|
helius program accounts <program-id> | 获取由程序拥有的账户 (--data-size, --limit) |
helius program accounts-all <program-id> | 获取所有程序账户(自动分页) |
helius program token-accounts <owner> | 按所有者获取代币账户 |
质押
创建质押交易、解除质押、提款并检查 Helius 质押账户。| Command | Description |
|---|---|
helius stake create <amount> | 创建质押交易 (SOL) |
helius stake unstake <stake-account> | 解除质押 |
helius stake withdraw <stake-account> | 提取质押的 SOL |
helius stake accounts <wallet> | 列出 Helius 质押账户 |
helius stake withdrawable <stake-account> | 检查可提金额 |
helius stake instructions <amount> | 获取质押指令 |
helius stake unstake-instruction <account> | 获取解除质押指令 |
helius stake withdraw-instruction <account> | 获取提款指令 |
ZK 压缩
查询压缩账户、代币余额、Merkle 证明、有效性证明和压缩签名。| Command | Description |
|---|---|
helius zk account <addr-or-hash> | 获取压缩账户 |
helius zk accounts-by-owner <owner> | 按所有者获取压缩账户 |
helius zk balance <addr-or-hash> | 获取压缩余额 |
helius zk balance-by-owner <owner> | 按所有者获取压缩余额 |
helius zk token-holders <mint> | 获取压缩代币持有者 |
helius zk token-balance <account> | 获取压缩代币余额 |
helius zk token-accounts-by-owner <owner> | 按所有者获取压缩代币账户 |
helius zk token-accounts-by-delegate <delegate> | 按委托者获取压缩代币账户 |
helius zk token-balances-by-owner <owner> | 获取压缩代币余额 (V2) |
helius zk proof <addr-or-hash> | 获取压缩账户证明 |
helius zk proofs <addresses...> | 获取多个证明 |
helius zk multiple-accounts <addresses...> | 获取多个压缩账户 |
helius zk address-proofs <addresses...> | 获取新地址证明 (V2) |
helius zk signatures-account <account> | 压缩账户的签名 |
helius zk signatures-address <address> | 地址的签名 |
helius zk signatures-owner <owner> | 所有者的签名 |
helius zk signatures-token-owner <owner> | 代币所有者的签名 |
helius zk latest-signatures | 最新压缩签名 |
helius zk latest-non-voting | 最新非投票签名 |
helius zk tx <signature> | 带压缩信息的交易 |
helius zk validity-proof | 获取有效性证明 (--hashes, --addresses) |
helius zk indexer-health | 检查 ZK 索引器健康 |
helius zk indexer-slot | 获取 ZK 索引器槽位 |
helius zk signatures-for-asset <id> | 资产的压缩签名 |
帐户与网络
检查单个 Solana 帐户,查看网络状态,并获取区块详情。| Command | Description |
|---|---|
helius account <address> | 获取 Solana 帐户信息 |
helius network-status | 获取 Solana 网络状态 |
helius block <slot> | 按插槽号获取区块详情 |
Solana 改进文档
浏览和阅读定义对 Solana 协议更改的 SIMD 提案。| Command | Description |
|---|---|
helius simd list | 列出所有 SIMD 提案 |
helius simd get <number> | 按编号读取特定的 SIMD |