helius-openapi-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHelius Wallet API Skill
Helius Wallet API Skill
Use this skill to run Helius Wallet API operations through + OpenAPI.
uxcReuse the skill for shared execution, auth, and error-handling guidance.
uxc使用该Skill通过 + OpenAPI执行Helius Wallet API操作。
uxc复用 Skill以获取共享的执行、认证和错误处理指引。
uxcPrerequisites
前提条件
- is installed and available in
uxc.PATH - Network access to .
https://api.helius.xyz - Access to the curated OpenAPI schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/helius-openapi-skill/references/helius-wallet.openapi.json
- A Helius API key.
- 已安装且可在
uxc中访问。PATH - 可访问的网络权限。
https://api.helius.xyz - 可访问精心整理的OpenAPI Schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/helius-openapi-skill/references/helius-wallet.openapi.json
- 一个Helius API密钥。
Scope
适用范围
This skill covers a read-first Helius Wallet API surface:
- wallet identity lookup
- batch identity lookup
- wallet balances
- wallet history
- wallet transfers
- wallet funding source lookup
This skill does not cover:
- Helius RPC, DAS, or WebSocket surfaces
- transaction submission
- webhook setup
- the broader Helius platform beyond the selected wallet intelligence endpoints
该Skill覆盖Helius Wallet API的只读优先接口:
- 钱包身份查询
- 批量身份查询
- 钱包余额查询
- 钱包历史记录查询
- 钱包转账记录查询
- 钱包资金来源查询
该Skill不覆盖以下内容:
- Helius RPC、DAS或WebSocket接口
- 交易提交
- Webhook设置
- 除所选钱包智能端点外的更广泛Helius平台功能
Authentication
认证
Helius accepts API keys by query parameter or header. This skill standardizes on header auth.
X-Api-KeyConfigure one API-key credential and bind it to :
api.helius.xyzbash
uxc auth credential set helius \
--auth-type api_key \
--api-key-header X-Api-Key \
--secret-env HELIUS_API_KEY
uxc auth binding add \
--id helius \
--host api.helius.xyz \
--scheme https \
--credential helius \
--priority 100Validate the active mapping when auth looks wrong:
bash
uxc auth binding match https://api.helius.xyzHelius支持通过查询参数或请求头传递API密钥。本Skill标准化使用请求头认证。
X-Api-Key配置一个API密钥凭证并绑定到:
api.helius.xyzbash
uxc auth credential set helius \
--auth-type api_key \
--api-key-header X-Api-Key \
--secret-env HELIUS_API_KEY
uxc auth binding add \
--id helius \
--host api.helius.xyz \
--scheme https \
--credential helius \
--priority 100当认证出现问题时,验证当前的映射关系:
bash
uxc auth binding match https://api.helius.xyzCore Workflow
核心工作流程
-
Use the fixed link command by default:
command -v helius-openapi-cli- If missing, create it:
bash
uxc link helius-openapi-cli https://api.helius.xyz \ --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/helius-openapi-skill/references/helius-wallet.openapi.json helius-openapi-cli -h
-
Inspect operation schema first:
helius-openapi-cli get:/v1/wallet/{wallet}/identity -hhelius-openapi-cli post:/v1/wallet/batch-identity -hhelius-openapi-cli get:/v1/wallet/{wallet}/balances -h
-
Prefer narrow validation before broader reads:
helius-openapi-cli get:/v1/wallet/{wallet}/identity wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664helius-openapi-cli get:/v1/wallet/{wallet}/funded-by wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664helius-openapi-cli get:/v1/wallet/{wallet}/balances wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664 page=1 limit=20 showNative=true
-
Execute with key/value parameters:
helius-openapi-cli post:/v1/wallet/batch-identity addresses:='["HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664"]'helius-openapi-cli get:/v1/wallet/{wallet}/history wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664 limit=20helius-openapi-cli get:/v1/wallet/{wallet}/transfers wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664 limit=20- For , keep shell quoting in mind. If your shell mangles that form, pass the JSON array as a bare positional payload instead.
addresses:='[...]'
-
默认使用固定链接命令:
command -v helius-openapi-cli- 如果不存在,创建该命令:
bash
uxc link helius-openapi-cli https://api.helius.xyz \ --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/helius-openapi-skill/references/helius-wallet.openapi.json helius-openapi-cli -h
-
先查看操作Schema:
helius-openapi-cli get:/v1/wallet/{wallet}/identity -hhelius-openapi-cli post:/v1/wallet/batch-identity -hhelius-openapi-cli get:/v1/wallet/{wallet}/balances -h
-
优先进行窄范围验证,再执行更广泛的读取操作:
helius-openapi-cli get:/v1/wallet/{wallet}/identity wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664helius-openapi-cli get:/v1/wallet/{wallet}/funded-by wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664helius-openapi-cli get:/v1/wallet/{wallet}/balances wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664 page=1 limit=20 showNative=true
-
使用键值参数执行操作:
helius-openapi-cli post:/v1/wallet/batch-identity addresses:='["HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664"]'helius-openapi-cli get:/v1/wallet/{wallet}/history wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664 limit=20helius-openapi-cli get:/v1/wallet/{wallet}/transfers wallet=HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664 limit=20- 对于,请注意shell的引号规则。如果你的shell破坏了该格式,可以将JSON数组作为裸位置负载传递。
addresses:='[...]'
Operation Groups
操作分组
Wallet Identity
钱包身份
get:/v1/wallet/{wallet}/identitypost:/v1/wallet/batch-identityget:/v1/wallet/{wallet}/funded-by
get:/v1/wallet/{wallet}/identitypost:/v1/wallet/batch-identityget:/v1/wallet/{wallet}/funded-by
Wallet Activity
钱包活动
get:/v1/wallet/{wallet}/balancesget:/v1/wallet/{wallet}/historyget:/v1/wallet/{wallet}/transfers
get:/v1/wallet/{wallet}/balancesget:/v1/wallet/{wallet}/historyget:/v1/wallet/{wallet}/transfers
Guardrails
防护规则
- Keep automation on the JSON output envelope; do not use .
--text - Parse stable fields first: ,
ok,kind,protocol,data.error - Treat this v1 skill as read-only. Do not imply RPC write methods, transaction sending, or webhooks.
- Helius labels the Wallet API as beta. Expect response shape drift and keep parsers focused on stable fields.
- Start with small values before paginating large histories or transfer crawls.
limit - Identity and funded-by lookups can return 404-style misses for unknown wallets; treat that as a data absence case before assuming auth failure.
- is equivalent to
helius-openapi-cli <operation> ....uxc https://api.helius.xyz --schema-url <helius_openapi_schema> <operation> ...
- 自动化操作基于JSON输出包,请勿使用参数。
--text - 优先解析稳定字段:、
ok、kind、protocol、data。error - 将此v1版本Skill视为只读工具。请勿尝试使用RPC写入方法、交易发送或Webhook相关功能。
- Helius将Wallet API标记为beta版本。响应格式可能会发生变化,请确保解析器专注于稳定字段。
- 在分页查询大量历史记录或转账数据前,先使用较小的值进行测试。
limit - 身份查询和资金来源查询可能会对未知钱包返回类似404的结果;请将此视为数据缺失情况,而非认证失败。
- 等同于
helius-openapi-cli <operation> ...。uxc https://api.helius.xyz --schema-url <helius_openapi_schema> <operation> ...
References
参考资料
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/helius-wallet.openapi.json - Helius authentication docs: https://www.helius.dev/docs/api-reference/authentication
- Helius Wallet API docs: https://www.helius.dev/docs/api-reference/wallet-api
- 使用模式:
references/usage-patterns.md - 精心整理的OpenAPI Schema:
references/helius-wallet.openapi.json - Helius认证文档:https://www.helius.dev/docs/api-reference/authentication
- Helius Wallet API文档:https://www.helius.dev/docs/api-reference/wallet-api