Provides TypeScript patterns for building, signing, and submitting transactions on the Hedera network using the official Hashgraph SDK. Covers HBAR transfers, token association, account creation, and topic messaging.
SKILL.md
Hedera Transaction Builder
Setup
bash
npm install @hashgraph/sdk
Client Setup
typescript
import { Client, AccountBalanceQuery, Hbar } from '@hashgraph/sdk';
const client = Client.forMainnet();
// Or for testnet:
const client = Client.forTestnet();
Transfer HBAR
typescript
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
typescript
new AccountCreateTransaction()
.setKey(publicKey)
.setInitialBalance(new Hbar(10))
.setAccountMemo("My account");
TokenAssociate
typescript
new TokenAssociateTransaction()
.setAccountId(accountId)
.setTokenIds([tokenId1, tokenId2]);
TopicMessage
typescript
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
Run “clawhub install harleyscodes/hedera-tx-builder” in your terminal. The skill is added to your agent's skills directory and picked up automatically on the next run — no restart or extra configuration needed.
What does the Hedera Tx Builder skill do?
Provides TypeScript patterns for building, signing, and submitting transactions on the Hedera network using the official Hashgraph SDK. Covers HBAR transfers, token association, account creation, and topic messaging. The SKILL.md section on this page shows the exact instructions the skill gives your agent.
Is the Hedera Tx Builder skill free?
Yes. Hedera Tx Builder is a free, open-source skill by harleyscodes. As with any third-party skill, review the source repository before installing it into an agent with sensitive access.
Does Hedera Tx Builder work with Claude Code and OpenClaw?
Yes. Skills use the portable SKILL.md format, so Hedera Tx Builder works with Claude Code, OpenClaw, Codex, Hermes, and any other agent that reads SKILL.md skills.