Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

hedera-tx-builder

bởi harleyscodes

AI & LLMs
464Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Build and sign Hedera transactions.

Mô tả

Kỹ năng này làm gì

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 Hashgraph SDK handles transaction serialization, fee calculation, and network submission so you don't have to construct raw gRPC calls manually.

Khi nào nên dùng

  • Sending HBAR between accounts programmatically
  • Associating a wallet with a new token before receiving it
  • Creating new Hedera accounts with an initial balance
  • Publishing messages to a Hedera Consensus Service topic
  • Calling smart contracts on Hedera mainnet or testnet

Quy trình ví dụ

ĐẦU VÀO

User asks: transfer 100 HBAR from account 0.0.111 to 0.0.222

AGENT
  1. 1

    Import TransferTransaction and Hbar from @hashgraph/sdk

  2. 2

    Initialize client for mainnet or testnet

  3. 3

    Build TransferTransaction with addHbarTransfer for sender (negative) and receiver (positive)

  4. 4

    Sign the transaction with the operator private key

  5. 5

    Execute the signed transaction and return the receipt

ĐẦU RA

Transaction submitted to Hedera network, receipt confirms successful HBAR transfer

Yêu cầu

  • Hedera account ID (format: shard.realm.num, e.g. 0.0.12345)
  • Hedera operator private key for signing transactions

Cài đặt

clawhub install harleyscodes/hedera-tx-builder

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết