Overview
- Skill Key
- harleyscodes/hedera-tx-builder
- Author
- harleyscodes
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/harleyscodes/hedera-tx-builder
- Latest Commit SHA
- 2b0e9fbe35e9fa1b5f8017b664e8071dabc51265
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Hedera Tx Builder 技能。 若已安装,则直接安装 Hedera Tx Builder 技能。
# 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
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Attio CRM integration for managing companies, people, deals, notes, tasks, and custom objects. Use when working with Attio CRM data, searching contacts, managing sales pipelines, adding notes to records, creating tasks, or syncing prospect information.
capt-marbles
Web scraping and crawling with Firecrawl API. Fetch webpage content as markdown, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs to scrape a URL, get current web info, capture a screenshot, extract specific data from pages, or crawl docs for a framework/library.
caqlayan
Tweet Processor Skill
carlosarturoleon
Connect to Windsor.ai MCP for natural language access to 325+ data sources including Facebook Ads, GA4, HubSpot, Shopify, and more.