Expand description
Hiero Rust SDK.
Modules§
- account_info_ flow 
- Flow for verifying signatures via account info.
Structs§
- AccountBalance 
- Response from AccountBalanceQuery.
- AccountId 
- A unique identifier for a cryptocurrency account on Hiero.
- AccountInfo 
- Response from AccountInfoQuery.
- AssessedCustom Fee 
- A custom transfer fee that was assessed during the handling of a CryptoTransfer.
- Client
- Managed client for use on the Hiero network.
- ContractCreate Flow 
- Create a new smart contract
- ContractFunction Parameters 
- Builder for encoding parameters for a Solidity contract constructor/function call.
- ContractFunction Result 
- The result returned by a call to a smart contract function.
- ContractId 
- A unique identifier for a smart contract on Hiero.
- ContractInfo 
- Current information on a smart contract instance.
- ContractLogInfo 
- The log information for an event returned by a smart contract function call. One function call may return several such events.
- ContractNonce Info 
- Info about a contract account’s nonce value. The nonce for a contract is only incremented when that contract creates another contract.
- CustomFee 
- A transfer fee to assess during a CryptoTransferthat transfers units of the token to which the fee is attached. A custom fee may be either fixed or fractional, and must specify a fee collector account to receive the assessed fees. Only positive fees may be assessed.
- CustomFeeLimit 
- A custom transfer fee that was assessed during the handling of a CryptoTransfer.
- CustomFixed Fee 
- A custom fee definition for a consensus topic.
- DelegateContract Id 
- A unique identifier for a smart contract on Hiero.
- Eip1559Ethereum Data 
- Data for an Eip 1559 ethereum transaction.
- EntityId 
- The ID of an entity on the Hiero network.
- EthereumFlow 
- Flow for executing ethereum transactions.
- EvmAddress
- An address as implemented in the Ethereum Virtual Machine.
- ExchangeRate 
- Denotes a conversion between Hbars and cents (USD).
- ExchangeRates 
- The current and next exchange rates between Hbarand USD-cents.
- FeeComponents
- The different components used for fee calculation.
- FeeData
- The total fees charged for a transaction, consisting of 3 parts: The node fee, the network fee, and the service fee.
- FeeSchedule
- The fee schedules for hedera functionality and the time at which this fee schedule will expire.
- FeeSchedules
- Contains the current and next FeeSchedules.
- FileContents Response 
- Response from FileContentsQuery.
- FileId
- The unique identifier for a file on Hiero.
- FileInfo 
- Response from FileInfoQuery.
- FixedFeeData 
- A fixed number of units (hbar or token) to assess as a fee during a CryptoTransferthat transfers units of the token to which this fixed fee is attached.
- FractionalFeeData 
- A fraction of the transferred units of a token to assess as a fee. The amount assessed will never
be less than the given minimum_amount, and never greater than the givenmaximum_amount. The denomination is always units of the token to which this fractional fee is attached.
- Hbar
- A quantity of hbar.
- KeyList
- A list of keys with an optional threshold.
- LedgerId 
- The ID of a Hiero Ledger.
- LegacyEthereum Data 
- Data for a legacy ethereum transaction.
- MirrorQuery 
- A query that can be executed on the Hiero mirror network.
- Mnemonic
- BIP-3924-word mnemonic phrase compatible with the Android and iOS mobile wallets.
- NetworkVersion Info 
- Versions of Hiero Services, and the protobuf schema.
- NftId
- The unique identifier for a token on Hiero.
- NodeAddress 
- The data about a node, including its service endpoints and the Hiero account to be paid for services provided by the node (that is, queries answered and transactions submitted.).
- NodeAddress Book 
- A list of nodes and their metadata.
- PendingAirdrop Id 
- A unique, composite, identifier for a pending airdrop.
- PendingAirdrop Record 
- A record of a new pending airdrop.
- PrivateKey 
- A private key on the Hiero network.
- ProxyStaker 
- Information about a single account that is proxy staking.
- PublicKey 
- A public key on the Hiero network.
- Query
- A query that can be executed on the Hiero network.
- RoyaltyFeeData 
- A fee to assess during a CryptoTransferthat changes ownership of an NFT. Defines the fraction of the fungible value exchanged for an NFT that the ledger should collect as a royalty. (“Fungible value” includes both ℏ and units of fungible HTS tokens.) When the NFT sender does not receive any fungible value, the ledger will assess the fallback fee, if present, to the new NFT owner. Royalty fees can only be added to tokens of type typeNON_FUNGIBLE_UNIQUE.
- ScheduleId 
- The unique identifier for a scheduled transaction on Hiero.
- ScheduleInfo 
- Response from ScheduleInfoQuery.
- SemanticVersion 
- Hiero follows semantic versioning for both the HAPI protobufs and the Services software.
- ServiceEndpoint 
- Contains the IP address, the port, and the domain name representing a service endpoint of a Node in a network. Used to reach the Hiero API and submit transactions to the network.
- StakingInfo 
- Info related to account/contract staking settings.
- TokenAssociation 
- A token <-> account association.
- TokenId
- The unique identifier for a token on Hiero.
- TokenInfo 
- Response from TokenInfoQuery.
- TokenNftInfo 
- Response from TokenNftInfoQuery.
- TokenNftTransfer 
- Represents a transfer of an NFT from one account to another.
- TokenReject Flow 
- Reject undesired token(s) and dissociate in a single flow.
- TopicId
- The unique identifier for a topic on Hiero.
- TopicInfo 
- Response from TopicInfoQuery.
- TopicMessage 
- Topic message records.
- Transaction
- A transaction that can be executed on the Hiero network.
- TransactionFeeSchedule 
- The fees for a specific transaction or query based on the fee data.
- TransactionHash 
- The client-generated SHA-384 hash of a transaction that was submitted.
- TransactionId 
- The client-generated ID for a transaction.
- TransactionReceipt 
- The summary of a transaction’s result so far, if the transaction has reached consensus.
Response from TransactionReceiptQuery.
- TransactionRecord 
- The complete record for a transaction on Hiero that has reached consensus.
Response from TransactionRecordQuery.
- TransactionResponse 
- Response from Transaction::execute.
- Transfer
- A transfer of Hbarthat occured within aTransaction
Enums§
- AnyMirrorQuery Response 
- Represents the response of any possible query to the mirror network.
- AnyQueryResponse 
- Common response type for all queries.
- Error
- Represents any possible error from a fallible function in the Hiero SDK.
- EthereumData 
- Data for an EthereumTransaction.
- Fee
- Represents the possible fee types.
- FeeAssessmentMethod 
- Enum for the fee assessment method.
- FeeDataType 
- Possible FeeDatasubtypes.
- FreezeType 
- What type of freeze should be executed?
- HbarUnit 
- Common units of hbar; for the most part they follow SI prefix conventions.
- Key
- Any method that can be used to authorize an operation on Hiero.
- MnemonicEntropy Error 
- Failed to convert a Mnemonicto aPrivateKey
- MnemonicParse Error 
- Failed to parse a mnemonic.
- RequestType 
- The functionality provided by Hiero.
- Status
- An enumeration of possible response codes.
Returned in TransactionReceipt,Error::PreCheckStatus, andError::ReceiptStatus.
- TokenKeyValidation 
- Types of validation strategies for token keys.
Defaults to FullValidation.
- TokenSupply Type 
- Possible token supply types.
Can be used to restrict supply to a set maximum.
Defaults to Infinite.
- TokenType 
- Possible token types.
Type Aliases§
- AccountAllowance Approve Transaction 
- Creates one or more hbar/token approved allowances relative to the owner account specified in the allowances of this transaction.
- AccountAllowance Delete Transaction 
- Deletes one or more non-fungible approved allowances from an owner’s account. This operation
will remove the allowances granted to one or more specific non-fungible token serial numbers. Each owner account
listed as wiping an allowance must sign the transaction. Hbar and fungible token allowances
can be removed by setting the amount to zero in
AccountAllowanceApproveTransaction.
- AccountBalance Query 
- Get the balance of a cryptocurrency account.
- AccountCreate Transaction 
- Create a new Hiero™ account.
- AccountDelete Transaction 
- Mark an account as deleted, moving all its current hbars to another account.
- AccountInfo Query 
- Get all the information about an account, including the balance.
- AccountRecords Query 
- Get all the records for an account for any transfers into it and out of it, that were above the threshold, during the last 25 hours.
- AccountUpdate Transaction 
- Change properties for the given account.
- AllProxyStakers 
- Response from [AccountStakersQuery][crate::AccountStakersQuery].
- AnyCustomFee 
- Any CustomFee.
- AnyMirrorQuery 
- Represents any possible query to the mirror network.
- AnyQuery
- Any possible query that may be executed on the Hiero network.
- AnyTransaction
- Any possible transaction that may be executed on the Hiero network.
- BatchTransaction 
- Execute multiple transactions in a single consensus event. This allows for atomic execution of multiple transactions, where they either all succeed or all fail together.
- ContractBytecode Query 
- Get the runtime bytecode for a smart contract instance.
- ContractCall Query 
- Call a function of the given smart contract instance. It will consume the entire given amount of gas.
- ContractCreate Transaction 
- Start a new smart contract instance.
- ContractDelete Transaction 
- Marks a contract as deleted and transfers its remaining hBars, if any, to a designated receiver.
- ContractExecute Transaction 
- Call a function of the given smart contract instance, giving it parameters as its inputs.
- ContractInfo Query 
- Get information about a smart contract instance.
- ContractUpdate Transaction 
- Updates the fields of a smart contract to the given values.
- EthereumTransaction 
- Submit an Ethereum transaction.
- FileAppend Transaction 
- Append the given contents to the end of the specified file.
- FileContents Query 
- Get the contents of a file.
- FileCreate Transaction 
- Create a new file, containing the given contents.
- FileDelete Transaction 
- Delete the given file.
- FileInfo Query 
- Get all the information about a file.
- FileUpdate Transaction 
- Modify the metadata and/or the contents of a file.
- FixedFee 
- A FixedCustomFee.
- FractionalFee 
- A fractional CustomFee.
- FreezeTransaction 
- Sets the freezing period in which the platform will stop creating events and accepting transactions.
- NetworkVersion Info Query 
- Get information about the versions of protobuf and hedera.
- NodeAddress Book Query 
- Query for an address book and return its nodes. The nodes are returned in ascending order by node ID.
- NodeCreate Transaction 
- A transaction body to add a new consensus node to the network address book.
- NodeDelete Transaction 
- A transaction body to delete a node from the network address book.
- NodeUpdate Transaction 
- Transaction body to modify address book node attributes.
- PrngTransaction 
- Random Number Generator Transaction.
- Result
- Result<T, Error>
- RoyaltyFee 
- A royalty CustomFee.
- ScheduleCreate Transaction 
- Create a new schedule entity (or simply, schedule) in the network’s action queue.
- ScheduleDelete Transaction 
- Marks a schedule in the network’s action queue as deleted. Must be signed by the admin key of the target schedule. A deleted schedule cannot receive any additional signing keys, nor will it be executed.
- ScheduleInfo Query 
- Get all the information about a schedule.
- ScheduleSign Transaction 
- Adds zero or more signing keys to a schedule.
- SystemDelete Transaction 
- Delete a file or smart contract - can only be done by a Hiero admin.
- SystemUndelete Transaction 
- Undelete a file or smart contract that was deleted by a SystemUndeleteTransaction.
- Tinybar
- Type alias for i64representingtinybar
- TokenAirdrop Transaction 
- Airdrop one or more tokens to one or more accounts.
- TokenAssociate Transaction 
- Associates the provided account with the provided tokens. Must be signed by the provided Account’s key.
- TokenBurn Transaction 
- Burns tokens from the Token’s treasury Account.
- TokenCancel Airdrop Transaction 
- Token cancel airdrop Remove one or more pending airdrops from state on behalf of the sender(s) for each airdrop.
- TokenClaim Airdrop Transaction 
- Token claim airdrop Complete one or more pending transfers on behalf of the recipient(s) for an airdrop.
- TokenCreate Transaction 
- Create a new token.
- TokenDelete Transaction 
- Marks a token as deleted, though it will remain in the ledger.
- TokenDissociate Transaction 
- Dissociates the provided account with the provided tokens. Must be signed by the provided Account’s key.
- TokenFeeSchedule Update Transaction 
- At consensus, updates a token type’s fee schedule to the given list of custom fees.
- TokenFreeze Transaction 
- Freezes transfers of the specified token for the account. Must be signed by the Token’s freezeKey.
- TokenGrant KycTransaction 
- Grants KYC to the account for the given token. Must be signed by the Token’s kycKey.
- TokenInfo Query 
- Gets information about Token instance.
- TokenMint Transaction 
- Mints tokens to the Token’s treasury Account.
- TokenNftInfo Query 
- Gets info on an NFT for a given TokenIDand serial number.
- TokenPause Transaction 
- Pauses the Token from being involved in any kind of Transaction until it is unpaused.
- TokenReject Transaction 
- Reject undesired token(s) Transfer one or more token balances held by the requesting account to the treasury for each token type. Each transfer SHALL be one of the following
- TokenRevoke KycTransaction 
- Revokes KYC from the account for the given token.
- TokenUnfreeze Transaction 
- Unfreezes transfers of the specified token for the account. Must be signed by the Token’s freezeKey.
- TokenUnpause Transaction 
- Unpauses the Token. Must be signed with the Token’s pause key.
- TokenUpdate Nfts Transaction 
- At consensus, updates an already created Non Fungible Token to the given values.
- TokenUpdate Transaction 
- At consensus, updates an already created token to the given values.
- TokenWipe Transaction 
- Wipes the provided amount of tokens from the specified Account. Must be signed by the Token’s Wipe key.
- TopicCreate Transaction 
- Create a topic to be used for consensus.
- TopicDelete Transaction 
- Delete a topic.
- TopicInfo Query 
- Retrieve the latest state of a topic.
- TopicMessage Query 
- Query a stream of Hiero Consensus Service (HCS) messages for an HCS Topic via a specific (possibly open-ended) time range.
- TopicMessage Submit Transaction 
- Submit a message for consensus.
- TopicUpdate Transaction 
- Change properties for the given topic.
- TransactionReceipt Query 
- Get the receipt of a transaction, given its transaction ID.
- TransactionRecord Query 
- Get the record of a transaction, given its transaction ID.
- TransferTransaction 
- Transfers cryptocurrency among two or more accounts by making the desired adjustments to their balances.