← 返回 Skills 市场
Hedera Transaction Builder
作者
HarleysCodes
· GitHub ↗
· v1.0.0
796
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hedera-tx-builder
功能描述
Build, sign, and submit Hedera transactions including HBAR transfers, token operations, and smart contract calls to the Hedera network.
使用说明 (SKILL.md)
Hedera Transaction Builder
Setup
npm install @hashgraph/sdk
Client Setup
import { Client, AccountBalanceQuery, Hbar } from '@hashgraph/sdk';
const client = Client.forMainnet();
// Or for testnet:
const client = Client.forTestnet();
Transfer HBAR
import { TransferTransaction, Hbar } from '@hashgraph/sdk';
const tx = new TransferTransaction()
.addHbarTransfer(fromAccountId, new Hbar(-100)) // send
.addHbarTransfer(toAccountId, new Hbar(100)) // receive
.setTransactionMemo("Payment for goods");
// Sign with hashpack or operator
const signTx = await tx.sign(operatorKey);
const result = await signTx.execute(client);
Key Transaction Types
AccountCreate
new AccountCreateTransaction()
.setKey(publicKey)
.setInitialBalance(new Hbar(10))
.setAccountMemo("My account");
TokenAssociate
new TokenAssociateTransaction()
.setAccountId(accountId)
.setTokenIds([tokenId1, tokenId2]);
TopicMessage
new TopicMessageTransaction()
.setTopicId(topicId)
.setMessage("Hello Hedera!");
Network Endpoints
- Mainnet:
https://mainnet.hashio.io/api - Testnet:
https://testnet.hashio.io/api
Important Concepts
- Hbar: 1 HBAR = 100,000,000 tinybars
- Account ID: Format
shard.realm.num(e.g.,0.0.12345) - Transaction Fee: Small HBAR fee for each transaction
- Transaction Valid Duration: 180 seconds by default
安全使用建议
This skill appears to be a helper for building Hedera transactions, but it doesn't tell you how to provide signing keys safely. Before installing or using it: (1) don't paste private keys into chat or into an agent — prefer connecting a wallet (e.g., HashPack) or setting keys in a secure environment variable/file on your machine; (2) run `npm install @hashgraph/sdk` yourself in a controlled environment and review the package/version you're installing; (3) verify the network endpoints and prefer official Hedera endpoints/documentation; (4) ask the skill author to declare required env vars (e.g., HEDERA_OPERATOR_ID, HEDERA_OPERATOR_KEY), provide secure key-handling instructions, and supply a homepage or source so you can audit code. If the skill is updated to explicitly declare required credentials and safe signing flows (wallet integration or clear operator setOperator guidance) and includes a source/homepage, the coherence concerns would be reduced.
功能分析
Type: OpenClaw Skill
Name: hedera-tx-builder
Version: 1.0.0
The skill is classified as suspicious due to its inherent high-risk capabilities, specifically the instruction to execute a shell command (`npm install @hashgraph/sdk`) in `SKILL.md`. While installing dependencies is often necessary, direct shell command execution by an AI agent presents a supply chain risk and broad permissions. Additionally, the skill's core functionality involves handling cryptographic keys for signing Hedera transactions, which is a highly sensitive operation that, if mishandled or exploited, could lead to unauthorized financial transactions.
能力评估
Purpose & Capability
The skill's stated purpose (build, sign, submit Hedera transactions) aligns with the SDK usage shown, but the registry metadata declares no required credentials or config while the instructions implicitly require access to a signing key (operatorKey or a wallet like HashPack). Requiring no credentials is not coherent with a transaction-signing tool.
Instruction Scope
SKILL.md instructs installing @hashgraph/sdk and shows code that signs transactions with an operator key or HashPack, but it does not specify how keys are loaded (env vars, key files, wallet flow). Because it omits safe key-handling guidance, users might be prompted to paste private keys or expose credentials to the agent — the instructions are incomplete and risk-prone.
Install Mechanism
There is no formal install spec in the skill bundle; SKILL.md tells the user to run `npm install @hashgraph/sdk`. Installing the official npm package is expected for this purpose, but the absence of an install specification in the registry (and no pinned version or integrity guidance) reduces clarity and reproducibility.
Credentials
The skill declares no required environment variables or primary credential even though signing and submitting transactions requires private keys or a wallet connection. This under-declaration is disproportionate and increases the chance of insecure key handling. The listed network endpoints are external but expected for Hedera.
Persistence & Privilege
The skill does not request always:true and does not ask to modify other skills or system-wide settings. It appears not to require persistent elevated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hedera-tx-builder - 安装完成后,直接呼叫该 Skill 的名称或使用
/hedera-tx-builder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Hedera Transaction Builder.
- Build and sign Hedera transactions, including HBAR transfers, token operations, and smart contract calls.
- Provides code examples for creating accounts, transferring HBAR, associating tokens, and sending topic messages.
- Lists important Hedera network concepts and endpoints for mainnet and testnet.
- Instructional setup using @hashgraph/sdk.
元数据
常见问题
Hedera Transaction Builder 是什么?
Build, sign, and submit Hedera transactions including HBAR transfers, token operations, and smart contract calls to the Hedera network. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 796 次。
如何安装 Hedera Transaction Builder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hedera-tx-builder」即可一键安装,无需额外配置。
Hedera Transaction Builder 是免费的吗?
是的,Hedera Transaction Builder 完全免费(开源免费),可自由下载、安装和使用。
Hedera Transaction Builder 支持哪些平台?
Hedera Transaction Builder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hedera Transaction Builder?
由 HarleysCodes(@harleyscodes)开发并维护,当前版本 v1.0.0。
推荐 Skills