hedera_flutter_sdk library
The first native Flutter/Dart SDK for the Hedera network.
Provides account management, HBAR transfers, Hedera Token Service (HTS), Hedera Consensus Service (HCS), Mirror Node REST client, and real-time WebSocket subscriptions.
Pure Dart; no platform channels required.
Example:
final client = HederaClient.forTestnet()
.setOperator(
AccountId.fromString('0.0.12345'),
PrivateKey.fromString('your-private-key'),
);
Classes
- AccountBalanceQuery
- Queries the HBAR balance of a Hedera account.
- AccountCreateTransaction
- Creates a new Hedera account.
- AccountDeleteTransaction
- Deletes an existing Hedera account.
- AccountId
- Represents a Hedera account identifier.
- AccountInfo
- Represents the full information of a Hedera account.
- AccountInfoQuery
- Queries the full information of a Hedera account.
- AccountUpdateTransaction
- Updates an existing Hedera account.
- CryptoTransferTransaction
- Transfers HBAR and/or Hedera Token Service (HTS) tokens between accounts.
- Hbar
- Represents an amount of HBAR; the native cryptocurrency of Hedera.
- HederaClient
- The main entry point for interacting with the Hedera network.
- HederaConstants
- Core constants for the Hedera Flutter SDK.
- HederaKey
- Anything that can serve as a Hedera account's authorization key.
- HederaKeyList
- A list of keys that ALL must sign (N-of-N) to authorize a transaction, unless used inside a HederaThresholdKey.
- HederaStatusCode
- Represents a Hedera network status code returned after executing a transaction or query.
- HederaThresholdKey
- A threshold key requiring at least threshold of keys to sign (M-of-N) to authorize a transaction.
- Mnemonic
- Represents a BIP-39 mnemonic phrase for wallet recovery.
- PrivateKey
- Represents a Hedera private key used for signing transactions.
- PublicKey
- Represents a Hedera public key derived from a PrivateKey.
-
Query<
R, T extends Query< R, T> > - Base class for all Hedera queries.
- TokenAssociateTransaction
- Associates an account with one or more Hedera Token Service (HTS) tokens.
- TokenDissociateTransaction
- Dissociates an account from one or more Hedera Token Service (HTS) tokens.
- TokenId
- Represents a Hedera token identifier in the format shard.realm.num.
-
Transaction<
T extends Transaction< T> > - Base class for all Hedera transactions.
- TransactionId
- Represents a unique Hedera transaction identifier.
- TransactionReceipt
- The receipt of a completed Hedera transaction.
- TransactionReceiptQuery
- Queries the receipt of a submitted Hedera transaction.
- TransactionRecord
- The full record of a completed Hedera transaction.
- TransactionRecordQuery
- Queries the full record of a completed Hedera transaction.
- TransactionResponse
- Response returned after submitting a transaction to Hedera.
Enums
- HederaNetwork
- Represents the available Hedera network environments.
- MnemonicLanguage
- The language used for BIP-39 mnemonic word lists.
- PrivateKeyType
- The cryptographic algorithm used for a key.
- PublicKeyType
- The cryptographic algorithm used for a public key.
Exceptions / Errors
- HederaStatusException
- Thrown when a Hedera transaction or query returns a non-successful status code.