TopicUpdateTransaction
missing[get|set]ExpirationTime()
AccountUpdateTransaction
missingSetInitialBalance
andGetInitialBalance
v2.0.0
- Renamed
Ed25519PublicKey
→PublicKey
- Added
Verify([]byte, []byte) bool
- Verifies a message was signe by the respective private key.
- Added
VerifyTransaction(Transaction) bool
- Verifies the transaction was signed by the respective private key.
- Added
- Renamed
Ed25519PrivateKey
→PrivateKey
- Added
SignTransaction(Transaction) []byte
- Signs the
Transaction
and returns the signature.
- Signs the
- Added
- Removed
ThresholdKey
- Use
KeyListWithThreshold(uint) *KeyList
- Use
- Added
Key
- Added by
PublicKey
- Added by
PrivateKey
- Added by
KeyList
- Added by
ContractID
- Added by
KeyList
- Added
AddAllPublicKeys([]PublicKey) *KeyList
- Added
Mnemonic
- Added
ToLegacyPrivateKey() (PrivateKey, error)
- Added
GenerateMnemonic24() (Mnemonic, error)
- Added
GenerateMnemonic12() (Mnemonic, error)
- Removed
GenerateMnemonic() (Mnemonic, error)
- Use
GenerateMnemonic12()
orGenerateMnemonic24()
instead.
- Use
- Added
- Removed
MirrorClient
- Use
Client
instead, and set the mirror network usingSetMirrorNetwork()
- Use
- Renamed
MirrorSubscriptionHandle
→SubscriptionHandle
- Renamed
QueryBuilder
→Query
- Removed
SetPaymentTransaction()
- Added
GetNodeAccountIDs() []AccountID
- Added
SetNodeAccountIDs([]AccountID) *Query
- Added
GetMaxRetryCount() int
- Added
SetMaxRetry(int) *Query
- Removed
- Combined
TransactionBuilder
andTransaction
- Renamed
Build(null)
→Freeze() (Transaction, error)
- Renamed
Build(Client)
→FreezeWith(Client) (Transaction, error)
- Added
TransactionFromBytes([]byte) (interface{}, error)
- Added
ToBytes() []byte
- Renamed
ID()
→GetTransactionID()
- Added
GetMaxTransactionFee() Hbar
- Added
GetTransactionMemo() String
- Added
GetTransactionHashPerNode() (map[AccountID][]byte, error)
- Added
GetTransactionValidDuration() time.Duration
- Added
AddSignature(PublicKey, byte[]) Transaction
- Added
GetSignatures() (map[AccountID]map[*PublicKey][]byte, error)
- Added
GetNodeAccountIDs() []AccountID
- Removed
UnmarshalBinary([]byte) error
- Removed
MarshalBinary() ([]byte, error)
- Renamed
SetNodeAccountID(AccountID)
→SetNodeAccountIDs([]AccountID)
- Added
GetTransactionHash() ([]byte, error)
- Added
SetMaxRetry(int) *Transaction
- Added
GetMaxRetry() int
- Added
IsFrozen() bool
- Changed
Execute(Client) (TransactionID, error)
→Execute(Client) (TransactionResponse, error)
- Changed
Sign(Ed25519PrivateKey)
→Sign(PrivateKey)
- Changed
SignWith(Ed25519PublicKey)
→SignWith(PublicKey, TransactionSigner)
- Renamed
AccountBalanceQuery
extends (Query)- Changed
Execute(client *Client) (Hbar, error)
→Execute(*Client) (AccountBalance, error)
- Added
GetAccountID() AccountID
- Added
GetContractID() ContactID
- Changed
- Added
AccountBalance
- Added
Hbars Hbar
- Added
Token map[TokenID]uint64
- Added
AccountCreateTransaction
extends (Transaction)- Added
GetKey() (Key, error)
- Added
GetInitialBalance() Hbar
- Added
GetReceiverSignatureRequired() boolean
- Added
GetProxyAccountID() AccountID
- Added
GetAutoRenewPeriod() time.Duration
- Removed
SetSendRecordThreshold(Hbar)
- Removed
SetReceiveRecordThreshold(Hbar)
- Added
AccountDeleteTransaction
extends (Transaction)- Renamed
SetDeleteAccountID()
→SetAccountID()
- Added
GetAccountID() AccountID
- Added
GetTransferAccountID() AccountID
- Renamed
AccountID
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) AccountID
- Added
AccountInfo
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) AccountInfo
- Added
TokenRelationships: []*TokenRelationship
- Added
AccountInfoQuery
extends (Query)- Added
GetAccountID() AccountID
- Renamed
Cost(Client)
→GetCost(Client)
- Added
AccountRecordsQuery
extends (Query)- Added
GetAccountID() AccountID
- Added
AccountStakersQuery
extends (Query)- Added
GetAccountID() AccountID
- Added
AccountUpdateTransaction
extends (Transaction)- Added
GetAccountID() AccountID
- Added
GetKey() (Key, error)
- Added
GetInitialBalance() Hbar
- Added
GetReceiverSignatureRequired() boolean
- Added
GetProxyAccountID() AccountID
- Added
GetAutoRenewPeriod() time.Duration
- Added
GetExpirationTime() time.Time
- Removed
SetSendRecordThreshold(Hbar)
- Removed
SetReceiveRecordThreshold(Hbar)
- Added
- Removed
CryptoTransferTranscation
- Use
TransferTransaction
instead.
- Use
TransferTransaction
extends [Transaction
]- Added
AddTokenTransfer(TokenID, AccountID, int64) TransferTransaction
- Added
GetTokenTransfers() map[TokenID][]TokenTransfer
- Added
AddHbarTransfer(AccountID, Hbar) TransferTransaction
- Added
GetHbarTransfers() map[AccountID]Hbar
- Added
- Renamed
ContractBytecodeQuery
→ContractByteCodeQuery
extends (Query)- Added
GetContractID() ContractID
- Added
ContractCallQuery
extends (Query)- Added
GetContractID() ContractID
- Added
GetGas() uint64
- Added
GetFunctionParameters() []byte
- Added
SetFunctionParameters([]byte) *ContractCallQuery
- Added
ContractCreateTransaction
extends (Transaction)- Added
GetBytecodeFileID() FileID
- Added
GetAdminKey() (Key, error)
- Added
GetGas() uint64
- Added
GetInitialBalance() Hbar
- Added
GetAutoRenewDuration() time.Duration
- Added
GetProxyAccountID() AccountID
- Added
GetContractMemo() String
- Added
GetConstructorParameters() []byte
- Added
SetConstructorParametersRaw([]byte) *ContractCreateTransaction
- Removed
SetInitialBalance()
- Added
ContractDeleteTransaction
extends (Transaction)- Added
GetContractID() ContractID
- Added
GetTransferAccountID() AccountID
- Added
GetTransferContractID() ContractID
- Added
ContractExecuteTransaction
extends (Transaction)- Added
GetContractID() ContractID
- Added
GetGas() uint64
- Added
GetPayableAmount() Hbar
- Added
GetFunctionParameters() []byte
- Added
ContractID
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) ContractID
- Added
ContractInfo
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) ContractInfo
- Added
ContractInfoQuery
extends (Query)- Added
GetContractID() ContractID
- Added
- Removed
ContractRecordsQuery
ContractUpdateTransaction
extends (Transaction)- Added
GetContractID() ContractID
- Added
GetBytecodeFileID() FileID
- Added
GetAdminKey() (Key, error)
- Added
GetAutoRenewDuration() time.Duration
- Added
GetProxyAccountID() AccountID
- Added
GetContractMemo() String
- Added
GetExpirationTime() time.Time
- Added
FileAppendTransaction
- Added
GetFileID() FileID
- Added
GetContents() []byte
- Added
FileContentsQuery
- Added
GetFileID() FileID
- Added
FileCreateTransaction
- Added
GetContents() []byte
- Added
GetKeys() KeyList
- Added
GetExpirationTime() time.Time
- Renamed
AddKey(PublicKey)
→SetKeys(Key...)
- Added
FileDeleteTransaction
- Added
GetFileID() FileID
- Added
FileID
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) FileID
- Added
FileInfo
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) FileInfo
- Update
Keys []PublicKey
→Keys KeyList
- Added
FileInfoQuery
- Added
GetFileID() FileID
- Added
FileUpdateTransaction
- Added
GetFileID() FileID
- Added
GetContents() []byte
- Added
GetKeys() KeyList
- Added
GetExpirationTime() time.Time
- Renamed
AddKey(PublicKey)
→SetKeys(Key...)
- Added
- Removed
ConsensusTopicMessage
- Renamed
MirrorConsensusTopicResponse
→TopicMessage
- Added
TopicMessageChunk[] Chunks
- This will be non null for a topic message which is constructed from multiple transactions.
- Renamed
Message []byte
→Contents []byte
- Removed
GetMessage() []byte
- Removed
ConsensusTopicID TopicID
- Added
- Renamed
MirrorConsensusTopicChunk
→TopicMessageChunk
- Renamed
MirrorTopicMessageQuery
→TopicMessageQuery
- Change
Subscribe(MirrorClient, func(MirrorConsensusTopicResponse), func(error)) (MirrorSubscriptionHandle, error)
→Subscribe(*Client, func(TopicMessage)) (SubscriptionHandle, error)
- Change
- Renamed
ConsensusTopicCreateTransaction
→TopicCreateTransaction
- Added
GetTopicMemo() String
- Added
GetAdminKey() (Key, error)
- Added
GetSubmitKey() (Key, error)
- Added
GetAutoRenewDuration() time.Duration
- Added
GetAutoRenewAccountID() AccountID
- Added
- Renamed
ConsensusTopicDeleteTransaction
→TopicDeleteTransaction
- Added
GetTopicID() TopicID
- Added
- Renamed
ConsensusMessageSubmitTransaction
→TopicMessageSubmitTransaction
- Added
GetTopicID() TopicID
- Added
GetMessage() []byte
- Removed
SetChunkInfo(TransactionID, int, int)
- Added
GetMaxChunks() uint64
- Added
- Renamed
ConsensusTopicID
→TopicID
- Renamed
ConsensusTopicInfo
→TopicInfo
- Added
ToBytes() []byte
- Added
FromBytes() TopicInfo
- Change
AdminKey Ed25519PublicKey
andSubmitKey Ed25519PublicKey
→AdminKey Key
andSubmitKey Key
- Added
- Renamed
ConsensusTopicInfoQuery
→TopicInfoQuery
- Added
GetTopicID() TopicID
- Added
- Renamed
ConsensusTopicUpdateTransaction
→TopicUpdateTransaction
- Added
GetTopicID() TopicID
- Added
GetTopicMemo() String
- Added
GetAdminKey() (Key, error)
- Added
GetSubmitKey() (Key, error)
- Added
GetAutoRenewDuration() time.Duration
- Added
GetAutoRenewAccountID() AccountID
- Added
TokenAssociateTransaction
extends (Transaction)- Added
GetAccountID() AccountID
- Added
SetTokenIDs([]TokenID)
- Added
GetTokenIDs() []TokenID
- Added
- Removed
TokenBalanceQuery
- Use
AccountBalanceQuery
to fetch token balances sinceAccountBalance
containstokenBalances
.
- Use
TokenBurnTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAmount() uint64
- Added
TokenCreateTransaction
extends (Transaction)- Renamed
SetName(String)
→setTokenName(String)
- Added
GetTokenName() string
- Renamed
SetSymbol(String)
→setTokenSymbol(String)
- Added
GetTokenSymbol() string
- Renamed
SetTreasury(AccountID)
→setTreasuryAccountID(AccountID)
- Renamed
SetAutoRenewAccount(AccountID)
→setAutoRenewAccountID(AccountID)
- Added
GetAutoRenewAccountID() AccountID
- Added
GetTreasuryAccountID() AccountID
- Added
GetAdminKey() (Key, error)
- Added
GetKycKey() (Key, error)
- Added
GetSupplyKey() (Key, error)
- Added
GetWipeKey() (Key, error)
- Added
GetFreezeKey() (Key, error)
- Added
GetFreezeDefault() boolean
- Added
GetExpirationTime() time.Time
- Added
GetAutoRenewAccountID() AccountID
- Added
GetAutoRenewPeriod() time.Duration
- Added
GetDecimals() int
- Renamed
TokenDeleteTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
TokenDisassociateTransaction
extends (Transaction)- Added
GetAccountID() AccountID
- Added
GetTokenIDs() []TokenID
- Added
SetTokenIDs([]TokenID)
- Added
TokenFreezeTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAccointId() AccountID
- Added
TokenGrantKycTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAccointId() AccountID
- Added
TokenID
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) TokenID
- Added
TokenInfo
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) TokenInfo
- Added
TokenInfoQuery
extends (Query)- Added
GetTokenID() TokenID
- Added
TokenMintTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAmount() uint64
- Added
TokenRelationship
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) TokenRelationship
- Added
TokenRevokeKycTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAccointId() AccountID
- Added
- Removed
TokenTransferTransaction
- Use
TransferTransaction
instead.
- Use
TokenUnfreezeTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAccountId() AccountID
- Added
TokenUpdateTransaction
extends (Transaction)- Renamed
SetName(String)
→setTokenName(String)
- Added
GetTokenName() string
- Renamed
SetSymbol(String)
→setTokenSymbol(String)
- Added
GetTokenSymbol() string
- Renamed
SetTreasury(AccountID)
→setTreasuryAccountID(AccountID)
- Renamed
SetAutoRenewAccount(AccountID)
→setAutoRenewAccountID(AccountID)
- Added
GetAutoRenewAccountID() AccountID
- Added
GetTreasuryAccountID() AccountID
- Added
GetAdminKey() (Key, error)
- Added
GetKycKey() (Key, error)
- Added
GetSupplyKey() (Key, error)
- Added
GetWipeKey() (Key, error)
- Added
GetFreezeKey() (Key, error)
- Added
GetFreezeDefault() boolean
- Added
GetExpirationTime() time.Time
- Added
GetAutoRenewAccountID() AccountID
- Added
GetAutoRenewPeriod() time.Duration
- Added
GetDecimals() int
- Renamed
TokenWipeTransaction
extends (Transaction)- Added
GetTokenID() TokenID
- Added
GetAccountID() AccountID
- Added
FreezeTransaction
- Added
GetStartTime() time.Time
- Added
GetEndTime() time.Time
- Added
- Removed
HbarRangeException
- If
Hbar
is out of rangeHedera
will error instead.
- If
- Removed
HederaConstants
- No replacement.
- Removed
HederaNetworkException
- Renamed
HederaPrecheckStatusException
→PrecheckStatusException
- Renamed
HederaReceiptStatusException
→ReceiptStatusException
- Removed
HederaRecordStatusException
ReceiptStatusException
will be thrown instead.
- Removed
HederaStatusException
- A
PrecheckStatusException
orReceiptStatusException
will be thrown instead.
- A
- Removed
HederaThrowable
- No replacement.
- Removed
LocalValidationException
- No replacement. Local validation is no longer done.
SystemDeleteTransaction
- Added
GetFileID() FileID
- Added
GetContractID() ContractID
- Added
GetExpirationTime() time.Time
- Added
SystemUndeleteTransaction
- Added
GetFileID() FileID
- Added
GetContractID() ContractID
- Added
TransactionID
- Added
ToBytes() []byte
- Added
FromBytes(byte[]) TransactionID
- Removed
TransactionID(TransactionIDOrBuilder)
- Removed
WithValidStart(AccountID, time.Time) TransactionID
- Use
TransactionID(AccountID, time.Time) new
instead.
- Use
- Removed
TransactionID(AccountID)
- Use
Generate(AccountID) TransactionID
instead.
- Use
- Added
- Removed
TransactionList
TransactionReciept
- Added
ToBytes() []byte
- Added
FromBytes() TransactionReceipt
- Expose
ExchangeRate *ExchangeRate
- Expose
AccountID *AccountID
- Expose
FileID *FileID
- Expose
ContractID *ContractID
- Expose
TopicID *TopicID
- Expose
TokenID *TokenID
- Expose
TopicSequenceNumber uint64
- Expose
topicRunningHash []byte
- Added
TotalSupply uint64
- Added
TopicRunningHashVersion uint64
- Removed
GetAccountID() AccountID
- Use
AccountID AccountID
directly instead.
- Use
- Removed
GetContractID() ContractID
- Use
ContractID ContractID
directly instead.
- Use
- Removed
GetFileID() FileID
- Use
FileID FileID
directly instead.
- Use
- Removed
GetTokenID() TokenID
- Use
TokenID TokenID
directly instead.
- Use
- Removed
GetConsensusTopicID() ConsensusTopicID
- Use
TopicID TopicID
directly instead.
- Use
- Removed
GetConsensusTopicSequenceNumber()
- Use
sequenceNumber uint64
directly instead.
- Use
- Removed
GetConsensusTopicRunningHash() []byte
- Use
topicRunningHash []byte
directly instead.
- Use
- Added
TransactionReceiptQuery
extends (Query)- Added
GetTransactionID() TransactionID
- Added
TransactionRecord
- Added
ToBytes() []byte
- Added
FromBytes() TransactionRecord
- Added
CallResult *ContractFunctionResult
- Added
CallResultIsCreate bool
- Removed
GetContratcExecuteResult() ContractFunctionResult
- Use
ContractFunctionResult contractFunctionResult
directly instead.
- Use
- Removed
GetContratcCreateResult() ContractFunctionResult
- Use
ContractFunctionResult contractFunctionResult
directly instead.
- Use
- Added
TransactionRecordQuery
extends (Query)- Added
GetTransactionID() TransactionID
- Added
Hbar
- Added
ToString(unit HbarUnit) string
- Added
Client
- Removed
NewClient(map[string]AccountID) *Client
- Added
SetMirrorNetwork([]String) void
- Added
GetMirrorNetwork() []String
- Added
ClientForNetwork(map[string]AccountID) *Client
- Added
Ping(AccountID) void
- Added
GetOperatorPublicKey() PublicKey
- Added
SetNetwork(map[string]AccountID) error
- Added
GetNetwork() map[string]AccountID
- Renamed
FromJson([]byte)
→ClientFromConfig([]byte)
- Renamed
FromFile(String)
→ClientFromConfigFile(String)
- Renamed
GetOperatorId()
→getOperatorAccountID()
- Removed
ReplaceNodes(map[string]AccountID) *Client
- Removed
SetMaxTransactionFee() Client
- Removed
SetMaxQueryPayment() Client
- Removed