Documentation
¶
Index ¶
- Constants
- Variables
- func AccountInfoFlowVerifySignature(client *Client, accountID AccountID, message []byte, signature []byte) (bool, error)
- func AccountInfoFlowVerifyTransaction(client *Client, accountID AccountID, tx TransactionInterface, _ []byte) (bool, error)
- func CompressPubkey(pubKey *secp256k1.PublicKey) []byte
- func Decode(t *Type, input []byte) (interface{}, error)
- func DecodeStruct(t *Type, input []byte, out interface{}) error
- func Encode(v interface{}, t *Type) ([]byte, error)
- func EntropyFromMnemonic(mnemonic string) ([]byte, error)
- func FillBytes(bigint *big.Int, buffer []byte)
- func GetWordIndex(word string) (int, bool)
- func GetWordList() []string
- func IsHardenedIndex(index uint32) bool
- func IsMnemonicValid(mnemonic string) bool
- func KeyToBytes(key Key) ([]byte, error)
- func MnemonicToByteArray(mnemonic string, raw ...bool) ([]byte, error)
- func NewEntropy(bitSize int) ([]byte, error)
- func NewMnemonicBip(entropy []byte) (string, error)
- func NewSeed(mnemonic string, password string) []byte
- func NewSeedWithErrorChecking(mnemonic string, password string) ([]byte, error)
- func NftTransferFromBytes(data []byte) (_TokenNftTransfer, error)
- func PowerOfBig(a, b int64) *big.Int
- func To256Bit(x *big.Int) *big.Int
- func To256BitBytes(n *big.Int) []byte
- func ToHardenedIndex(index uint32) uint32
- func ToPaddedBytes(bigint *big.Int, length int) []byte
- func ToSigned256(x *big.Int) *big.Int
- func TransactionGetMaxBackoff(tx TransactionInterface) (time.Duration, error)
- func TransactionGetMinBackoff(tx TransactionInterface) (time.Duration, error)
- func TransactionGetSignatures(tx TransactionInterface) (map[AccountID]map[*PublicKey][]byte, error)
- func TransactionGetTransactionHash(tx TransactionInterface) ([]byte, error)
- func TransactionGetTransactionHashPerNode(tx TransactionInterface) (map[AccountID][]byte, error)
- func TransactionGetTransactionMemo(tx TransactionInterface) (string, error)
- func TransactionGetTransactionValidDuration(tx TransactionInterface) (time.Duration, error)
- func TransactionString(tx TransactionInterface) (string, error)
- func TransactionToBytes(tx TransactionInterface) ([]byte, error)
- func ValidateEnglish() error
- func VerifySignature(pubkey, digestHash, signature []byte) booldeprecated
- type ABI
- type AbiTypeKind
- type AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) AddAllTokenNftApproval(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) AddHbarApproval(id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) AddTokenApproval(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) AddTokenNftApproval(nftID NftID, accountID AccountID) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveHbarApproval(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveTokenApproval(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceWithDelegatingSpender(nftID NftID, ownerAccountID AccountID, spenderAccountId AccountID, ...) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftApproval(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) DeleteTokenNftAllowanceAllSerials(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
- func (tx *AccountAllowanceApproveTransaction) GetHbarAllowances() []*HbarAllowance
- func (e AccountAllowanceApproveTransaction) GetNodeAccountIDs() []AccountID
- func (tx *AccountAllowanceApproveTransaction) GetTokenAllowances() []*TokenAllowance
- func (tx *AccountAllowanceApproveTransaction) GetTokenNftAllowances() []*TokenNftAllowance
- type AccountAllowanceDeleteTransaction
- func (tx *AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances(ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
- func (tx *AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances(tokenID TokenID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
- func (tx *AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances(nftID NftID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
- func (tx *AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances() []*HbarAllowance
- func (tx *AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances() []*TokenAllowance
- func (tx *AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances() []*TokenNftAllowance
- func (e AccountAllowanceDeleteTransaction) GetNodeAccountIDs() []AccountID
- type AccountBalance
- type AccountBalanceQuery
- func (q *AccountBalanceQuery) Execute(client *Client) (AccountBalance, error)
- func (q *AccountBalanceQuery) GetAccountID() AccountID
- func (q *AccountBalanceQuery) GetContractID() ContractID
- func (q *AccountBalanceQuery) GetCost(client *Client) (Hbar, error)
- func (e *AccountBalanceQuery) GetGrpcDeadline() *time.Duration
- func (e *AccountBalanceQuery) GetLogLevel() *LogLevel
- func (e *AccountBalanceQuery) GetMaxBackoff() time.Duration
- func (e *AccountBalanceQuery) GetMaxRetry() int
- func (e *AccountBalanceQuery) GetMinBackoff() time.Duration
- func (e *AccountBalanceQuery) GetNodeAccountIDs() []AccountID
- func (q *AccountBalanceQuery) SetAccountID(accountID AccountID) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetContractID(contractID ContractID) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetGrpcDeadline(deadline *time.Duration) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetLogLevel(level LogLevel) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetMaxBackoff(max time.Duration) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetMaxRetry(count int) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetMinBackoff(min time.Duration) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetNodeAccountIDs(accountID []AccountID) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountBalanceQuery
- func (q *AccountBalanceQuery) SetQueryPayment(paymentAmount Hbar) *AccountBalanceQuery
- type AccountCreateTransaction
- func (tx *AccountCreateTransaction) GetAccountMemo() string
- func (tx *AccountCreateTransaction) GetAlias() []byte
- func (tx *AccountCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *AccountCreateTransaction) GetDeclineStakingReward() bool
- func (tx *AccountCreateTransaction) GetInitialBalance() Hbar
- func (tx *AccountCreateTransaction) GetKey() (Key, error)
- func (tx *AccountCreateTransaction) GetMaxAutomaticTokenAssociations() int32
- func (e AccountCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *AccountCreateTransaction) GetProxyAccountID() AccountID
- func (tx *AccountCreateTransaction) GetReceiverSignatureRequired() bool
- func (tx *AccountCreateTransaction) GetStakedAccountID() AccountID
- func (tx *AccountCreateTransaction) GetStakedNodeID() int64
- func (tx *AccountCreateTransaction) SetAccountMemo(memo string) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetAlias(evmAddress string) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetDeclineStakingReward(decline bool) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetECDSAKeyWithAlias(ecdsaKey Key) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetInitialBalance(initialBalance Hbar) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetKey(key Key) *AccountCreateTransactiondeprecated
- func (tx *AccountCreateTransaction) SetKeyWithAlias(key Key, ecdsaKey Key) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetKeyWithoutAlias(key Key) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetMaxAutomaticTokenAssociations(max int32) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetProxyAccountID(id AccountID) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetReceiverSignatureRequired(required bool) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetStakedAccountID(id AccountID) *AccountCreateTransaction
- func (tx *AccountCreateTransaction) SetStakedNodeID(id int64) *AccountCreateTransaction
- type AccountDeleteTransaction
- func (tx *AccountDeleteTransaction) GetAccountID() AccountID
- func (e AccountDeleteTransaction) GetNodeAccountIDs() []AccountID
- func (tx *AccountDeleteTransaction) GetTransferAccountID() AccountID
- func (tx *AccountDeleteTransaction) SetAccountID(accountID AccountID) *AccountDeleteTransaction
- func (tx *AccountDeleteTransaction) SetTransferAccountID(transferAccountID AccountID) *AccountDeleteTransaction
- type AccountID
- func AccountIDFromBytes(data []byte) (AccountID, error)
- func AccountIDFromEvmAddress(shard uint64, realm uint64, aliasEvmAddress string) (AccountID, error)
- func AccountIDFromEvmPublicAddress(s string) (AccountID, error)
- func AccountIDFromSolidityAddress(s string) (AccountID, error)
- func AccountIDFromString(data string) (AccountID, error)
- func TransactionGetNodeAccountIDs(tx TransactionInterface) ([]AccountID, error)
- func (id AccountID) Compare(given AccountID) int
- func (id AccountID) Equals(other AccountID) bool
- func (id AccountID) GetChecksum() *string
- func (id AccountID) IsZero() bool
- func (id *AccountID) PopulateAccount(client *Client) error
- func (id *AccountID) PopulateEvmAddress(client *Client) error
- func (id AccountID) String() string
- func (id AccountID) ToBytes() []byte
- func (id AccountID) ToEvmAddress() string
- func (id AccountID) ToSolidityAddress() string
- func (id AccountID) ToStringWithChecksum(client *Client) (string, error)
- func (id *AccountID) UnmarshalJSON(data []byte) error
- func (id *AccountID) Validate(client *Client) error
- func (id *AccountID) ValidateChecksum(client *Client) error
- type AccountInfo
- type AccountInfoQuery
- func (q *AccountInfoQuery) Execute(client *Client) (AccountInfo, error)
- func (q *AccountInfoQuery) GetAccountID() AccountID
- func (q *AccountInfoQuery) GetCost(client *Client) (Hbar, error)
- func (e *AccountInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *AccountInfoQuery) GetLogLevel() *LogLevel
- func (e *AccountInfoQuery) GetMaxBackoff() time.Duration
- func (e *AccountInfoQuery) GetMaxRetry() int
- func (e *AccountInfoQuery) GetMinBackoff() time.Duration
- func (e *AccountInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *AccountInfoQuery) SetAccountID(accountID AccountID) *AccountInfoQuery
- func (q *AccountInfoQuery) SetGrpcDeadline(deadline *time.Duration) *AccountInfoQuery
- func (q *AccountInfoQuery) SetLogLevel(level LogLevel) *AccountInfoQuery
- func (q *AccountInfoQuery) SetMaxBackoff(max time.Duration) *AccountInfoQuery
- func (q *AccountInfoQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *AccountInfoQuery
- func (q *AccountInfoQuery) SetMaxRetry(count int) *AccountInfoQuery
- func (q *AccountInfoQuery) SetMinBackoff(min time.Duration) *AccountInfoQuery
- func (q *AccountInfoQuery) SetNodeAccountIDs(accountID []AccountID) *AccountInfoQuery
- func (q *AccountInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountInfoQuery
- func (q *AccountInfoQuery) SetQueryPayment(queryPayment Hbar) *AccountInfoQuery
- type AccountRecordsQuery
- func (q *AccountRecordsQuery) Execute(client *Client) ([]TransactionRecord, error)
- func (q *AccountRecordsQuery) GetAccountID() AccountID
- func (q *AccountRecordsQuery) GetCost(client *Client) (Hbar, error)
- func (e *AccountRecordsQuery) GetGrpcDeadline() *time.Duration
- func (e *AccountRecordsQuery) GetLogLevel() *LogLevel
- func (e *AccountRecordsQuery) GetMaxBackoff() time.Duration
- func (e *AccountRecordsQuery) GetMaxRetry() int
- func (e *AccountRecordsQuery) GetMinBackoff() time.Duration
- func (e *AccountRecordsQuery) GetNodeAccountIDs() []AccountID
- func (q *AccountRecordsQuery) SetAccountID(accountID AccountID) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetGrpcDeadline(deadline *time.Duration) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetLogLevel(level LogLevel) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetMaxBackoff(max time.Duration) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetMaxRetry(count int) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetMinBackoff(min time.Duration) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetNodeAccountIDs(accountID []AccountID) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountRecordsQuery
- func (q *AccountRecordsQuery) SetQueryPayment(paymentAmount Hbar) *AccountRecordsQuery
- type AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) ClearStakedAccountID() *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) ClearStakedNodeID() *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) GetAccountID() AccountID
- func (tx *AccountUpdateTransaction) GetAccountMemo() string
- func (tx *AccountUpdateTransaction) GetAliasKey() PublicKey
- func (tx *AccountUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *AccountUpdateTransaction) GetDeclineStakingReward() bool
- func (tx *AccountUpdateTransaction) GetExpirationTime() time.Time
- func (tx *AccountUpdateTransaction) GetKey() (Key, error)
- func (tx *AccountUpdateTransaction) GetMaxAutomaticTokenAssociations() int32
- func (e AccountUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *AccountUpdateTransaction) GetProxyAccountID() AccountID
- func (tx *AccountUpdateTransaction) GetReceiverSignatureRequired() bool
- func (tx *AccountUpdateTransaction) GetStakedAccountID() AccountID
- func (tx *AccountUpdateTransaction) GetStakedNodeID() int64
- func (tx *AccountUpdateTransaction) SetAccountID(accountID AccountID) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetAccountMemo(memo string) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetAliasKey(alias PublicKey) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetDeclineStakingReward(decline bool) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetExpirationTime(expirationTime time.Time) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetKey(key Key) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetMaxAutomaticTokenAssociations(max int32) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetReceiverSignatureRequired(receiverSignatureRequired bool) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetStakedAccountID(id AccountID) *AccountUpdateTransaction
- func (tx *AccountUpdateTransaction) SetStakedNodeID(id int64) *AccountUpdateTransaction
- type Address
- type AddressBookQuery
- func (q *AddressBookQuery) Execute(client *Client) (NodeAddressBook, error)
- func (q *AddressBookQuery) GetFileID() FileID
- func (q *AddressBookQuery) GetLimit() int32
- func (q *AddressBookQuery) GetMaxAttempts() uint64
- func (q *AddressBookQuery) SetFileID(id FileID) *AddressBookQuery
- func (q *AddressBookQuery) SetLimit(limit int32) *AddressBookQuery
- func (q *AddressBookQuery) SetMaxAttempts(maxAttempts uint64) *AddressBookQuery
- type Argument
- type ArgumentStr
- type AssessedCustomFee
- type BaseTransaction
- type BatchTransaction
- func (tx *BatchTransaction) AddInnerTransaction(innerTransaction TransactionInterface) *BatchTransaction
- func (tx *BatchTransaction) GetInnerTransactionIDs() []TransactionID
- func (tx *BatchTransaction) GetInnerTransactions() []TransactionInterface
- func (e BatchTransaction) GetNodeAccountIDs() []AccountID
- func (tx *BatchTransaction) SetInnerTransactions(transactions []TransactionInterface) *BatchTransaction
- type Client
- func ClientForMainnet() *Client
- func ClientForMirrorNetwork(mirrorNetwork []string) (*Client, error)
- func ClientForMirrorNetworkWithRealmAndShard(mirrorNetwork []string, realm uint64, shard uint64) (*Client, error)deprecated
- func ClientForMirrorNetworkWithShardAndRealm(mirrorNetwork []string, shard uint64, realm uint64) (*Client, error)
- func ClientForName(name string) (*Client, error)
- func ClientForNetwork(network map[string]AccountID) *Client
- func ClientForNetworkV2(network map[string]AccountID) (*Client, error)
- func ClientForPreviewnet() *Client
- func ClientForTestnet() *Client
- func ClientFromConfig(jsonBytes []byte) (*Client, error)
- func ClientFromConfigFile(filename string) (*Client, error)
- func ClientFromConfigWithoutScheduleNetworkUpdate(jsonBytes []byte) (*Client, error)
- func (client *Client) CancelScheduledNetworkUpdate()
- func (client *Client) Close() error
- func (client *Client) GetAutoValidateChecksums() bool
- func (client *Client) GetCertificateVerification() bool
- func (client *Client) GetDefaultMaxQueryPayment() Hbar
- func (client *Client) GetDefaultMaxTransactionFee() Hbar
- func (client *Client) GetDefaultRegenerateTransactionIDs() bool
- func (client *Client) GetLedgerID() *LedgerID
- func (client *Client) GetLogger() Logger
- func (client *Client) GetMaxAttempts() int
- func (client *Client) GetMaxBackoff() time.Duration
- func (client *Client) GetMaxNodeAttempts() int
- func (client *Client) GetMaxNodeReadmitPeriod() time.Duration
- func (client *Client) GetMinBackoff() time.Duration
- func (client *Client) GetMinNodeReadmitPeriod() time.Duration
- func (client *Client) GetMirrorNetwork() []string
- func (client *Client) GetMirrorRestApiBaseUrl() (string, error)
- func (client *Client) GetNetwork() map[string]AccountID
- func (client *Client) GetNetworkUpdatePeriod() time.Duration
- func (client *Client) GetNodeMaxBackoff() time.Duration
- func (client *Client) GetNodeMaxReadmitPeriod() time.Duration
- func (client *Client) GetNodeMinBackoff() time.Duration
- func (client *Client) GetNodeMinReadmitPeriod() time.Duration
- func (client *Client) GetNodeWaitTime() time.Durationdeprecated
- func (client *Client) GetOperatorAccountID() AccountID
- func (client *Client) GetOperatorPublicKey() PublicKey
- func (client *Client) GetRealm() uint64
- func (client *Client) GetRequestTimeout() *time.Duration
- func (client *Client) GetShard() uint64
- func (client *Client) Ping(nodeID AccountID) error
- func (client *Client) PingAll()
- func (client *Client) SetAutoValidateChecksums(validate bool)
- func (client *Client) SetCertificateVerification(verify bool) *Client
- func (client *Client) SetDefaultMaxQueryPayment(defaultMaxQueryPayment Hbar) error
- func (client *Client) SetDefaultMaxTransactionFee(defaultMaxTransactionFee Hbar) error
- func (client *Client) SetDefaultRegenerateTransactionIDs(regen bool)
- func (client *Client) SetLedgerID(id LedgerID)
- func (client *Client) SetLogLevel(level LogLevel) *Client
- func (client *Client) SetLogger(logger Logger) *Client
- func (client *Client) SetMaxAttempts(max int)
- func (client *Client) SetMaxBackoff(max time.Duration)
- func (client *Client) SetMaxNodeAttempts(max int)
- func (client *Client) SetMaxNodeReadmitTime(readmitTime time.Duration)
- func (client *Client) SetMaxNodesPerTransaction(max int)
- func (client *Client) SetMinBackoff(min time.Duration)
- func (client *Client) SetMinNodeReadmitTime(readmitTime time.Duration)
- func (client *Client) SetMirrorNetwork(mirrorNetwork []string)
- func (client *Client) SetNetwork(network map[string]AccountID) error
- func (client *Client) SetNetworkFromAddressBook(addressBook NodeAddressBook) *Client
- func (client *Client) SetNetworkName(name NetworkName)deprecated
- func (client *Client) SetNetworkUpdatePeriod(period time.Duration) *Client
- func (client *Client) SetNodeMaxBackoff(nodeWait time.Duration)
- func (client *Client) SetNodeMaxReadmitPeriod(period time.Duration)
- func (client *Client) SetNodeMinBackoff(nodeWait time.Duration)
- func (client *Client) SetNodeMinReadmitPeriod(period time.Duration)
- func (client *Client) SetNodeWaitTime(nodeWait time.Duration)deprecated
- func (client *Client) SetOperator(accountID AccountID, privateKey PrivateKey) *Client
- func (client *Client) SetOperatorWith(accountID AccountID, publicKey PublicKey, signer TransactionSigner) *Client
- func (client *Client) SetRequestTimeout(timeout *time.Duration)
- func (client *Client) SetTransportSecurity(tls bool) *Client
- type ContractBytecodeQuery
- func (q *ContractBytecodeQuery) Execute(client *Client) ([]byte, error)
- func (q *ContractBytecodeQuery) GetContractID() ContractID
- func (q *ContractBytecodeQuery) GetCost(client *Client) (Hbar, error)
- func (e *ContractBytecodeQuery) GetGrpcDeadline() *time.Duration
- func (e *ContractBytecodeQuery) GetLogLevel() *LogLevel
- func (e *ContractBytecodeQuery) GetMaxBackoff() time.Duration
- func (e *ContractBytecodeQuery) GetMaxRetry() int
- func (e *ContractBytecodeQuery) GetMinBackoff() time.Duration
- func (e *ContractBytecodeQuery) GetNodeAccountIDs() []AccountID
- func (q *ContractBytecodeQuery) SetContractID(contractID ContractID) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetGrpcDeadline(deadline *time.Duration) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetLogLevel(level LogLevel) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetMaxBackoff(max time.Duration) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetMaxRetry(count int) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetMinBackoff(min time.Duration) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetNodeAccountIDs(accountID []AccountID) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractBytecodeQuery
- func (q *ContractBytecodeQuery) SetQueryPayment(paymentAmount Hbar) *ContractBytecodeQuery
- type ContractCallQuery
- func (q *ContractCallQuery) Execute(client *Client) (ContractFunctionResult, error)
- func (q *ContractCallQuery) GetContractID() ContractID
- func (q *ContractCallQuery) GetCost(client *Client) (Hbar, error)
- func (q *ContractCallQuery) GetFunctionParameters() []byte
- func (q *ContractCallQuery) GetGas() uint64
- func (e *ContractCallQuery) GetGrpcDeadline() *time.Duration
- func (e *ContractCallQuery) GetLogLevel() *LogLevel
- func (e *ContractCallQuery) GetMaxBackoff() time.Duration
- func (e *ContractCallQuery) GetMaxRetry() int
- func (e *ContractCallQuery) GetMinBackoff() time.Duration
- func (e *ContractCallQuery) GetNodeAccountIDs() []AccountID
- func (q *ContractCallQuery) GetSenderID() AccountID
- func (q *ContractCallQuery) SetContractID(contractID ContractID) *ContractCallQuery
- func (q *ContractCallQuery) SetFunction(name string, params *ContractFunctionParameters) *ContractCallQuery
- func (q *ContractCallQuery) SetFunctionParameters(byteArray []byte) *ContractCallQuery
- func (q *ContractCallQuery) SetGas(gas uint64) *ContractCallQuery
- func (q *ContractCallQuery) SetGrpcDeadline(deadline *time.Duration) *ContractCallQuery
- func (q *ContractCallQuery) SetLogLevel(level LogLevel) *ContractCallQuery
- func (q *ContractCallQuery) SetMaxBackoff(max time.Duration) *ContractCallQuery
- func (q *ContractCallQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractCallQuery
- func (q *ContractCallQuery) SetMaxResultSize(size uint64) *ContractCallQuery
- func (q *ContractCallQuery) SetMaxRetry(count int) *ContractCallQuery
- func (q *ContractCallQuery) SetMinBackoff(min time.Duration) *ContractCallQuery
- func (q *ContractCallQuery) SetNodeAccountIDs(accountID []AccountID) *ContractCallQuery
- func (q *ContractCallQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractCallQuery
- func (q *ContractCallQuery) SetQueryPayment(paymentAmount Hbar) *ContractCallQuery
- func (q *ContractCallQuery) SetSenderID(id AccountID) *ContractCallQuery
- type ContractCreateFlow
- func (tx *ContractCreateFlow) Execute(client *Client) (TransactionResponse, error)
- func (tx *ContractCreateFlow) GetAdminKey() Key
- func (tx *ContractCreateFlow) GetAutoRenewAccountID() AccountID
- func (tx *ContractCreateFlow) GetAutoRenewPeriod() time.Duration
- func (tx *ContractCreateFlow) GetBytecode() string
- func (tx *ContractCreateFlow) GetConstructorParameters() []byte
- func (tx *ContractCreateFlow) GetContractMemo() string
- func (tx *ContractCreateFlow) GetGas() int64
- func (tx *ContractCreateFlow) GetInitialBalance() Hbar
- func (tx *ContractCreateFlow) GetMaxAutomaticTokenAssociations() int32
- func (tx *ContractCreateFlow) GetMaxChunks() uint64
- func (tx *ContractCreateFlow) GetNodeAccountIDs() []AccountID
- func (tx *ContractCreateFlow) GetProxyAccountID() AccountID
- func (tx *ContractCreateFlow) SetAdminKey(adminKey Key) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetAutoRenewAccountID(id AccountID) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetBytecode(bytecode []byte) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetBytecodeWithString(bytecode string) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetConstructorParametersRaw(params []byte) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetContractMemo(memo string) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetGas(gas int64) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetInitialBalance(initialBalance Hbar) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetMaxAutomaticTokenAssociations(max int32) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetMaxChunks(max uint64) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateFlow
- func (tx *ContractCreateFlow) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateFlow
- type ContractCreateTransaction
- func (tx *ContractCreateTransaction) GetAdminKey() (Key, error)
- func (tx *ContractCreateTransaction) GetAutoRenewAccountID() AccountID
- func (tx *ContractCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *ContractCreateTransaction) GetBytecode() []byte
- func (tx *ContractCreateTransaction) GetBytecodeFileID() FileID
- func (tx *ContractCreateTransaction) GetConstructorParameters() []byte
- func (tx *ContractCreateTransaction) GetContractMemo() string
- func (tx *ContractCreateTransaction) GetDeclineStakingReward() bool
- func (tx *ContractCreateTransaction) GetGas() uint64
- func (tx *ContractCreateTransaction) GetInitialBalance() Hbar
- func (tx *ContractCreateTransaction) GetMaxAutomaticTokenAssociations() int32
- func (e ContractCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *ContractCreateTransaction) GetProxyAccountID() AccountID
- func (tx *ContractCreateTransaction) GetStakedAccountID() AccountID
- func (tx *ContractCreateTransaction) GetStakedNodeID() int64
- func (tx *ContractCreateTransaction) SetAdminKey(adminKey Key) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetAutoRenewAccountID(id AccountID) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetAutoRenewPeriodSeconds(autoRenewPeriod int64) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetBytecode(code []byte) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetBytecodeFileID(byteCodeFileID FileID) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetConstructorParametersRaw(params []byte) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetContractMemo(memo string) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetDeclineStakingReward(decline bool) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetGas(gas uint64) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetInitialBalance(initialBalance Hbar) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetMaxAutomaticTokenAssociations(max int32) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateTransactiondeprecated
- func (tx *ContractCreateTransaction) SetStakedAccountID(id AccountID) *ContractCreateTransaction
- func (tx *ContractCreateTransaction) SetStakedNodeID(id int64) *ContractCreateTransaction
- type ContractDeleteTransaction
- func (tx *ContractDeleteTransaction) GetContractID() ContractID
- func (e ContractDeleteTransaction) GetNodeAccountIDs() []AccountID
- func (tx *ContractDeleteTransaction) GetPermanentRemoval() bool
- func (tx *ContractDeleteTransaction) GetTransferAccountID() AccountID
- func (tx *ContractDeleteTransaction) GetTransferContractID() ContractID
- func (tx *ContractDeleteTransaction) SetContractID(contractID ContractID) *ContractDeleteTransaction
- func (tx *ContractDeleteTransaction) SetPermanentRemoval(remove bool) *ContractDeleteTransaction
- func (tx *ContractDeleteTransaction) SetTransferAccountID(accountID AccountID) *ContractDeleteTransaction
- func (tx *ContractDeleteTransaction) SetTransferContractID(transferContactID ContractID) *ContractDeleteTransaction
- type ContractExecuteTransaction
- func (tx *ContractExecuteTransaction) GetContractID() ContractID
- func (tx *ContractExecuteTransaction) GetFunctionParameters() []byte
- func (tx *ContractExecuteTransaction) GetGas() uint64
- func (e ContractExecuteTransaction) GetNodeAccountIDs() []AccountID
- func (tx *ContractExecuteTransaction) GetPayableAmount() Hbar
- func (tx *ContractExecuteTransaction) SetContractID(contractID ContractID) *ContractExecuteTransaction
- func (tx *ContractExecuteTransaction) SetFunction(name string, params *ContractFunctionParameters) *ContractExecuteTransaction
- func (tx *ContractExecuteTransaction) SetFunctionParameters(params []byte) *ContractExecuteTransaction
- func (tx *ContractExecuteTransaction) SetGas(gas uint64) *ContractExecuteTransaction
- func (tx *ContractExecuteTransaction) SetPayableAmount(amount Hbar) *ContractExecuteTransaction
- type ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddAddress(value string) (*ContractFunctionParameters, error)
- func (contract *ContractFunctionParameters) AddAddressArray(value []string) (*ContractFunctionParameters, error)
- func (contract *ContractFunctionParameters) AddBool(value bool) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddBytes(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddBytes32(value [32]byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddBytes32Array(value [][]byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddBytesArray(value [][]byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddFunction(address string, selector ContractFunctionSelector) (*ContractFunctionParameters, error)
- func (contract *ContractFunctionParameters) AddIn88BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt104(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt104BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt112(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt112BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt120(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt120BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt128(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt128BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt136(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt136BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt144(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt144BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt152(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt152BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt16(value int16) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt160(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt160BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt168(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt168BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt16Array(value []int16) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt176(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt176BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt184(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt184BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt192(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt192BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt200(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt200BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt208(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt208BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt216(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt216BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt224(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt224BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt232(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt232BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt24(value int32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt240(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt240BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt248(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt248BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt24Array(value []int32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt256(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt256Array(value [][32]byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt256BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt32(value int32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt32Array(value []int32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt40(value int64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt48(value int64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt56(value int64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt64(value int64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt64Array(value []int64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt72(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt72BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt8(value int8) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt80(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt80BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt88(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt8Array(value []int8) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt96(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddInt96BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddString(value string) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddStringArray(value []string) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint104(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint104igInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint112(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint112BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint120(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint120BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint128(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint128BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint136(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint136BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint144(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint144BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint152(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint152BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint16(value uint16) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint160(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint160BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint168(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint168BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint176(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint176BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint184(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint184BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint192(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint192BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint200(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint200BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint208(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint208BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint216(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint216BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint224(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint224BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint232(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint232BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint24(value uint32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint240(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint240BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint248(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint248BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint256(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint256Array(value [][32]byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint256BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint32(value uint32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint32Array(value []uint32) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint40(value uint64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint48(value uint64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint56(value uint64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint64(value uint64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint64Array(value []uint64) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint72(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint72BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint8(value uint8) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint80(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint80BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint88(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint88BigInt(value *big.Int) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint96(value []byte) *ContractFunctionParameters
- func (contract *ContractFunctionParameters) AddUint96BigInt(value *big.Int) *ContractFunctionParameters
- type ContractFunctionResult
- func (result ContractFunctionResult) AsBytes() []byte
- func (result ContractFunctionResult) GetAddress(index uint64) []byte
- func (result ContractFunctionResult) GetBigInt(index uint64) *big.Int
- func (result ContractFunctionResult) GetBool(index uint64) bool
- func (result ContractFunctionResult) GetBytes(index uint64) []byte
- func (result ContractFunctionResult) GetBytes32(index uint64) []byte
- func (result ContractFunctionResult) GetInt104(index uint64) []byte
- func (result ContractFunctionResult) GetInt112(index uint64) []byte
- func (result ContractFunctionResult) GetInt120(index uint64) []byte
- func (result ContractFunctionResult) GetInt128(index uint64) []byte
- func (result ContractFunctionResult) GetInt136(index uint64) []byte
- func (result ContractFunctionResult) GetInt144(index uint64) []byte
- func (result ContractFunctionResult) GetInt152(index uint64) []byte
- func (result ContractFunctionResult) GetInt16(index uint64) int16
- func (result ContractFunctionResult) GetInt160(index uint64) []byte
- func (result ContractFunctionResult) GetInt168(index uint64) []byte
- func (result ContractFunctionResult) GetInt176(index uint64) []byte
- func (result ContractFunctionResult) GetInt184(index uint64) []byte
- func (result ContractFunctionResult) GetInt192(index uint64) []byte
- func (result ContractFunctionResult) GetInt200(index uint64) []byte
- func (result ContractFunctionResult) GetInt208(index uint64) []byte
- func (result ContractFunctionResult) GetInt216(index uint64) []byte
- func (result ContractFunctionResult) GetInt224(index uint64) []byte
- func (result ContractFunctionResult) GetInt232(index uint64) []byte
- func (result ContractFunctionResult) GetInt24(index uint64) int32
- func (result ContractFunctionResult) GetInt240(index uint64) []byte
- func (result ContractFunctionResult) GetInt248(index uint64) []byte
- func (result ContractFunctionResult) GetInt256(index uint64) []byte
- func (result ContractFunctionResult) GetInt32(index uint64) int32
- func (result ContractFunctionResult) GetInt40(index uint64) int64
- func (result ContractFunctionResult) GetInt48(index uint64) int64
- func (result ContractFunctionResult) GetInt56(index uint64) int64
- func (result ContractFunctionResult) GetInt64(index uint64) int64
- func (result ContractFunctionResult) GetInt72(index uint64) []byte
- func (result ContractFunctionResult) GetInt8(index uint64) int8
- func (result ContractFunctionResult) GetInt80(index uint64) []byte
- func (result ContractFunctionResult) GetInt88(index uint64) []byte
- func (result ContractFunctionResult) GetInt96(index uint64) []byte
- func (result ContractFunctionResult) GetResult(types string) (interface{}, error)
- func (result ContractFunctionResult) GetString(index uint64) string
- func (result ContractFunctionResult) GetUint104(index uint64) []byte
- func (result ContractFunctionResult) GetUint112(index uint64) []byte
- func (result ContractFunctionResult) GetUint120(index uint64) []byte
- func (result ContractFunctionResult) GetUint128(index uint64) []byte
- func (result ContractFunctionResult) GetUint136(index uint64) []byte
- func (result ContractFunctionResult) GetUint144(index uint64) []byte
- func (result ContractFunctionResult) GetUint152(index uint64) []byte
- func (result ContractFunctionResult) GetUint16(index uint64) uint16
- func (result ContractFunctionResult) GetUint160(index uint64) []byte
- func (result ContractFunctionResult) GetUint168(index uint64) []byte
- func (result ContractFunctionResult) GetUint176(index uint64) []byte
- func (result ContractFunctionResult) GetUint184(index uint64) []byte
- func (result ContractFunctionResult) GetUint192(index uint64) []byte
- func (result ContractFunctionResult) GetUint200(index uint64) []byte
- func (result ContractFunctionResult) GetUint208(index uint64) []byte
- func (result ContractFunctionResult) GetUint216(index uint64) []byte
- func (result ContractFunctionResult) GetUint224(index uint64) []byte
- func (result ContractFunctionResult) GetUint232(index uint64) []byte
- func (result ContractFunctionResult) GetUint24(index uint64) uint32
- func (result ContractFunctionResult) GetUint240(index uint64) []byte
- func (result ContractFunctionResult) GetUint248(index uint64) []byte
- func (result ContractFunctionResult) GetUint256(index uint64) []byte
- func (result ContractFunctionResult) GetUint32(index uint64) uint32
- func (result ContractFunctionResult) GetUint40(index uint64) uint64
- func (result ContractFunctionResult) GetUint48(index uint64) uint64
- func (result ContractFunctionResult) GetUint56(index uint64) uint64
- func (result ContractFunctionResult) GetUint64(index uint64) uint64
- func (result ContractFunctionResult) GetUint72(index uint64) []byte
- func (result ContractFunctionResult) GetUint8(index uint64) uint8
- func (result ContractFunctionResult) GetUint80(index uint64) []byte
- func (result ContractFunctionResult) GetUint88(index uint64) []byte
- func (result ContractFunctionResult) GetUint96(index uint64) []byte
- func (result *ContractFunctionResult) ToBytes() []byte
- type ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddAddress() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddAddressArray() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddBool() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddBoolArray() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddBytes() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddBytes32() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddBytes32Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddBytesArray() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddFunction() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt104() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt112() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt120() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt128() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt136() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt144() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt152() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt16() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt160() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt168() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt176() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt184() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt192() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt200() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt208() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt216() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt224() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt232() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt24() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt240() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt248() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt256() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt256Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt32() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt32Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt40() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt48() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt56() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt64() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt64Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt72() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt8() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt80() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt88() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt8Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddInt96() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddString() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddStringArray() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint104() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint112() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint120() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint128() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint136() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint144() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint152() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint16() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint160() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint168() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint176() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint184() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint192() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint200() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint208() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint216() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint224() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint232() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint24() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint240() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint248() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint256() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint256Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint32() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint32Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint40() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint48() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint56() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint64() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint64Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint72() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint8() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint80() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint88() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint8Array() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) AddUint96() *ContractFunctionSelector
- func (selector *ContractFunctionSelector) String() string
- type ContractID
- func (id *ContractID) PopulateContract(client *Client) error
- func (id ContractID) String() string
- func (id ContractID) ToBytes() []byte
- func (id ContractID) ToEvmAddress() string
- func (id ContractID) ToSolidityAddress() string
- func (id ContractID) ToStringWithChecksum(client Client) (string, error)
- func (id *ContractID) Validate(client *Client) error
- func (id *ContractID) ValidateChecksum(client *Client) error
- type ContractInfo
- type ContractInfoQuery
- func (q *ContractInfoQuery) Execute(client *Client) (ContractInfo, error)
- func (q *ContractInfoQuery) GetContractID() ContractID
- func (q *ContractInfoQuery) GetCost(client *Client) (Hbar, error)
- func (e *ContractInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *ContractInfoQuery) GetLogLevel() *LogLevel
- func (e *ContractInfoQuery) GetMaxBackoff() time.Duration
- func (e *ContractInfoQuery) GetMaxRetry() int
- func (e *ContractInfoQuery) GetMinBackoff() time.Duration
- func (e *ContractInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *ContractInfoQuery) SetContractID(contractID ContractID) *ContractInfoQuery
- func (q *ContractInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ContractInfoQuery
- func (q *ContractInfoQuery) SetLogLevel(level LogLevel) *ContractInfoQuery
- func (q *ContractInfoQuery) SetMaxBackoff(max time.Duration) *ContractInfoQuery
- func (q *ContractInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractInfoQuery
- func (q *ContractInfoQuery) SetMaxRetry(count int) *ContractInfoQuery
- func (q *ContractInfoQuery) SetMinBackoff(min time.Duration) *ContractInfoQuery
- func (q *ContractInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ContractInfoQuery
- func (q *ContractInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractInfoQuery
- func (q *ContractInfoQuery) SetQueryPayment(paymentAmount Hbar) *ContractInfoQuery
- type ContractLogInfo
- type ContractNonceInfo
- type ContractStateChange
- type ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) ClearStakedAccountID() *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) ClearStakedNodeID() *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) GetAdminKey() (Key, error)
- func (tx *ContractUpdateTransaction) GetAutoRenewAccountID() AccountID
- func (tx *ContractUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *ContractUpdateTransaction) GetBytecodeFileID() FileID
- func (tx *ContractUpdateTransaction) GetContractID() ContractID
- func (tx *ContractUpdateTransaction) GetContractMemo() string
- func (tx *ContractUpdateTransaction) GetDeclineStakingReward() bool
- func (tx *ContractUpdateTransaction) GetExpirationTime() time.Time
- func (tx *ContractUpdateTransaction) GetMaxAutomaticTokenAssociations() int32
- func (e ContractUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *ContractUpdateTransaction) GetProxyAccountID() AccountID
- func (tx *ContractUpdateTransaction) GetStakedAccountID() AccountID
- func (tx *ContractUpdateTransaction) GetStakedNodeID() int64
- func (tx *ContractUpdateTransaction) SetAdminKey(publicKey Key) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetAutoRenewAccountID(id AccountID) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetAutoRenewPeriodSeconds(autoRenewPeriod int64) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetBytecodeFileID(bytecodeFileID FileID) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetContractID(contractID ContractID) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetContractMemo(memo string) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetDeclineStakingReward(decline bool) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetExpirationTime(expiration time.Time) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetMaxAutomaticTokenAssociations(max int32) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetStakedAccountID(id AccountID) *ContractUpdateTransaction
- func (tx *ContractUpdateTransaction) SetStakedNodeID(id int64) *ContractUpdateTransaction
- type CustomFee
- type CustomFeeLimit
- func (feeLimit *CustomFeeLimit) AddCustomFee(customFee *CustomFixedFee) *CustomFeeLimit
- func (feeLimit *CustomFeeLimit) GetCustomFees() []*CustomFixedFee
- func (feeLimit *CustomFeeLimit) GetPayerId() AccountID
- func (feeLimit *CustomFeeLimit) SetCustomFees(customFees []*CustomFixedFee) *CustomFeeLimit
- func (feeLimit *CustomFeeLimit) SetPayerId(payerId AccountID) *CustomFeeLimit
- func (feeLimit *CustomFeeLimit) String() string
- type CustomFixedFee
- func (fee *CustomFixedFee) GetAmount() Hbar
- func (fee *CustomFixedFee) GetDenominatingTokenID() TokenID
- func (fee *CustomFixedFee) GetFeeCollectorAccountID() AccountID
- func (fee *CustomFixedFee) GetHbarAmount() Hbar
- func (fee *CustomFixedFee) SetAllCollectorsAreExempt(exempt bool) *CustomFixedFee
- func (fee *CustomFixedFee) SetAmount(tinybar int64) *CustomFixedFee
- func (fee *CustomFixedFee) SetDenominatingTokenID(id TokenID) *CustomFixedFee
- func (fee *CustomFixedFee) SetDenominatingTokenToSameToken() *CustomFixedFee
- func (fee *CustomFixedFee) SetFeeCollectorAccountID(id AccountID) *CustomFixedFee
- func (fee *CustomFixedFee) SetHbarAmount(hbar Hbar) *CustomFixedFee
- func (fee *CustomFixedFee) String() string
- func (fee *CustomFixedFee) ToBytes() []byte
- type CustomFractionalFee
- func (fee *CustomFractionalFee) GetAssessmentMethod() FeeAssessmentMethod
- func (fee *CustomFractionalFee) GetDenominator() int64
- func (fee *CustomFractionalFee) GetFeeCollectorAccountID() AccountID
- func (fee *CustomFractionalFee) GetMax() int64
- func (fee *CustomFractionalFee) GetMin() int64
- func (fee *CustomFractionalFee) GetNumerator() int64
- func (fee *CustomFractionalFee) SetAllCollectorsAreExempt(exempt bool) *CustomFractionalFee
- func (fee *CustomFractionalFee) SetAssessmentMethod(feeAssessmentMethod FeeAssessmentMethod) *CustomFractionalFee
- func (fee *CustomFractionalFee) SetDenominator(denominator int64) *CustomFractionalFee
- func (fee *CustomFractionalFee) SetFeeCollectorAccountID(id AccountID) *CustomFractionalFee
- func (fee *CustomFractionalFee) SetMax(max int64) *CustomFractionalFee
- func (fee *CustomFractionalFee) SetMin(min int64) *CustomFractionalFee
- func (fee *CustomFractionalFee) SetNumerator(numerator int64) *CustomFractionalFee
- func (fee CustomFractionalFee) String() string
- func (fee CustomFractionalFee) ToBytes() []byte
- type CustomRoyaltyFee
- func (fee *CustomRoyaltyFee) GetDenominator() int64
- func (fee *CustomRoyaltyFee) GetFallbackFee() CustomFixedFee
- func (fee *CustomRoyaltyFee) GetFeeCollectorAccountID() AccountID
- func (fee *CustomRoyaltyFee) GetNumerator() int64
- func (fee *CustomRoyaltyFee) SetAllCollectorsAreExempt(exempt bool) *CustomRoyaltyFee
- func (fee *CustomRoyaltyFee) SetDenominator(denominator int64) *CustomRoyaltyFee
- func (fee *CustomRoyaltyFee) SetFallbackFee(fallbackFee *CustomFixedFee) *CustomRoyaltyFee
- func (fee *CustomRoyaltyFee) SetFeeCollectorAccountID(accountID AccountID) *CustomRoyaltyFee
- func (fee *CustomRoyaltyFee) SetNumerator(numerator int64) *CustomRoyaltyFee
- type DefaultLogger
- func (l *DefaultLogger) Debug(msg string, keysAndValues ...interface{})
- func (l *DefaultLogger) Error(msg string, keysAndValues ...interface{})
- func (l *DefaultLogger) Info(msg string, keysAndValues ...interface{})
- func (l *DefaultLogger) SetLevel(level LogLevel)
- func (l *DefaultLogger) SetSilent(isSilent bool)
- func (l *DefaultLogger) SubLoggerWithLevel(level LogLevel) Logger
- func (l *DefaultLogger) Trace(msg string, keysAndValues ...interface{})
- func (l *DefaultLogger) Warn(msg string, keysAndValues ...interface{})
- type DelegatableContractID
- func DelegatableContractIDFromBytes(data []byte) (DelegatableContractID, error)
- func DelegatableContractIDFromEvmAddress(shard uint64, realm uint64, aliasEvmAddress string) (DelegatableContractID, error)
- func DelegatableContractIDFromSolidityAddress(s string) (DelegatableContractID, error)
- func DelegatableContractIDFromString(data string) (DelegatableContractID, error)
- func (id DelegatableContractID) String() string
- func (id DelegatableContractID) ToBytes() []byte
- func (id DelegatableContractID) ToEvmAddress() string
- func (id DelegatableContractID) ToSolidityAddress() string
- func (id DelegatableContractID) ToStringWithChecksum(client Client) (string, error)
- func (id *DelegatableContractID) ValidateChecksum(client *Client) error
- type Endpoint
- func (endpoint *Endpoint) GetAddress() []byte
- func (endpoint *Endpoint) GetDomainName() string
- func (endpoint *Endpoint) GetPort() int32
- func (endpoint *Endpoint) SetAddress(address []byte) *Endpoint
- func (endpoint *Endpoint) SetDomainName(domainName string) *Endpoint
- func (endpoint *Endpoint) SetPort(port int32) *Endpoint
- func (endpoint *Endpoint) String() string
- func (endpoint *Endpoint) Validate() error
- type EntityID
- type ErrBadKey
- type ErrHederaNetwork
- type ErrHederaPreCheckStatus
- type ErrHederaReceiptStatus
- type ErrHederaRecordStatus
- type ErrInvalidNodeAccountIDSet
- type ErrLocalValidation
- type ErrMaxChunksExceeded
- type ErrMaxQueryPaymentExceeded
- type Error
- type EthereumEIP1559Transaction
- type EthereumEIP2930Transaction
- type EthereumFlow
- func (transaction *EthereumFlow) Execute(client *Client) (TransactionResponse, error)
- func (transaction *EthereumFlow) GetCallDataFileID() FileID
- func (transaction *EthereumFlow) GetEthereumData() *EthereumTransactionData
- func (transaction *EthereumFlow) GetMaxGasAllowance() Hbar
- func (transaction *EthereumFlow) GetNodeAccountIDs() []AccountID
- func (transaction *EthereumFlow) SetCallDataFileID(callData FileID) *EthereumFlow
- func (transaction *EthereumFlow) SetEthereumData(data *EthereumTransactionData) *EthereumFlow
- func (transaction *EthereumFlow) SetEthereumDataBytes(data []byte) *EthereumFlow
- func (transaction *EthereumFlow) SetMaxGasAllowance(max Hbar) *EthereumFlow
- func (transaction *EthereumFlow) SetNodeAccountIDs(nodes []AccountID) *EthereumFlow
- type EthereumLegacyTransaction
- type EthereumTransaction
- func (tx *EthereumTransaction) GetCallData() FileID
- func (tx *EthereumTransaction) GetEthereumData() []byte
- func (tx *EthereumTransaction) GetMaxGasAllowed() int64
- func (e EthereumTransaction) GetNodeAccountIDs() []AccountID
- func (tx *EthereumTransaction) SetCallData(file FileID) *EthereumTransaction
- func (tx *EthereumTransaction) SetCallDataFileID(file FileID) *EthereumTransaction
- func (tx *EthereumTransaction) SetEthereumData(data []byte) *EthereumTransaction
- func (tx *EthereumTransaction) SetMaxGasAllowanceHbar(gas Hbar) *EthereumTransaction
- func (tx *EthereumTransaction) SetMaxGasAllowed(gas int64) *EthereumTransaction
- type EthereumTransactionData
- type Event
- type ExchangeRate
- type Executable
- type Fee
- type FeeAssessmentMethod
- type FeeComponents
- type FeeData
- type FeeSchedule
- type FeeSchedules
- type FileAppendTransaction
- func (tx *FileAppendTransaction) Execute(client *Client) (TransactionResponse, error)
- func (tx *FileAppendTransaction) ExecuteAll(client *Client) ([]TransactionResponse, error)
- func (tx *FileAppendTransaction) FreezeWith(client *Client) (*FileAppendTransaction, error)
- func (tx *FileAppendTransaction) GetContents() []byte
- func (tx *FileAppendTransaction) GetFileID() FileID
- func (tx *FileAppendTransaction) GetMaxChunkSize() int
- func (tx *FileAppendTransaction) GetMaxChunks() uint64
- func (e FileAppendTransaction) GetNodeAccountIDs() []AccountID
- func (tx *FileAppendTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (tx *FileAppendTransaction) SetContents(contents []byte) *FileAppendTransaction
- func (tx *FileAppendTransaction) SetFileID(fileID FileID) *FileAppendTransaction
- func (tx *FileAppendTransaction) SetMaxChunkSize(size int) *FileAppendTransaction
- func (tx *FileAppendTransaction) SetMaxChunks(size uint64) *FileAppendTransaction
- type FileContentsQuery
- func (q *FileContentsQuery) Execute(client *Client) ([]byte, error)
- func (q *FileContentsQuery) GetCost(client *Client) (Hbar, error)
- func (q *FileContentsQuery) GetFileID() FileID
- func (e *FileContentsQuery) GetGrpcDeadline() *time.Duration
- func (e *FileContentsQuery) GetLogLevel() *LogLevel
- func (e *FileContentsQuery) GetMaxBackoff() time.Duration
- func (e *FileContentsQuery) GetMaxRetry() int
- func (e *FileContentsQuery) GetMinBackoff() time.Duration
- func (e *FileContentsQuery) GetNodeAccountIDs() []AccountID
- func (q *FileContentsQuery) SetFileID(fileID FileID) *FileContentsQuery
- func (q *FileContentsQuery) SetGrpcDeadline(deadline *time.Duration) *FileContentsQuery
- func (q *FileContentsQuery) SetLogLevel(level LogLevel) *FileContentsQuery
- func (q *FileContentsQuery) SetMaxBackoff(max time.Duration) *FileContentsQuery
- func (q *FileContentsQuery) SetMaxQueryPayment(maxPayment Hbar) *FileContentsQuery
- func (q *FileContentsQuery) SetMaxRetry(count int) *FileContentsQuery
- func (q *FileContentsQuery) SetMinBackoff(min time.Duration) *FileContentsQuery
- func (q *FileContentsQuery) SetNodeAccountIDs(accountID []AccountID) *FileContentsQuery
- func (q *FileContentsQuery) SetPaymentTransactionID(transactionID TransactionID) *FileContentsQuery
- func (q *FileContentsQuery) SetQueryPayment(paymentAmount Hbar) *FileContentsQuery
- type FileCreateTransaction
- func (tx *FileCreateTransaction) GetContents() []byte
- func (tx *FileCreateTransaction) GetExpirationTime() time.Time
- func (tx *FileCreateTransaction) GetKeys() KeyList
- func (tx *FileCreateTransaction) GetMemo() string
- func (e FileCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *FileCreateTransaction) SetContents(contents []byte) *FileCreateTransaction
- func (tx *FileCreateTransaction) SetExpirationTime(expiration time.Time) *FileCreateTransaction
- func (tx *FileCreateTransaction) SetKeys(keys ...Key) *FileCreateTransaction
- func (tx *FileCreateTransaction) SetMemo(memo string) *FileCreateTransaction
- type FileDeleteTransaction
- type FileID
- func FileIDForAddressBook() FileID
- func FileIDForExchangeRate() FileID
- func FileIDForFeeSchedule() FileID
- func FileIDFromBytes(data []byte) (FileID, error)
- func FileIDFromEvmAddress(shard uint64, realm uint64, evmAddress string) (FileID, error)
- func FileIDFromSolidityAddress(s string) (FileID, error)
- func FileIDFromString(data string) (FileID, error)
- func GetAddressBookFileIDFor(shard uint64, realm uint64) FileID
- func GetExchangeRatesFileIDFor(shard uint64, realm uint64) FileID
- func GetFeeScheduleFileIDFor(shard uint64, realm uint64) FileID
- func (id FileID) String() string
- func (id FileID) ToBytes() []byte
- func (id FileID) ToEvmAddress() string
- func (id FileID) ToSolidityAddress() string
- func (id FileID) ToStringWithChecksum(client Client) (string, error)
- func (id *FileID) Validate(client *Client) error
- func (id *FileID) ValidateChecksum(client *Client) error
- type FileInfo
- type FileInfoQuery
- func (q *FileInfoQuery) Execute(client *Client) (FileInfo, error)
- func (q *FileInfoQuery) GetCost(client *Client) (Hbar, error)
- func (q *FileInfoQuery) GetFileID() FileID
- func (e *FileInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *FileInfoQuery) GetLogLevel() *LogLevel
- func (e *FileInfoQuery) GetMaxBackoff() time.Duration
- func (e *FileInfoQuery) GetMaxRetry() int
- func (e *FileInfoQuery) GetMinBackoff() time.Duration
- func (e *FileInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *FileInfoQuery) SetFileID(fileID FileID) *FileInfoQuery
- func (q *FileInfoQuery) SetGrpcDeadline(deadline *time.Duration) *FileInfoQuery
- func (q *FileInfoQuery) SetLogLevel(level LogLevel) *FileInfoQuery
- func (q *FileInfoQuery) SetMaxBackoff(max time.Duration) *FileInfoQuery
- func (q *FileInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *FileInfoQuery
- func (q *FileInfoQuery) SetMaxRetry(count int) *FileInfoQuery
- func (q *FileInfoQuery) SetMinBackoff(min time.Duration) *FileInfoQuery
- func (q *FileInfoQuery) SetNodeAccountIDs(accountID []AccountID) *FileInfoQuery
- func (q *FileInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *FileInfoQuery
- func (q *FileInfoQuery) SetQueryPayment(paymentAmount Hbar) *FileInfoQuery
- type FileUpdateTransaction
- func (tx *FileUpdateTransaction) GeFileMemo() string
- func (tx *FileUpdateTransaction) GetContents() []byte
- func (tx *FileUpdateTransaction) GetExpirationTime() time.Time
- func (tx *FileUpdateTransaction) GetFileID() FileID
- func (tx *FileUpdateTransaction) GetFileMemo() string
- func (tx *FileUpdateTransaction) GetKeys() KeyList
- func (e FileUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *FileUpdateTransaction) SetContents(contents []byte) *FileUpdateTransaction
- func (tx *FileUpdateTransaction) SetExpirationTime(expiration time.Time) *FileUpdateTransaction
- func (tx *FileUpdateTransaction) SetFileID(fileID FileID) *FileUpdateTransaction
- func (tx *FileUpdateTransaction) SetFileMemo(memo string) *FileUpdateTransaction
- func (tx *FileUpdateTransaction) SetKeys(keys ...Key) *FileUpdateTransaction
- type FreezeTransaction
- func (tx *FreezeTransaction) GetEndTime() time.Time
- func (tx *FreezeTransaction) GetFileHash() []byte
- func (tx *FreezeTransaction) GetFileID() *FileID
- func (tx *FreezeTransaction) GetFreezeType() FreezeType
- func (e FreezeTransaction) GetNodeAccountIDs() []AccountID
- func (tx *FreezeTransaction) GetStartTime() time.Time
- func (tx *FreezeTransaction) SetEndTime(endTime time.Time) *FreezeTransaction
- func (tx *FreezeTransaction) SetFileHash(hash []byte) *FreezeTransaction
- func (tx *FreezeTransaction) SetFileID(id FileID) *FreezeTransaction
- func (tx *FreezeTransaction) SetFreezeType(freezeType FreezeType) *FreezeTransaction
- func (tx *FreezeTransaction) SetStartTime(startTime time.Time) *FreezeTransaction
- type FreezeType
- type Hash
- type Hbar
- type HbarAllowance
- type HbarUnit
- type Key
- type KeyList
- func (kl *KeyList) Add(key Key) *KeyList
- func (kl *KeyList) AddAll(keys []Key) *KeyList
- func (kl *KeyList) AddAllPublicKeys(keys []PublicKey) *KeyList
- func (kl KeyList) GetKeys() []Key
- func (kl KeyList) GetThreshold() int
- func (kl *KeyList) SetThreshold(threshold int) *KeyList
- func (kl KeyList) String() string
- type LedgerID
- type LiveHash
- type LiveHashAddTransactiondeprecated
- func (tx *LiveHashAddTransaction) GetAccountID() AccountID
- func (tx *LiveHashAddTransaction) GetDuration() time.Duration
- func (tx *LiveHashAddTransaction) GetHash() []byte
- func (tx *LiveHashAddTransaction) GetKeys() KeyList
- func (e LiveHashAddTransaction) GetNodeAccountIDs() []AccountID
- func (tx *LiveHashAddTransaction) SetAccountID(accountID AccountID) *LiveHashAddTransaction
- func (tx *LiveHashAddTransaction) SetDuration(duration time.Duration) *LiveHashAddTransaction
- func (tx *LiveHashAddTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashAddTransaction
- func (tx *LiveHashAddTransaction) SetHash(hash []byte) *LiveHashAddTransaction
- func (tx *LiveHashAddTransaction) SetKeys(keys ...Key) *LiveHashAddTransaction
- type LiveHashDeleteTransactiondeprecated
- func (tx *LiveHashDeleteTransaction) GetAccountID() AccountID
- func (tx *LiveHashDeleteTransaction) GetHash() []byte
- func (e LiveHashDeleteTransaction) GetNodeAccountIDs() []AccountID
- func (tx *LiveHashDeleteTransaction) SetAccountID(accountID AccountID) *LiveHashDeleteTransaction
- func (tx *LiveHashDeleteTransaction) SetHash(hash []byte) *LiveHashDeleteTransaction
- type LiveHashQuerydeprecated
- func NewLiveHashQuery() *LiveHashQuerydeprecated
- func (q *LiveHashQuery) Execute(client *Client) (LiveHash, error)
- func (q *LiveHashQuery) GetAccountID() AccountID
- func (q *LiveHashQuery) GetCost(client *Client) (Hbar, error)
- func (q *LiveHashQuery) GetGetHash() []byte
- func (e *LiveHashQuery) GetGrpcDeadline() *time.Duration
- func (e *LiveHashQuery) GetLogLevel() *LogLevel
- func (e *LiveHashQuery) GetMaxBackoff() time.Duration
- func (e *LiveHashQuery) GetMaxRetry() int
- func (e *LiveHashQuery) GetMinBackoff() time.Duration
- func (e *LiveHashQuery) GetNodeAccountIDs() []AccountID
- func (q *LiveHashQuery) SetAccountID(accountID AccountID) *LiveHashQuery
- func (q *LiveHashQuery) SetGrpcDeadline(deadline *time.Duration) *LiveHashQuery
- func (q *LiveHashQuery) SetHash(hash []byte) *LiveHashQuery
- func (q *LiveHashQuery) SetLogLevel(level LogLevel) *LiveHashQuery
- func (q *LiveHashQuery) SetMaxBackoff(max time.Duration) *LiveHashQuery
- func (q *LiveHashQuery) SetMaxQueryPayment(maxPayment Hbar) *LiveHashQuery
- func (q *LiveHashQuery) SetMaxRetry(count int) *LiveHashQuery
- func (q *LiveHashQuery) SetMinBackoff(min time.Duration) *LiveHashQuery
- func (q *LiveHashQuery) SetNodeAccountIDs(accountID []AccountID) *LiveHashQuery
- func (q *LiveHashQuery) SetPaymentTransactionID(transactionID TransactionID) *LiveHashQuery
- func (q *LiveHashQuery) SetQueryPayment(paymentAmount Hbar) *LiveHashQuery
- type Log
- type LogLevel
- type Logger
- type Method
- type MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) Execute(client *Client) (string, error)
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetBlockNumber() int64
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetCallData() []byte
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetContractEvmAddress() string
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetContractID() ContractID
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetGasLimit() int64
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetGasPrice() int64
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetSender() AccountID
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetSenderEvmAddress() string
- func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetValue() int64
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetBlockNumber(blockNumber int64) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetContractEvmAddress(contractEvmAddress string) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetContractID(contractID ContractID) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetFunction(name string, params *ContractFunctionParameters) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetFunctionParameters(byteArray []byte) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetGasLimit(gasLimit int64) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetGasPrice(gasPrice int64) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetSender(sender AccountID) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetSenderEvmAddress(senderEvmAddress string) *MirrorNodeContractCallQuery
- func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetValue(value int64) *MirrorNodeContractCallQuery
- type MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) Execute(client *Client) (uint64, error)
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetBlockNumber() int64
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetCallData() []byte
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetContractEvmAddress() string
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetContractID() ContractID
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetGasLimit() int64
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetGasPrice() int64
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetSender() AccountID
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetSenderEvmAddress() string
- func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetValue() int64
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetContractEvmAddress(contractEvmAddress string) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetContractID(contractID ContractID) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetFunction(name string, params *ContractFunctionParameters) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetFunctionParameters(byteArray []byte) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetGasLimit(gasLimit int64) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetGasPrice(gasPrice int64) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetSender(sender AccountID) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetSenderEvmAddress(senderEvmAddress string) *MirrorNodeContractEstimateGasQuery
- func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetValue(value int64) *MirrorNodeContractEstimateGasQuery
- type Mnemonic
- func (m Mnemonic) String() string
- func (m Mnemonic) ToLegacyPrivateKey() (PrivateKey, error)
- func (m Mnemonic) ToPrivateKey(passPhrase string) (PrivateKey, error)
- func (m Mnemonic) ToStandardECDSAsecp256k1PrivateKey(passPhrase string, index uint32) (PrivateKey, error)
- func (m Mnemonic) ToStandardECDSAsecp256k1PrivateKeyCustomDerivationPath(passPhrase string, derivationPath string) (PrivateKey, error)
- func (m Mnemonic) ToStandardEd25519PrivateKey(passPhrase string, index uint32) (PrivateKey, error)
- func (m Mnemonic) Words() []string
- type NetworkName
- type NetworkVersionInfo
- type NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) Execute(client *Client) (NetworkVersionInfo, error)
- func (q *NetworkVersionInfoQuery) GetCost(client *Client) (Hbar, error)
- func (e *NetworkVersionInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *NetworkVersionInfoQuery) GetLogLevel() *LogLevel
- func (e *NetworkVersionInfoQuery) GetMaxBackoff() time.Duration
- func (e *NetworkVersionInfoQuery) GetMaxRetry() int
- func (e *NetworkVersionInfoQuery) GetMinBackoff() time.Duration
- func (e *NetworkVersionInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *NetworkVersionInfoQuery) SetGrpcDeadline(deadline *time.Duration) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetLogLevel(level LogLevel) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetMaxBackoff(max time.Duration) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetMaxRetry(count int) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetMinBackoff(min time.Duration) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetNodeAccountIDs(accountID []AccountID) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *NetworkVersionInfoQuery
- func (q *NetworkVersionInfoQuery) SetQueryPayment(paymentAmount Hbar) *NetworkVersionInfoQuery
- type NftID
- type NodeAddress
- type NodeAddressBook
- type NodeCreateTransaction
- func (tx *NodeCreateTransaction) AddGossipEndpoint(endpoint Endpoint) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) AddServiceEndpoint(endpoint Endpoint) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) GetAccountID() AccountID
- func (tx *NodeCreateTransaction) GetAdminKey() Key
- func (tx *NodeCreateTransaction) GetDeclineReward() bool
- func (tx *NodeCreateTransaction) GetDescription() string
- func (tx *NodeCreateTransaction) GetGossipCaCertificate() []byte
- func (tx *NodeCreateTransaction) GetGossipEndpoints() []Endpoint
- func (tx *NodeCreateTransaction) GetGrpcCertificateHash() []byte
- func (tx *NodeCreateTransaction) GetGrpcWebProxyEndpoint() Endpoint
- func (e NodeCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *NodeCreateTransaction) GetServiceEndpoints() []Endpoint
- func (tx *NodeCreateTransaction) SetAccountID(accountID AccountID) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetAdminKey(adminKey Key) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetDeclineReward(declineReward bool) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetDescription(description string) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetGossipCaCertificate(gossipCaCertificate []byte) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetGossipEndpoints(gossipEndpoints []Endpoint) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetGrpcCertificateHash(grpcCertificateHash []byte) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetGrpcWebProxyEndpoint(grpcWebProxyEndpoint Endpoint) *NodeCreateTransaction
- func (tx *NodeCreateTransaction) SetServiceEndpoints(serviceEndpoints []Endpoint) *NodeCreateTransaction
- type NodeDeleteTransaction
- type NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) AddGossipEndpoint(endpoint Endpoint) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) AddServiceEndpoint(endpoint Endpoint) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) ClearDescription(description string) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) DeleteGrpcWebProxyEndpoint() *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) GetAccountID() AccountID
- func (tx *NodeUpdateTransaction) GetAdminKey() Key
- func (tx *NodeUpdateTransaction) GetDeclineReward() *bool
- func (tx *NodeUpdateTransaction) GetDescription() string
- func (tx *NodeUpdateTransaction) GetGossipCaCertificate() []byte
- func (tx *NodeUpdateTransaction) GetGossipEndpoints() []Endpoint
- func (tx *NodeUpdateTransaction) GetGrpcCertificateHash() []byte
- func (tx *NodeUpdateTransaction) GetGrpcWebProxyEndpoint() *Endpoint
- func (e NodeUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *NodeUpdateTransaction) GetNodeID() uint64
- func (tx *NodeUpdateTransaction) GetServiceEndpoints() []Endpoint
- func (tx *NodeUpdateTransaction) SetAccountID(accountID AccountID) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetAdminKey(adminKey Key) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetDeclineReward(declineReward bool) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetDescription(description string) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetGossipCaCertificate(gossipCaCertificate []byte) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetGossipEndpoints(gossipEndpoints []Endpoint) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetGrpcCertificateHash(grpcCertificateHash []byte) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetGrpcWebProxyEndpoint(grpcWebProxyEndpoint Endpoint) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetNodeID(nodeID uint64) *NodeUpdateTransaction
- func (tx *NodeUpdateTransaction) SetServiceEndpoints(serviceEndpoints []Endpoint) *NodeUpdateTransaction
- type PendingAirdropId
- func (pendingAirdropId *PendingAirdropId) GetNftID() *NftID
- func (pendingAirdropId *PendingAirdropId) GetReceiver() *AccountID
- func (pendingAirdropId *PendingAirdropId) GetSender() *AccountID
- func (pendingAirdropId *PendingAirdropId) GetTokenID() *TokenID
- func (pendingAirdropId *PendingAirdropId) NewPendingAirdropId() *PendingAirdropId
- func (pendingAirdropId *PendingAirdropId) SetNftID(nftID NftID) *PendingAirdropId
- func (pendingAirdropId *PendingAirdropId) SetReceiver(receiver AccountID) *PendingAirdropId
- func (pendingAirdropId *PendingAirdropId) SetSender(sender AccountID) *PendingAirdropId
- func (pendingAirdropId *PendingAirdropId) SetTokenID(tokenID TokenID) *PendingAirdropId
- func (pendingAirdropId *PendingAirdropId) String() string
- type PendingAirdropRecord
- type PopulateType
- type PrivateKey
- func GeneratePrivateKey() (PrivateKey, error)
- func PrivateKeyFromBytes(bytes []byte) (PrivateKey, error)
- func PrivateKeyFromBytesDer(bytes []byte) (PrivateKey, error)
- func PrivateKeyFromBytesECDSA(bytes []byte) (PrivateKey, error)
- func PrivateKeyFromBytesEd25519(bytes []byte) (PrivateKey, error)
- func PrivateKeyFromKeystore(ks []byte, passphrase string) (PrivateKey, error)
- func PrivateKeyFromMnemonic(mnemonic Mnemonic, passPhrase string) (PrivateKey, error)deprecated
- func PrivateKeyFromPem(bytes []byte, passphrase string) (PrivateKey, error)
- func PrivateKeyFromSeedECDSAsecp256k1(seed []byte) (PrivateKey, error)
- func PrivateKeyFromSeedEd25519(seed []byte) (PrivateKey, error)
- func PrivateKeyFromString(s string) (PrivateKey, error)
- func PrivateKeyFromStringDer(s string) (PrivateKey, error)
- func PrivateKeyFromStringECDSA(s string) (PrivateKey, error)
- func PrivateKeyFromStringECSDA(s string) (PrivateKey, error)deprecated
- func PrivateKeyFromStringEd25519(s string) (PrivateKey, error)
- func PrivateKeyGenerate() (PrivateKey, error)deprecated
- func PrivateKeyGenerateEcdsa() (PrivateKey, error)
- func PrivateKeyGenerateEd25519() (PrivateKey, error)
- func PrivateKeyReadKeystore(source io.Reader, passphrase string) (PrivateKey, error)
- func PrivateKeyReadPem(source io.Reader, passphrase string) (PrivateKey, error)
- func (sk PrivateKey) Bytes() []byte
- func (sk PrivateKey) BytesDer() []byte
- func (sk PrivateKey) BytesRaw() []byte
- func (sk PrivateKey) Derive(index uint32) (PrivateKey, error)
- func (sk PrivateKey) GetRecoveryId(r []byte, s []byte, message []byte) int
- func (sk PrivateKey) Keystore(passphrase string) ([]byte, error)
- func (sk PrivateKey) LegacyDerive(index int64) (PrivateKey, error)
- func (sk PrivateKey) PublicKey() PublicKey
- func (sk PrivateKey) Sign(message []byte) []byte
- func (sk PrivateKey) SignTransaction(tx TransactionInterface) ([]byte, error)
- func (sk PrivateKey) String() string
- func (sk PrivateKey) StringDer() string
- func (sk PrivateKey) StringRaw() string
- func (sk PrivateKey) SupportsDerivation() bool
- func (sk PrivateKey) ToAccountID(shard uint64, realm uint64) *AccountID
- func (sk PrivateKey) WriteKeystore(destination io.Writer, passphrase string) error
- type PrngTransaction
- type ProxyStaker
- type PublicKey
- func PublicKeyFromBytes(bytes []byte) (PublicKey, error)
- func PublicKeyFromBytesDer(bytes []byte) (PublicKey, error)
- func PublicKeyFromBytesECDSA(bytes []byte) (PublicKey, error)
- func PublicKeyFromBytesEd25519(bytes []byte) (PublicKey, error)
- func PublicKeyFromString(s string) (PublicKey, error)
- func PublicKeyFromStringECDSA(s string) (PublicKey, error)
- func PublicKeyFromStringEd25519(s string) (PublicKey, error)
- func ZeroKey() (PublicKey, error)
- func (pk PublicKey) Bytes() []byte
- func (pk PublicKey) BytesDer() []byte
- func (pk PublicKey) BytesRaw() []byte
- func (pk PublicKey) String() string
- func (pk PublicKey) StringDer() string
- func (pk PublicKey) StringRaw() string
- func (pk PublicKey) ToAccountID(shard uint64, realm uint64) *AccountID
- func (pk PublicKey) ToEthereumAddress() stringdeprecated
- func (pk PublicKey) ToEvmAddress() string
- func (pk PublicKey) Verify(message []byte, signature []byte) booldeprecated
- func (pk PublicKey) VerifySignedMessage(message []byte, signature []byte) bool
- func (pk PublicKey) VerifyTransaction(tx TransactionInterface) bool
- type Query
- func (e *Query) GetGrpcDeadline() *time.Duration
- func (e *Query) GetLogLevel() *LogLevel
- func (e *Query) GetMaxBackoff() time.Duration
- func (q *Query) GetMaxQueryPayment() Hbar
- func (e *Query) GetMaxRetry() int
- func (q *Query) GetMaxRetryCount() int
- func (e *Query) GetMinBackoff() time.Duration
- func (e *Query) GetNodeAccountIDs() []AccountID
- func (q *Query) GetPaymentTransactionID() TransactionID
- func (q *Query) GetQueryPayment() Hbar
- func (e *Query) SetGrpcDeadline(deadline *time.Duration) *executable
- func (e *Query) SetLogLevel(level LogLevel) *executable
- func (e *Query) SetMaxBackoff(max time.Duration) *executable
- func (q *Query) SetMaxQueryPayment(maxPayment Hbar) *Query
- func (e *Query) SetMaxRetry(max int) *executable
- func (e *Query) SetMinBackoff(min time.Duration) *executable
- func (e *Query) SetNodeAccountIDs(nodeAccountIDs []AccountID) *executable
- func (q *Query) SetPaymentTransactionID(transactionID TransactionID) *Query
- func (q *Query) SetQueryPayment(paymentAmount Hbar) *Query
- type QueryInterface
- type RLPItem
- func (item *RLPItem) AssignBytes(value []byte)
- func (item *RLPItem) AssignList()
- func (item *RLPItem) AssignString(value string)
- func (item *RLPItem) AssignValue(value []byte) *RLPItem
- func (item *RLPItem) Clear()
- func (item *RLPItem) GetChildItems() []*RLPItem
- func (item *RLPItem) GetItemValue() []byte
- func (item *RLPItem) PushBack(child *RLPItem)
- func (item *RLPItem) Read(bytes []byte) error
- func (item *RLPItem) Size() int
- func (item *RLPItem) Write() ([]byte, error)
- type RLPType
- type RequestType
- type ScheduleCreateTransaction
- func (tx *ScheduleCreateTransaction) GetAdminKey() *Key
- func (tx *ScheduleCreateTransaction) GetExpirationTime() time.Time
- func (e ScheduleCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *ScheduleCreateTransaction) GetPayerAccountID() AccountID
- func (tx *ScheduleCreateTransaction) GetScheduleMemo() string
- func (tx *ScheduleCreateTransaction) GetWaitForExpiry() bool
- func (tx *ScheduleCreateTransaction) SetAdminKey(key Key) *ScheduleCreateTransaction
- func (tx *ScheduleCreateTransaction) SetExpirationTime(time time.Time) *ScheduleCreateTransaction
- func (tx *ScheduleCreateTransaction) SetPayerAccountID(payerAccountID AccountID) *ScheduleCreateTransaction
- func (tx *ScheduleCreateTransaction) SetScheduleMemo(memo string) *ScheduleCreateTransaction
- func (tx *ScheduleCreateTransaction) SetScheduledTransaction(scheduledTx TransactionInterface) (*ScheduleCreateTransaction, error)
- func (tx *ScheduleCreateTransaction) SetWaitForExpiry(wait bool) *ScheduleCreateTransaction
- type ScheduleDeleteTransaction
- type ScheduleID
- type ScheduleInfo
- type ScheduleInfoQuery
- func (q *ScheduleInfoQuery) Execute(client *Client) (ScheduleInfo, error)
- func (q *ScheduleInfoQuery) GetCost(client *Client) (Hbar, error)
- func (e *ScheduleInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *ScheduleInfoQuery) GetLogLevel() *LogLevel
- func (e *ScheduleInfoQuery) GetMaxBackoff() time.Duration
- func (e *ScheduleInfoQuery) GetMaxRetry() int
- func (e *ScheduleInfoQuery) GetMinBackoff() time.Duration
- func (e *ScheduleInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *ScheduleInfoQuery) GetScheduleID() ScheduleID
- func (q *ScheduleInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetLogLevel(level LogLevel) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetMaxBackoff(max time.Duration) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetMaxRetry(count int) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetMinBackoff(min time.Duration) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetQueryPayment(paymentAmount Hbar) *ScheduleInfoQuery
- func (q *ScheduleInfoQuery) SetScheduleID(scheduleID ScheduleID) *ScheduleInfoQuery
- type ScheduleSignTransaction
- type SemanticVersion
- type SignableNodeTransactionBodyBytes
- type StakingInfo
- type Status
- type StorageChange
- type SubscriptionHandle
- type SystemDeleteTransactiondeprecated
- func (tx *SystemDeleteTransaction) GetContractID() ContractID
- func (tx *SystemDeleteTransaction) GetExpirationTime() int64
- func (tx *SystemDeleteTransaction) GetFileID() FileID
- func (e SystemDeleteTransaction) GetNodeAccountIDs() []AccountID
- func (tx *SystemDeleteTransaction) SetContractID(contractID ContractID) *SystemDeleteTransaction
- func (tx *SystemDeleteTransaction) SetExpirationTime(expiration time.Time) *SystemDeleteTransaction
- func (tx *SystemDeleteTransaction) SetFileID(fileID FileID) *SystemDeleteTransaction
- type SystemUndeleteTransactiondeprecated
- func (tx *SystemUndeleteTransaction) GetContractID() ContractID
- func (tx *SystemUndeleteTransaction) GetFileID() FileID
- func (e SystemUndeleteTransaction) GetNodeAccountIDs() []AccountID
- func (tx *SystemUndeleteTransaction) SetContractID(contractID ContractID) *SystemUndeleteTransaction
- func (tx *SystemUndeleteTransaction) SetFileID(fileID FileID) *SystemUndeleteTransaction
- type TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) AddApprovedTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32, ...) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) AddNftTransfer(nftID NftID, sender AccountID, receiver AccountID) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) AddTokenTransfer(tokenID TokenID, accountID AccountID, value int64) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) GetNftTransfers() map[TokenID][]_TokenNftTransfer
- func (e TokenAirdropTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenAirdropTransaction) GetTokenIDDecimals() map[TokenID]uint32
- func (tx *TokenAirdropTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer
- func (tx *TokenAirdropTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TokenAirdropTransaction
- func (tx *TokenAirdropTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TokenAirdropTransaction
- type TokenAllowance
- type TokenAssociateTransaction
- func (tx *TokenAssociateTransaction) AddTokenID(id TokenID) *TokenAssociateTransaction
- func (tx *TokenAssociateTransaction) GetAccountID() AccountID
- func (e TokenAssociateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenAssociateTransaction) GetTokenIDs() []TokenID
- func (tx *TokenAssociateTransaction) SetAccountID(accountID AccountID) *TokenAssociateTransaction
- func (tx *TokenAssociateTransaction) SetTokenIDs(ids ...TokenID) *TokenAssociateTransaction
- type TokenAssociation
- type TokenBalanceMap
- type TokenBurnTransaction
- func (tx *TokenBurnTransaction) GetAmmount() uint64deprecated
- func (tx *TokenBurnTransaction) GetAmount() uint64
- func (e TokenBurnTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenBurnTransaction) GetSerialNumbers() []int64
- func (tx *TokenBurnTransaction) GetTokenID() TokenID
- func (tx *TokenBurnTransaction) SetAmount(amount uint64) *TokenBurnTransaction
- func (tx *TokenBurnTransaction) SetSerialNumber(serial int64) *TokenBurnTransaction
- func (tx *TokenBurnTransaction) SetSerialNumbers(serial []int64) *TokenBurnTransaction
- func (tx *TokenBurnTransaction) SetTokenID(tokenID TokenID) *TokenBurnTransaction
- type TokenCancelAirdropTransaction
- func (tx *TokenCancelAirdropTransaction) AddPendingAirdropId(id PendingAirdropId) *TokenCancelAirdropTransaction
- func (e TokenCancelAirdropTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenCancelAirdropTransaction) GetPendingAirdropIds() []*PendingAirdropId
- func (tx *TokenCancelAirdropTransaction) SetPendingAirdropIds(ids []*PendingAirdropId) *TokenCancelAirdropTransaction
- type TokenClaimAirdropTransaction
- func (tx *TokenClaimAirdropTransaction) AddPendingAirdropId(id PendingAirdropId) *TokenClaimAirdropTransaction
- func (e TokenClaimAirdropTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenClaimAirdropTransaction) GetPendingAirdropIds() []*PendingAirdropId
- func (tx *TokenClaimAirdropTransaction) SetPendingAirdropIds(ids []*PendingAirdropId) *TokenClaimAirdropTransaction
- type TokenCreateTransaction
- func (tx *TokenCreateTransaction) GetAdminKey() Key
- func (tx *TokenCreateTransaction) GetAutoRenewAccount() AccountID
- func (tx *TokenCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *TokenCreateTransaction) GetCustomFees() []Fee
- func (tx *TokenCreateTransaction) GetDecimals() uint
- func (tx *TokenCreateTransaction) GetExpirationTime() time.Time
- func (tx *TokenCreateTransaction) GetFeeScheduleKey() Key
- func (tx *TokenCreateTransaction) GetFreezeDefault() bool
- func (tx *TokenCreateTransaction) GetFreezeKey() Key
- func (tx *TokenCreateTransaction) GetInitialSupply() uint64
- func (tx *TokenCreateTransaction) GetKycKey() Key
- func (tx *TokenCreateTransaction) GetMaxSupply() int64
- func (tx *TokenCreateTransaction) GetMetadataKey() Key
- func (e TokenCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenCreateTransaction) GetPauseKey() Key
- func (tx *TokenCreateTransaction) GetSupplyKey() Key
- func (tx *TokenCreateTransaction) GetSupplyType() TokenSupplyType
- func (tx *TokenCreateTransaction) GetTokenMemo() string
- func (tx *TokenCreateTransaction) GetTokenMetadata() []byte
- func (tx *TokenCreateTransaction) GetTokenName() string
- func (tx *TokenCreateTransaction) GetTokenSymbol() string
- func (tx *TokenCreateTransaction) GetTokenType() TokenType
- func (tx *TokenCreateTransaction) GetTreasuryAccountID() AccountID
- func (tx *TokenCreateTransaction) GetWipeKey() Key
- func (tx *TokenCreateTransaction) SetAdminKey(publicKey Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetAutoRenewAccount(autoRenewAccountID AccountID) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetCustomFees(customFee []Fee) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetDecimals(decimals uint) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetExpirationTime(expirationTime time.Time) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetFeeScheduleKey(key Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetFreezeDefault(freezeDefault bool) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetFreezeKey(publicKey Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetInitialSupply(initialSupply uint64) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetKycKey(publicKey Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetMaxSupply(maxSupply int64) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetMetadataKey(key Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetPauseKey(key Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetSupplyKey(publicKey Key) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetSupplyType(tokenSupply TokenSupplyType) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetTokenMemo(memo string) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetTokenMetadata(metadata []byte) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetTokenName(name string) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetTokenSymbol(symbol string) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetTokenType(t TokenType) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetTreasuryAccountID(treasuryAccountID AccountID) *TokenCreateTransaction
- func (tx *TokenCreateTransaction) SetWipeKey(publicKey Key) *TokenCreateTransaction
- type TokenDecimalMap
- type TokenDeleteTransaction
- type TokenDissociateTransaction
- func (tx *TokenDissociateTransaction) AddTokenID(id TokenID) *TokenDissociateTransaction
- func (tx *TokenDissociateTransaction) GetAccountID() AccountID
- func (e TokenDissociateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenDissociateTransaction) GetTokenIDs() []TokenID
- func (tx *TokenDissociateTransaction) SetAccountID(accountID AccountID) *TokenDissociateTransaction
- func (tx *TokenDissociateTransaction) SetTokenIDs(ids ...TokenID) *TokenDissociateTransaction
- type TokenFeeScheduleUpdateTransaction
- func (tx *TokenFeeScheduleUpdateTransaction) GetCustomFees() []Fee
- func (e TokenFeeScheduleUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenFeeScheduleUpdateTransaction) GetTokenID() TokenID
- func (tx *TokenFeeScheduleUpdateTransaction) SetCustomFees(fees []Fee) *TokenFeeScheduleUpdateTransaction
- func (tx *TokenFeeScheduleUpdateTransaction) SetTokenID(tokenID TokenID) *TokenFeeScheduleUpdateTransaction
- type TokenFreezeTransaction
- func (tx *TokenFreezeTransaction) GetAccountID() AccountID
- func (e TokenFreezeTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenFreezeTransaction) GetTokenID() TokenID
- func (tx *TokenFreezeTransaction) SetAccountID(accountID AccountID) *TokenFreezeTransaction
- func (tx *TokenFreezeTransaction) SetTokenID(tokenID TokenID) *TokenFreezeTransaction
- type TokenGrantKycTransaction
- func (tx *TokenGrantKycTransaction) GetAccountID() AccountID
- func (e TokenGrantKycTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenGrantKycTransaction) GetTokenID() TokenID
- func (tx *TokenGrantKycTransaction) SetAccountID(accountID AccountID) *TokenGrantKycTransaction
- func (tx *TokenGrantKycTransaction) SetTokenID(tokenID TokenID) *TokenGrantKycTransaction
- type TokenID
- func (id TokenID) Compare(given TokenID) int
- func (id *TokenID) Nft(serial int64) NftID
- func (id TokenID) String() string
- func (id TokenID) ToBytes() []byte
- func (id TokenID) ToEvmAddress() string
- func (id TokenID) ToSolidityAddress() string
- func (id TokenID) ToStringWithChecksum(client Client) (string, error)
- func (id *TokenID) Validate(client *Client) error
- func (id *TokenID) ValidateChecksum(client *Client) error
- type TokenInfo
- type TokenInfoQuery
- func (q *TokenInfoQuery) Execute(client *Client) (TokenInfo, error)
- func (q *TokenInfoQuery) GetCost(client *Client) (Hbar, error)
- func (e *TokenInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *TokenInfoQuery) GetLogLevel() *LogLevel
- func (e *TokenInfoQuery) GetMaxBackoff() time.Duration
- func (e *TokenInfoQuery) GetMaxRetry() int
- func (e *TokenInfoQuery) GetMinBackoff() time.Duration
- func (e *TokenInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *TokenInfoQuery) GetTokenID() TokenID
- func (q *TokenInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenInfoQuery
- func (q *TokenInfoQuery) SetLogLevel(level LogLevel) *TokenInfoQuery
- func (q *TokenInfoQuery) SetMaxBackoff(max time.Duration) *TokenInfoQuery
- func (q *TokenInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenInfoQuery
- func (q *TokenInfoQuery) SetMaxRetry(count int) *TokenInfoQuery
- func (q *TokenInfoQuery) SetMinBackoff(min time.Duration) *TokenInfoQuery
- func (q *TokenInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenInfoQuery
- func (q *TokenInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenInfoQuery
- func (q *TokenInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenInfoQuery
- func (q *TokenInfoQuery) SetTokenID(tokenID TokenID) *TokenInfoQuery
- type TokenKeyValidation
- type TokenMintTransaction
- func (tx *TokenMintTransaction) GetAmount() uint64
- func (tx *TokenMintTransaction) GetMetadatas() [][]byte
- func (e TokenMintTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenMintTransaction) GetTokenID() TokenID
- func (tx *TokenMintTransaction) SetAmount(amount uint64) *TokenMintTransaction
- func (tx *TokenMintTransaction) SetMetadata(meta []byte) *TokenMintTransaction
- func (tx *TokenMintTransaction) SetMetadatas(meta [][]byte) *TokenMintTransaction
- func (tx *TokenMintTransaction) SetTokenID(tokenID TokenID) *TokenMintTransaction
- type TokenNftAllowance
- type TokenNftInfo
- type TokenNftInfoQuery
- func (q *TokenNftInfoQuery) ByAccountID(id AccountID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) ByNftID(id NftID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) ByTokenID(id TokenID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) Execute(client *Client) ([]TokenNftInfo, error)
- func (q *TokenNftInfoQuery) GetAccountID() AccountID
- func (q *TokenNftInfoQuery) GetCost(client *Client) (Hbar, error)
- func (q *TokenNftInfoQuery) GetEnd() int64
- func (e *TokenNftInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *TokenNftInfoQuery) GetLogLevel() *LogLevel
- func (e *TokenNftInfoQuery) GetMaxBackoff() time.Duration
- func (e *TokenNftInfoQuery) GetMaxRetry() int
- func (e *TokenNftInfoQuery) GetMinBackoff() time.Duration
- func (q *TokenNftInfoQuery) GetNftID() NftID
- func (e *TokenNftInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *TokenNftInfoQuery) GetStart() int64
- func (q *TokenNftInfoQuery) GetTokenID() TokenID
- func (q *TokenNftInfoQuery) SetAccountID(id AccountID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetEnd(end int64) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetLogLevel(level LogLevel) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetMaxBackoff(max time.Duration) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetMaxRetry(count int) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetMinBackoff(min time.Duration) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetNftID(nftID NftID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetStart(start int64) *TokenNftInfoQuery
- func (q *TokenNftInfoQuery) SetTokenID(id TokenID) *TokenNftInfoQuery
- type TokenPauseTransaction
- type TokenRejectFlow
- func (tx *TokenRejectFlow) AddNftID(id NftID) *TokenRejectFlow
- func (tx *TokenRejectFlow) AddTokenID(id TokenID) *TokenRejectFlow
- func (tx *TokenRejectFlow) Execute(client *Client) (TransactionResponse, error)
- func (tx *TokenRejectFlow) FreezeWith(client *Client) (*TokenRejectFlow, error)
- func (tx *TokenRejectFlow) GetNftIDs() []NftID
- func (tx *TokenRejectFlow) GetOwnerID() AccountID
- func (tx *TokenRejectFlow) GetTokenIDs() []TokenID
- func (tx *TokenRejectFlow) SetNftIDs(ids ...NftID) *TokenRejectFlow
- func (tx *TokenRejectFlow) SetOwnerID(ownerID AccountID) *TokenRejectFlow
- func (tx *TokenRejectFlow) SetTokenIDs(ids ...TokenID) *TokenRejectFlow
- func (tx *TokenRejectFlow) Sign(privateKey PrivateKey) *TokenRejectFlow
- func (tx *TokenRejectFlow) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenRejectFlow
- type TokenRejectTransaction
- func (tx *TokenRejectTransaction) AddNftID(id NftID) *TokenRejectTransaction
- func (tx *TokenRejectTransaction) AddTokenID(id TokenID) *TokenRejectTransaction
- func (tx *TokenRejectTransaction) GetNftIDs() []NftID
- func (e TokenRejectTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenRejectTransaction) GetOwnerID() AccountID
- func (tx *TokenRejectTransaction) GetTokenIDs() []TokenID
- func (tx *TokenRejectTransaction) SetNftIDs(ids ...NftID) *TokenRejectTransaction
- func (tx *TokenRejectTransaction) SetOwnerID(ownerID AccountID) *TokenRejectTransaction
- func (tx *TokenRejectTransaction) SetTokenIDs(ids ...TokenID) *TokenRejectTransaction
- type TokenRelationship
- type TokenRevokeKycTransaction
- func (tx *TokenRevokeKycTransaction) GetAccountID() AccountID
- func (e TokenRevokeKycTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenRevokeKycTransaction) GetTokenID() TokenID
- func (tx *TokenRevokeKycTransaction) SetAccountID(accountID AccountID) *TokenRevokeKycTransaction
- func (tx *TokenRevokeKycTransaction) SetTokenID(tokenID TokenID) *TokenRevokeKycTransaction
- type TokenSupplyType
- type TokenTransfer
- type TokenType
- type TokenUnfreezeTransaction
- func (tx *TokenUnfreezeTransaction) GetAccountID() AccountID
- func (e TokenUnfreezeTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenUnfreezeTransaction) GetTokenID() TokenID
- func (tx *TokenUnfreezeTransaction) SetAccountID(accountID AccountID) *TokenUnfreezeTransaction
- func (tx *TokenUnfreezeTransaction) SetTokenID(tokenID TokenID) *TokenUnfreezeTransaction
- type TokenUnpauseTransaction
- type TokenUpdateNfts
- func (tx *TokenUpdateNfts) GetMetadata() *[]byte
- func (e TokenUpdateNfts) GetNodeAccountIDs() []AccountID
- func (tx *TokenUpdateNfts) GetSerialNumbers() []int64
- func (tx *TokenUpdateNfts) GetTokenID() *TokenID
- func (tx *TokenUpdateNfts) SetMetadata(metadata []byte) *TokenUpdateNfts
- func (tx *TokenUpdateNfts) SetSerialNumbers(serialNumbers []int64) *TokenUpdateNfts
- func (tx *TokenUpdateNfts) SetTokenID(tokenID TokenID) *TokenUpdateNfts
- type TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) GetAdminKey() Key
- func (tx *TokenUpdateTransaction) GetAutoRenewAccount() AccountID
- func (tx *TokenUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *TokenUpdateTransaction) GetExpirationTime() time.Time
- func (tx *TokenUpdateTransaction) GetFeeScheduleKey() Key
- func (tx *TokenUpdateTransaction) GetFreezeKey() Key
- func (tx *TokenUpdateTransaction) GetKeyVerificationMode() TokenKeyValidation
- func (tx *TokenUpdateTransaction) GetKycKey() Key
- func (tx *TokenUpdateTransaction) GetMetadataKey() Key
- func (e TokenUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenUpdateTransaction) GetPauseKey() Key
- func (tx *TokenUpdateTransaction) GetSupplyKey() Key
- func (tx *TokenUpdateTransaction) GetTokenID() TokenID
- func (tx *TokenUpdateTransaction) GetTokenMemo() string
- func (tx *TokenUpdateTransaction) GetTokenMetadata() []byte
- func (tx *TokenUpdateTransaction) GetTokenName() string
- func (tx *TokenUpdateTransaction) GetTokenSymbol() string
- func (tx *TokenUpdateTransaction) GetTreasuryAccountID() AccountID
- func (tx *TokenUpdateTransaction) GetWipeKey() Key
- func (tx *TokenUpdateTransaction) SetAdminKey(publicKey Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetAutoRenewAccount(autoRenewAccountID AccountID) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetAutoRenewPeriodSeconds(autoRenewPeriod int64) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetExpirationTime(expirationTime time.Time) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetFeeScheduleKey(key Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetFreezeKey(publicKey Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetKeyVerificationMode(verificationMode TokenKeyValidation) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetKycKey(publicKey Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetMetadataKey(key Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetPauseKey(publicKey Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetSupplyKey(publicKey Key) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetTokenID(tokenID TokenID) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetTokenMemo(memo string) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetTokenMetadata(metadata []byte) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetTokenName(name string) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetTokenSymbol(symbol string) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetTreasuryAccountID(treasuryAccountID AccountID) *TokenUpdateTransaction
- func (tx *TokenUpdateTransaction) SetWipeKey(publicKey Key) *TokenUpdateTransaction
- type TokenWipeTransaction
- func (tx *TokenWipeTransaction) GetAccountID() AccountID
- func (tx *TokenWipeTransaction) GetAmount() uint64
- func (e TokenWipeTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TokenWipeTransaction) GetSerialNumbers() []int64
- func (tx *TokenWipeTransaction) GetTokenID() TokenID
- func (tx *TokenWipeTransaction) SetAccountID(accountID AccountID) *TokenWipeTransaction
- func (tx *TokenWipeTransaction) SetAmount(amount uint64) *TokenWipeTransaction
- func (tx *TokenWipeTransaction) SetSerialNumbers(serial []int64) *TokenWipeTransaction
- func (tx *TokenWipeTransaction) SetTokenID(tokenID TokenID) *TokenWipeTransaction
- type TopicCreateTransaction
- func (tx *TopicCreateTransaction) AddCustomFee(fee *CustomFixedFee) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) AddFeeExemptKey(key Key) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) ClearCustomFees() *TopicCreateTransaction
- func (tx *TopicCreateTransaction) ClearFeeExemptKeys() *TopicCreateTransaction
- func (tx *TopicCreateTransaction) GetAdminKey() (Key, error)
- func (tx *TopicCreateTransaction) GetAutoRenewAccountID() AccountID
- func (tx *TopicCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *TopicCreateTransaction) GetCustomFees() []*CustomFixedFee
- func (tx *TopicCreateTransaction) GetFeeExemptKeys() []Key
- func (tx *TopicCreateTransaction) GetFeeScheduleKey() Key
- func (e TopicCreateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TopicCreateTransaction) GetSubmitKey() (Key, error)
- func (tx *TopicCreateTransaction) GetTopicMemo() string
- func (tx *TopicCreateTransaction) SetAdminKey(publicKey Key) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetAutoRenewAccountID(autoRenewAccountID AccountID) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetAutoRenewPeriod(period time.Duration) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetCustomFees(fees []*CustomFixedFee) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetFeeExemptKeys(keys []Key) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetFeeScheduleKey(publicKey Key) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetSubmitKey(publicKey Key) *TopicCreateTransaction
- func (tx *TopicCreateTransaction) SetTopicMemo(memo string) *TopicCreateTransaction
- type TopicDeleteTransaction
- type TopicID
- func (id TopicID) String() string
- func (id TopicID) ToBytes() []byte
- func (id TopicID) ToEvmAddress() string
- func (id TopicID) ToSolidityAddress() string
- func (id TopicID) ToStringWithChecksum(client Client) (string, error)
- func (id *TopicID) Validate(client *Client) error
- func (id *TopicID) ValidateChecksum(client *Client) error
- type TopicInfo
- type TopicInfoQuery
- func (q *TopicInfoQuery) Execute(client *Client) (TopicInfo, error)
- func (q *TopicInfoQuery) GetCost(client *Client) (Hbar, error)
- func (e *TopicInfoQuery) GetGrpcDeadline() *time.Duration
- func (e *TopicInfoQuery) GetLogLevel() *LogLevel
- func (e *TopicInfoQuery) GetMaxBackoff() time.Duration
- func (e *TopicInfoQuery) GetMaxRetry() int
- func (e *TopicInfoQuery) GetMinBackoff() time.Duration
- func (e *TopicInfoQuery) GetNodeAccountIDs() []AccountID
- func (q *TopicInfoQuery) GetTopicID() TopicID
- func (q *TopicInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TopicInfoQuery
- func (q *TopicInfoQuery) SetLogLevel(level LogLevel) *TopicInfoQuery
- func (q *TopicInfoQuery) SetMaxBackoff(max time.Duration) *TopicInfoQuery
- func (q *TopicInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TopicInfoQuery
- func (q *TopicInfoQuery) SetMaxRetry(count int) *TopicInfoQuery
- func (q *TopicInfoQuery) SetMinBackoff(min time.Duration) *TopicInfoQuery
- func (q *TopicInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TopicInfoQuery
- func (q *TopicInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TopicInfoQuery
- func (q *TopicInfoQuery) SetQueryPayment(paymentAmount Hbar) *TopicInfoQuery
- func (q *TopicInfoQuery) SetTopicID(topicID TopicID) *TopicInfoQuery
- type TopicMessage
- type TopicMessageChunk
- type TopicMessageQuery
- func (query *TopicMessageQuery) GetEndTime() time.Time
- func (query *TopicMessageQuery) GetLimit() uint64
- func (query *TopicMessageQuery) GetMaxAttempts() uint64
- func (query *TopicMessageQuery) GetStartTime() time.Time
- func (query *TopicMessageQuery) GetTopicID() TopicID
- func (query *TopicMessageQuery) SetCompletionHandler(completionHandler func()) *TopicMessageQuery
- func (query *TopicMessageQuery) SetEndTime(endTime time.Time) *TopicMessageQuery
- func (query *TopicMessageQuery) SetErrorHandler(errorHandler func(stat status.Status)) *TopicMessageQuery
- func (query *TopicMessageQuery) SetLimit(limit uint64) *TopicMessageQuery
- func (query *TopicMessageQuery) SetMaxAttempts(maxAttempts uint64) *TopicMessageQuery
- func (query *TopicMessageQuery) SetRetryHandler(retryHandler func(err error) bool) *TopicMessageQuery
- func (query *TopicMessageQuery) SetStartTime(startTime time.Time) *TopicMessageQuery
- func (query *TopicMessageQuery) SetTopicID(topicID TopicID) *TopicMessageQuery
- func (query *TopicMessageQuery) Subscribe(client *Client, onNext func(TopicMessage)) (SubscriptionHandle, error)
- type TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) AddCustomFeeLimit(customFeeLimit *CustomFeeLimit) *TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) ClearCustomFeeLimits() *TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) Execute(client *Client) (TransactionResponse, error)
- func (tx *TopicMessageSubmitTransaction) ExecuteAll(client *Client) ([]TransactionResponse, error)
- func (tx *TopicMessageSubmitTransaction) Freeze() (*TopicMessageSubmitTransaction, error)
- func (tx *TopicMessageSubmitTransaction) FreezeWith(client *Client) (*TopicMessageSubmitTransaction, error)
- func (tx *TopicMessageSubmitTransaction) GetChunkSize() uint64
- func (tx *TopicMessageSubmitTransaction) GetCustomFeeLimits() []*CustomFeeLimit
- func (tx *TopicMessageSubmitTransaction) GetMaxChunks() uint64
- func (tx *TopicMessageSubmitTransaction) GetMessage() []byte
- func (e TopicMessageSubmitTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TopicMessageSubmitTransaction) GetTopicID() TopicID
- func (tx *TopicMessageSubmitTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (tx *TopicMessageSubmitTransaction) SetChunkSize(chunkSize uint64) *TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) SetCustomFeeLimits(customFeeLimits []*CustomFeeLimit) *TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) SetMaxChunks(maxChunks uint64) *TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) SetMessage(message interface{}) *TopicMessageSubmitTransaction
- func (tx *TopicMessageSubmitTransaction) SetTopicID(topicID TopicID) *TopicMessageSubmitTransaction
- type TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) AddCustomFee(fee *CustomFixedFee) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) AddFeeExemptKey(key Key) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) ClearAdminKey() *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) ClearAutoRenewAccountID() *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) ClearCustomFees() *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) ClearFeeExemptKeys() *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) ClearSubmitKey() *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) ClearTopicMemo() *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) GetAdminKey() (Key, error)
- func (tx *TopicUpdateTransaction) GetAutoRenewAccountID() AccountID
- func (tx *TopicUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (tx *TopicUpdateTransaction) GetCustomFees() []*CustomFixedFee
- func (tx *TopicUpdateTransaction) GetExpirationTime() time.Time
- func (tx *TopicUpdateTransaction) GetFeeExemptKeys() []Key
- func (tx *TopicUpdateTransaction) GetFeeScheduleKey() Key
- func (e TopicUpdateTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TopicUpdateTransaction) GetSubmitKey() (Key, error)
- func (tx *TopicUpdateTransaction) GetTopicID() TopicID
- func (tx *TopicUpdateTransaction) GetTopicMemo() string
- func (tx *TopicUpdateTransaction) SetAdminKey(publicKey Key) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetAutoRenewAccountID(autoRenewAccountID AccountID) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetAutoRenewPeriod(period time.Duration) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetCustomFees(fees []*CustomFixedFee) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetExpirationTime(expiration time.Time) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetFeeExemptKeys(keys []Key) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetFeeScheduleKey(publicKey Key) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetSubmitKey(publicKey Key) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetTopicID(topicID TopicID) *TopicUpdateTransaction
- func (tx *TopicUpdateTransaction) SetTopicMemo(memo string) *TopicUpdateTransaction
- type Transaction
- func (tx *Transaction[T]) AddSignature(publicKey PublicKey, signature []byte) T
- func (tx *Transaction[T]) AddSignatureV2(publicKey PublicKey, signature []byte, transactionID TransactionID, ...) (T, error)
- func (tx *Transaction[T]) Batchify(client *Client, batchKey Key) (T, error)
- func (tx *Transaction[T]) Execute(client *Client) (TransactionResponse, error)
- func (tx *Transaction[T]) Freeze() (T, error)
- func (tx *Transaction[T]) FreezeWith(client *Client) (T, error)
- func (tx *Transaction[T]) GetBatchKey() Key
- func (tx *Transaction[T]) GetDefaultMaxTransactionFee() Hbar
- func (tx *Transaction[T]) GetGrpcDeadline() *time.Duration
- func (tx *Transaction[T]) GetLogLevel() *LogLevel
- func (tx *Transaction[T]) GetMaxBackoff() time.Duration
- func (tx *Transaction[T]) GetMaxRetry() int
- func (tx *Transaction[T]) GetMaxTransactionFee() Hbar
- func (tx *Transaction[T]) GetMinBackoff() time.Duration
- func (e Transaction) GetNodeAccountIDs() []AccountID
- func (tx *Transaction[T]) GetRegenerateTransactionID() bool
- func (tx *Transaction[T]) GetSignableNodeBodyBytesList() ([]SignableNodeTransactionBodyBytes, error)
- func (tx *Transaction[T]) GetSignatures() (map[AccountID]map[*PublicKey][]byte, error)
- func (tx *Transaction[T]) GetSignedTransactionBodyBytes(transactionIndex int) []byte
- func (tx *Transaction[T]) GetTransactionBodySize() (int, error)
- func (tx *Transaction[T]) GetTransactionBodySizeAllChunks() ([]int, error)
- func (tx *Transaction[T]) GetTransactionHash() ([]byte, error)
- func (tx *Transaction[T]) GetTransactionHashPerNode() (map[AccountID][]byte, error)
- func (tx *Transaction[T]) GetTransactionID() TransactionID
- func (tx *Transaction[T]) GetTransactionMemo() string
- func (tx *Transaction[T]) GetTransactionSize() (int, error)
- func (tx *Transaction[T]) GetTransactionValidDuration() time.Duration
- func (tx *Transaction[T]) IsFrozen() bool
- func (tx *Transaction[T]) Schedule() (*ScheduleCreateTransaction, error)
- func (tx *Transaction[T]) SetBatchKey(batchKey Key) T
- func (tx *Transaction[T]) SetGrpcDeadline(deadline *time.Duration) T
- func (tx *Transaction[T]) SetLogLevel(level LogLevel) T
- func (tx *Transaction[T]) SetMaxBackoff(max time.Duration) T
- func (tx *Transaction[T]) SetMaxRetry(max int) T
- func (tx *Transaction[T]) SetMaxTransactionFee(fee Hbar) T
- func (tx *Transaction[T]) SetMinBackoff(min time.Duration) T
- func (tx *Transaction[T]) SetNodeAccountIDs(nodeAccountIDs []AccountID) T
- func (tx *Transaction[T]) SetRegenerateTransactionID(regenerateTransactionID bool) T
- func (tx *Transaction[T]) SetTransactionID(transactionID TransactionID) T
- func (tx *Transaction[T]) SetTransactionMemo(memo string) T
- func (tx *Transaction[T]) SetTransactionValidDuration(duration time.Duration) T
- func (tx *Transaction[T]) Sign(privateKey PrivateKey) T
- func (tx *Transaction[T]) SignWith(publicKey PublicKey, signer TransactionSigner) T
- func (tx *Transaction[T]) SignWithOperator(client *Client) (T, error)
- func (tx *Transaction[T]) String() string
- func (tx *Transaction[T]) ToBytes() ([]byte, error)
- type TransactionFeeSchedule
- type TransactionID
- func NewTransactionIDWithValidStart(accountID AccountID, validStart time.Time) TransactionID
- func TransactionGetTransactionID(tx TransactionInterface) (TransactionID, error)
- func TransactionIDFromBytes(data []byte) (TransactionID, error)
- func TransactionIDGenerate(accountID AccountID) TransactionID
- func TransactionIdFromString(data string) (TransactionID, error)
- func (id TransactionID) GetNonce() int32
- func (id TransactionID) GetReceipt(client *Client) (TransactionReceipt, error)
- func (id TransactionID) GetRecord(client *Client) (TransactionRecord, error)
- func (id TransactionID) GetScheduled() bool
- func (id TransactionID) SetNonce(nonce int32) TransactionID
- func (id TransactionID) SetScheduled(scheduled bool) TransactionID
- func (id TransactionID) String() string
- func (id TransactionID) ToBytes() []byte
- type TransactionInterface
- func TransactionAddSignature(tx TransactionInterface, publicKey PublicKey, signature []byte) (TransactionInterface, error)
- func TransactionFreezeWith(tx TransactionInterface, client *Client) (TransactionInterface, error)
- func TransactionFromBytes(data []byte) (TransactionInterface, error)
- func TransactionSetMaxBackoff(tx TransactionInterface, maxBackoff time.Duration) (TransactionInterface, error)
- func TransactionSetMaxTransactionFee(tx TransactionInterface, maxTransactionFee Hbar) (TransactionInterface, error)
- func TransactionSetMinBackoff(tx TransactionInterface, minBackoff time.Duration) (TransactionInterface, error)
- func TransactionSetNodeAccountIDs(tx TransactionInterface, nodeAccountIDs []AccountID) (TransactionInterface, error)
- func TransactionSetTransactionID(tx TransactionInterface, transactionID TransactionID) (TransactionInterface, error)
- func TransactionSetTransactionMemo(tx TransactionInterface, transactionMemo string) (TransactionInterface, error)
- func TransactionSetTransactionValidDuration(tx TransactionInterface, transactionValidDuration time.Duration) (TransactionInterface, error)
- func TransactionSign(tx TransactionInterface, key PrivateKey) (TransactionInterface, error)
- func TransactionSignWithOperator(tx TransactionInterface, client *Client) (TransactionInterface, error)
- func TransactionSignWth(tx TransactionInterface, publicKKey PublicKey, signer TransactionSigner) (TransactionInterface, error)
- type TransactionReceipt
- type TransactionReceiptQuery
- func (q *TransactionReceiptQuery) Execute(client *Client) (TransactionReceipt, error)
- func (q *TransactionReceiptQuery) GetCost(client *Client) (Hbar, error)
- func (e *TransactionReceiptQuery) GetGrpcDeadline() *time.Duration
- func (q *TransactionReceiptQuery) GetIncludeChildren() bool
- func (q *TransactionReceiptQuery) GetIncludeDuplicates() bool
- func (e *TransactionReceiptQuery) GetLogLevel() *LogLevel
- func (e *TransactionReceiptQuery) GetMaxBackoff() time.Duration
- func (e *TransactionReceiptQuery) GetMaxRetry() int
- func (e *TransactionReceiptQuery) GetMinBackoff() time.Duration
- func (e *TransactionReceiptQuery) GetNodeAccountIDs() []AccountID
- func (q *TransactionReceiptQuery) GetTransactionID() TransactionID
- func (q *TransactionReceiptQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetIncludeChildren(includeChildReceipts bool) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetLogLevel(level LogLevel) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetMaxBackoff(max time.Duration) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetMaxRetry(count int) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetMinBackoff(min time.Duration) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetQueryPayment(queryPayment Hbar) *TransactionReceiptQuery
- func (q *TransactionReceiptQuery) SetTransactionID(transactionID TransactionID) *TransactionReceiptQuery
- type TransactionRecord
- func (record TransactionRecord) GetContractCreateResult() (ContractFunctionResult, error)
- func (record TransactionRecord) GetContractExecuteResult() (ContractFunctionResult, error)
- func (record TransactionRecord) MarshalJSON() ([]byte, error)
- func (record TransactionRecord) ToBytes() []byte
- func (record TransactionRecord) ValidateReceiptStatus(shouldValidate bool) error
- type TransactionRecordQuery
- func (q *TransactionRecordQuery) Execute(client *Client) (TransactionRecord, error)
- func (q *TransactionRecordQuery) GetCost(client *Client) (Hbar, error)
- func (e *TransactionRecordQuery) GetGrpcDeadline() *time.Duration
- func (q *TransactionRecordQuery) GetIncludeChildren() bool
- func (q *TransactionRecordQuery) GetIncludeDuplicates() bool
- func (e *TransactionRecordQuery) GetLogLevel() *LogLevel
- func (e *TransactionRecordQuery) GetMaxBackoff() time.Duration
- func (e *TransactionRecordQuery) GetMaxRetry() int
- func (e *TransactionRecordQuery) GetMinBackoff() time.Duration
- func (e *TransactionRecordQuery) GetNodeAccountIDs() []AccountID
- func (q *TransactionRecordQuery) GetTransactionID() TransactionID
- func (q *TransactionRecordQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetIncludeChildren(includeChildRecords bool) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetLogLevel(level LogLevel) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetMaxBackoff(max time.Duration) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetMaxRetry(count int) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetMinBackoff(min time.Duration) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetQueryPayment(queryPayment Hbar) *TransactionRecordQuery
- func (q *TransactionRecordQuery) SetTransactionID(transactionID TransactionID) *TransactionRecordQuery
- type TransactionResponse
- func (response TransactionResponse) GetIncludeChildren() bool
- func (response *TransactionResponse) GetReceipt(client *Client) (TransactionReceipt, error)
- func (response TransactionResponse) GetReceiptQuery() *TransactionReceiptQuery
- func (response *TransactionResponse) GetRecord(client *Client) (TransactionRecord, error)
- func (response TransactionResponse) GetRecordQuery() *TransactionRecordQuery
- func (response TransactionResponse) GetValidateStatus() bool
- func (response TransactionResponse) MarshalJSON() ([]byte, error)
- func (response TransactionResponse) SetIncludeChildren(include bool) *TransactionResponse
- func (response TransactionResponse) SetValidateStatus(validate bool) *TransactionResponse
- type TransactionSigner
- type Transfer
- type TransferTransaction
- func (tx *TransferTransaction) AddApprovedHbarTransfer(accountID AccountID, amount Hbar, approve bool) *TransferTransaction
- func (tx *TransferTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TransferTransaction
- func (tx *TransferTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TransferTransaction
- func (tx *TransferTransaction) AddApprovedTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32, ...) *TransferTransaction
- func (tx *TransferTransaction) AddHbarTransfer(accountID AccountID, amount Hbar) *TransferTransaction
- func (tx *TransferTransaction) AddNftTransfer(nftID NftID, sender AccountID, receiver AccountID) *TransferTransaction
- func (tx *TransferTransaction) AddTokenTransfer(tokenID TokenID, accountID AccountID, value int64) *TransferTransaction
- func (tx *TransferTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TransferTransaction
- func (tx *TransferTransaction) GetHbarTransfers() map[AccountID]Hbar
- func (tx *TransferTransaction) GetNftTransfers() map[TokenID][]_TokenNftTransfer
- func (e TransferTransaction) GetNodeAccountIDs() []AccountID
- func (tx *TransferTransaction) GetTokenIDDecimals() map[TokenID]uint32
- func (tx *TransferTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer
- func (tx *TransferTransaction) SetHbarTransferApproval(spenderAccountID AccountID, approval bool) *TransferTransaction
- func (tx *TransferTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TransferTransaction
- func (tx *TransferTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TransferTransaction
- type TupleElem
- type Type
- func (t *Type) Decode(input []byte) (interface{}, error)
- func (t *Type) DecodeStruct(input []byte, out interface{}) error
- func (t *Type) Elem() *Type
- func (t *Type) Encode(v interface{}) ([]byte, error)
- func (t *Type) Format(includeArgs bool) string
- func (t *Type) GoType() reflect.Type
- func (t *Type) InternalType() string
- func (t *Type) Kind() AbiTypeKind
- func (t *Type) Size() int
- func (t *Type) String() string
- func (t *Type) TupleElems() []*TupleElem
Constants ¶
const ( // BitsPerWord represents the number of bits in a big.Word BitsPerWord = 32 << (uint64(^big.Word(0)) >> 63) // BytesPerWord represents the number of bytes in a big.Word BytesPerWord = BitsPerWord / 8 )
const Aes128Ctr = "aes-128-ctr"
const HmacSha256 = "hmac-sha256"
Variables ¶
var ( // ErrInvalidMnemonic is returned when trying to use a malformed mnemonic. ErrInvalidMnemonic = errors.New("invalid mnenomic") // ErrEntropyLengthInvalid is returned when trying to use an entropy set with // an invalid size. ErrEntropyLengthInvalid = errors.New("entropy length must be [128, 256] and a multiple of 32") // ErrValidatedSeedLengthMismatch is returned when a validated seed is not the // same size as the given seed. This should never happen is present only as a // sanity assertion. ErrValidatedSeedLengthMismatch = errors.New("seed length does not match validated seed length") // ErrChecksumIncorrect is returned when entropy has the incorrect checksum. ErrChecksumIncorrect = errors.New("checksum incorrect") )
var ( MaxBig256Value = new(big.Int).Set(bigLimit256Minus1) MaxBig63Value = new(big.Int).Sub(bigLimit63, big.NewInt(1)) )
Various big integer constants for limits.
var English = strings.Split(strings.TrimSpace(english), "\n")
English is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/english.txt
var HbarUnits = struct { Tinybar HbarUnit Microbar HbarUnit Millibar HbarUnit Hbar HbarUnit Kilobar HbarUnit Megabar HbarUnit Gigabar HbarUnit }{ Tinybar: HbarUnit("tinybar"), Microbar: HbarUnit("microbar"), Millibar: HbarUnit("millibar"), Hbar: HbarUnit("hbar"), Kilobar: HbarUnit("kilobar"), Megabar: HbarUnit("megabar"), Gigabar: HbarUnit("gigabar"), }
HbarUnits is a set of HbarUnit
var MaxHbar = Hbar{math.MaxInt64}
MaxHbar is the maximum amount the Hbar type can wrap.
var MinHbar = Hbar{math.MinInt64}
MinHbar is the minimum amount the Hbar type can wrap.
var ZeroHbar = Hbar{0}
ZeroHbar wraps a 0 value of Hbar.
Functions ¶
func AccountInfoFlowVerifySignature ¶
func AccountInfoFlowVerifySignature(client *Client, accountID AccountID, message []byte, signature []byte) (bool, error)
AccountInfoFlowVerifySignature Verifies signature using AccountInfoQuery
func AccountInfoFlowVerifyTransaction ¶
func AccountInfoFlowVerifyTransaction(client *Client, accountID AccountID, tx TransactionInterface, _ []byte) (bool, error)
AccountInfoFlowVerifyTransaction Verifies transaction using AccountInfoQuery
func CompressPubkey ¶
func CompressPubkey(pubKey *secp256k1.PublicKey) []byte
func DecodeStruct ¶
DecodeStruct decodes the input with a type to a struct
func EntropyFromMnemonic ¶ added in v2.65.0
EntropyFromMnemonic takes a mnemonic generated by this library, and returns the input entropy used to generate the given mnemonic. An error is returned if the given mnemonic is invalid.
func FillBytes ¶
FillBytes fills a byte slice with the absolute value of a big integer in big-endian order. The caller must ensure the buffer has enough space, otherwise the result will be truncated.
func GetWordIndex ¶ added in v2.65.0
GetWordIndex gets word index in wordMap.
func GetWordList ¶ added in v2.65.0
func GetWordList() []string
GetWordList gets the list of words to use for mnemonics.
func IsMnemonicValid ¶ added in v2.65.0
IsMnemonicValid attempts to verify that the provided mnemonic is valid. Validity is determined by both the number of words being appropriate, and that all the words in the mnemonic are present in the word list.
func KeyToBytes ¶
func MnemonicToByteArray ¶ added in v2.65.0
MnemonicToByteArray takes a mnemonic string and turns it into a byte array suitable for creating another mnemonic. An error is returned if the mnemonic is invalid.
func NewEntropy ¶ added in v2.65.0
NewEntropy will create random entropy bytes so long as the requested size bitSize is an appropriate size.
bitSize has to be a multiple 32 and be within the inclusive range of {128, 256}
func NewMnemonicBip ¶ added in v2.65.0
NewMnemonic will return a string consisting of the mnemonic words for the given entropy. If the provide entropy is invalid, an error will be returned.
func NewSeed ¶ added in v2.65.0
NewSeed creates a hashed seed output given a provided string and password. No checking is performed to validate that the string provided is a valid mnemonic.
func NewSeedWithErrorChecking ¶ added in v2.65.0
NewSeedWithErrorChecking creates a hashed seed output given the mnemonic string and a password. An error is returned if the mnemonic is not convertible to a byte array.
func NftTransferFromBytes ¶
TokenNftTransfersFromBytes returns the TokenNftTransfer from a raw protobuf bytes representation
func To256Bit ¶
To256Bit truncates the input number to a 256-bit two's complement. This modifies the input.
func To256BitBytes ¶
To256BitBytes converts a big integer into a 32-byte slice in big-endian order.
func ToPaddedBytes ¶
ToPaddedBytes converts a big integer into a byte slice in big-endian order, ensuring the slice is at least n bytes long.
func ToSigned256 ¶
ToSigned256 converts the input number to its 256-bit two's complement signed representation. The input must not exceed 256 bits.
func TransactionGetMaxBackoff ¶
func TransactionGetMaxBackoff(tx TransactionInterface) (time.Duration, error)
func TransactionGetMinBackoff ¶
func TransactionGetMinBackoff(tx TransactionInterface) (time.Duration, error)
func TransactionGetSignatures ¶
func TransactionGetSignatures(tx TransactionInterface) (map[AccountID]map[*PublicKey][]byte, error)
func TransactionGetTransactionHash ¶
func TransactionGetTransactionHash(tx TransactionInterface) ([]byte, error)
func TransactionGetTransactionHashPerNode ¶
func TransactionGetTransactionHashPerNode(tx TransactionInterface) (map[AccountID][]byte, error)
func TransactionGetTransactionMemo ¶
func TransactionGetTransactionMemo(tx TransactionInterface) (string, error)
func TransactionGetTransactionValidDuration ¶
func TransactionGetTransactionValidDuration(tx TransactionInterface) (time.Duration, error)
func TransactionString ¶
func TransactionString(tx TransactionInterface) (string, error)
func TransactionToBytes ¶
func TransactionToBytes(tx TransactionInterface) ([]byte, error)
func ValidateEnglish ¶ added in v2.65.0
func ValidateEnglish() error
func VerifySignature
deprecated
Deprecated: Use PublicKey.VerifySignedMessage instead.
Types ¶
type ABI ¶
type ABI struct { Constructor *Method Methods map[string]*Method MethodsBySignature map[string]*Method Events map[string]*Event Errors map[string]*Error }
ABI represents the ethereum abi format
func NewABIFromReader ¶
NewABIFromReader returns an ABI object from a reader
func (*ABI) GetMethodBySignature ¶
func (*ABI) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface nolint
type AbiTypeKind ¶
type AbiTypeKind int
AbiTypeKind represents the kind of abi type
const ( // KindBool is a boolean KindBool AbiTypeKind = iota // KindUInt is an uint KindUInt // KindInt is an int KindInt // KindString is a string KindString // KindArray is an array KindArray // KindSlice is a slice KindSlice // KindAddress is an address KindAddress // KindBytes is a bytes array KindBytes // KindFixedBytes is a fixed bytes KindFixedBytes // KindFixedPoint is a fixed point KindFixedPoint // KindTuple is a tuple KindTuple // KindFunction is a function KindFunction )
func (AbiTypeKind) String ¶
func (k AbiTypeKind) String() string
type AccountAllowanceApproveTransaction ¶
type AccountAllowanceApproveTransaction struct { *Transaction[*AccountAllowanceApproveTransaction] // contains filtered or unexported fields }
AccountAllowanceApproveTransaction Creates one or more hbar/token approved allowances <b>relative to the owner account specified in the allowances of tx transaction</b>. Each allowance grants a spender the right to transfer a pre-determined amount of the owner's hbar/token to any other account of the spender's choice. If the owner is not specified in any allowance, the payer of transaction is considered to be the owner for that particular allowance. Setting the amount to zero in CryptoAllowance or TokenAllowance will remove the respective allowance for the spender.
(So if account <tt>0.0.X</tt> pays for this transaction and owner is not specified in the allowance, then at consensus each spender account will have new allowances to spend hbar or tokens from <tt>0.0.X</tt>).
func NewAccountAllowanceApproveTransaction ¶
func NewAccountAllowanceApproveTransaction() *AccountAllowanceApproveTransaction
NewAccountAllowanceApproveTransaction Creates an AccountAloowanceApproveTransaction which creates one or more hbar/token approved allowances relative to the owner account specified in the allowances of tx transaction. Each allowance grants a spender the right to transfer a pre-determined amount of the owner's hbar/token to any other account of the spender's choice. If the owner is not specified in any allowance, the payer of transaction is considered to be the owner for that particular allowance. Setting the amount to zero in CryptoAllowance or TokenAllowance will remove the respective allowance for the spender.
(So if account 0.0.X pays for this transaction and owner is not specified in the allowance, then at consensus each spender account will have new allowances to spend hbar or tokens from 0.0.X).
func (*AccountAllowanceApproveTransaction) AddAllTokenNftApproval ¶
func (tx *AccountAllowanceApproveTransaction) AddAllTokenNftApproval(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
AddAllTokenNftApproval Approve allowance of non-fungible token transfers for a spender. Spender has access to all of the owner's NFT units of type tokenId (currently owned and any in the future).
func (*AccountAllowanceApproveTransaction) AddHbarApproval ¶
func (tx *AccountAllowanceApproveTransaction) AddHbarApproval(id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
AddHbarApproval Deprecated - Use ApproveHbarAllowance instead
func (*AccountAllowanceApproveTransaction) AddTokenApproval ¶
func (tx *AccountAllowanceApproveTransaction) AddTokenApproval(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
Deprecated - Use ApproveTokenAllowance instead
func (*AccountAllowanceApproveTransaction) AddTokenNftApproval ¶
func (tx *AccountAllowanceApproveTransaction) AddTokenNftApproval(nftID NftID, accountID AccountID) *AccountAllowanceApproveTransaction
AddTokenNftApproval Deprecated - Use ApproveTokenNftAllowance instead
func (*AccountAllowanceApproveTransaction) ApproveHbarAllowance ¶
func (tx *AccountAllowanceApproveTransaction) ApproveHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
ApproveHbarAllowance Approves allowance of hbar transfers for a spender.
func (*AccountAllowanceApproveTransaction) ApproveHbarApproval ¶
func (tx *AccountAllowanceApproveTransaction) ApproveHbarApproval(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
ApproveHbarApproval Deprecated - Use ApproveHbarAllowance instead
func (*AccountAllowanceApproveTransaction) ApproveTokenAllowance ¶
func (tx *AccountAllowanceApproveTransaction) ApproveTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
ApproveTokenAllowance Approve allowance of fungible token transfers for a spender.
func (*AccountAllowanceApproveTransaction) ApproveTokenApproval ¶
func (tx *AccountAllowanceApproveTransaction) ApproveTokenApproval(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
ApproveTokenApproval Deprecated - Use ApproveTokenAllowance instead
func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowance ¶
func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
ApproveTokenNftAllowance Approve allowance of non-fungible token transfers for a spender.
func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials ¶
func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
ApproveTokenNftAllowanceAllSerials Approve allowance of non-fungible token transfers for a spender. Spender has access to all of the owner's NFT units of type tokenId (currently owned and any in the future).
func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceWithDelegatingSpender ¶
func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceWithDelegatingSpender(nftID NftID, ownerAccountID AccountID, spenderAccountId AccountID, delegatingSpenderAccountID AccountID) *AccountAllowanceApproveTransaction
func (*AccountAllowanceApproveTransaction) ApproveTokenNftApproval ¶
func (tx *AccountAllowanceApproveTransaction) ApproveTokenNftApproval(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
ApproveTokenNftApproval Deprecated - Use ApproveTokenNftAllowance instead
func (*AccountAllowanceApproveTransaction) DeleteTokenNftAllowanceAllSerials ¶
func (tx *AccountAllowanceApproveTransaction) DeleteTokenNftAllowanceAllSerials(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
DeleteTokenNftAllowanceAllSerials Revokes an allowance that permits a spender to transfer all of the owner's non-fungible tokens (NFTs) of a specific type (tokenId). This action applies to both the NFTs currently owned by the owner and any future NFTs of the same type.
func (*AccountAllowanceApproveTransaction) GetHbarAllowances ¶
func (tx *AccountAllowanceApproveTransaction) GetHbarAllowances() []*HbarAllowance
List of hbar allowance records
func (AccountAllowanceApproveTransaction) GetNodeAccountIDs ¶
func (e AccountAllowanceApproveTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountAllowanceApproveTransaction) GetTokenAllowances ¶
func (tx *AccountAllowanceApproveTransaction) GetTokenAllowances() []*TokenAllowance
List of token allowance records
func (*AccountAllowanceApproveTransaction) GetTokenNftAllowances ¶
func (tx *AccountAllowanceApproveTransaction) GetTokenNftAllowances() []*TokenNftAllowance
List of NFT allowance records
type AccountAllowanceDeleteTransaction ¶
type AccountAllowanceDeleteTransaction struct { *Transaction[*AccountAllowanceDeleteTransaction] // contains filtered or unexported fields }
AccountAllowanceDeleteTransaction 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 CryptoApproveAllowance.
func NewAccountAllowanceDeleteTransaction ¶
func NewAccountAllowanceDeleteTransaction() *AccountAllowanceDeleteTransaction
NewAccountAllowanceDeleteTransaction Creates AccountAllowanceDeleteTransaction whoch 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 CryptoApproveAllowance.
func (*AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances ¶
func (tx *AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances(ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
Deprecated
func (*AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances ¶
func (tx *AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances(tokenID TokenID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
Deprecated
func (*AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances ¶
func (tx *AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances(nftID NftID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
DeleteAllTokenNftAllowances The non-fungible token allowance/allowances to remove.
func (*AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances ¶
func (tx *AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances() []*HbarAllowance
Deprecated
func (*AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances ¶
func (tx *AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances() []*TokenAllowance
Deprecated
func (*AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances ¶
func (tx *AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances() []*TokenNftAllowance
GetAllTokenNftDeleteAllowances Get the non-fungible token allowance/allowances that will be removed.
func (AccountAllowanceDeleteTransaction) GetNodeAccountIDs ¶
func (e AccountAllowanceDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
type AccountBalance ¶
type AccountBalance struct { Hbars Hbar // Deprecated: Use `AccountBalance.Tokens` instead Token map[TokenID]uint64 Tokens TokenBalanceMap TokenDecimals TokenDecimalMap }
type AccountBalanceQuery ¶
type AccountBalanceQuery struct { Query // contains filtered or unexported fields }
AccountBalanceQuery gets the balance of a CryptoCurrency account. This returns only the balance, so it is a smaller and faster reply than AccountInfoQuery, which returns the balance plus additional information.
func NewAccountBalanceQuery ¶
func NewAccountBalanceQuery() *AccountBalanceQuery
NewAccountBalanceQuery creates an AccountBalanceQuery query which can be used to construct and execute an AccountBalanceQuery. It is recommended that you use this for creating new instances of an AccountBalanceQuery instead of manually creating an instance of the struct.
func (*AccountBalanceQuery) Execute ¶
func (q *AccountBalanceQuery) Execute(client *Client) (AccountBalance, error)
Execute executes the query with the provided client
func (*AccountBalanceQuery) GetAccountID ¶
func (q *AccountBalanceQuery) GetAccountID() AccountID
GetAccountID returns the AccountID for which you wish to query the balance.
func (*AccountBalanceQuery) GetContractID ¶
func (q *AccountBalanceQuery) GetContractID() ContractID
GetContractID returns the ContractID for which you wish to query the balance.
func (*AccountBalanceQuery) GetCost ¶
func (q *AccountBalanceQuery) GetCost(client *Client) (Hbar, error)
func (*AccountBalanceQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*AccountBalanceQuery) GetLogLevel ¶
func (e *AccountBalanceQuery) GetLogLevel() *LogLevel
func (*AccountBalanceQuery) GetMaxBackoff ¶
func (*AccountBalanceQuery) GetMaxRetry ¶
func (e *AccountBalanceQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*AccountBalanceQuery) GetMinBackoff ¶
func (*AccountBalanceQuery) GetNodeAccountIDs ¶
func (e *AccountBalanceQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountBalanceQuery) SetAccountID ¶
func (q *AccountBalanceQuery) SetAccountID(accountID AccountID) *AccountBalanceQuery
SetAccountID sets the AccountID for which you wish to query the balance.
Note: you can only query an Account or Contract but not both -- if a Contract ID or Account ID has already been set, it will be overwritten by this _Method.
func (*AccountBalanceQuery) SetContractID ¶
func (q *AccountBalanceQuery) SetContractID(contractID ContractID) *AccountBalanceQuery
SetContractID sets the ContractID for which you wish to query the balance.
Note: you can only query an Account or Contract but not both -- if a Contract ID or Account ID has already been set, it will be overwritten by this _Method.
func (*AccountBalanceQuery) SetGrpcDeadline ¶
func (q *AccountBalanceQuery) SetGrpcDeadline(deadline *time.Duration) *AccountBalanceQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountBalanceQuery) SetLogLevel ¶
func (q *AccountBalanceQuery) SetLogLevel(level LogLevel) *AccountBalanceQuery
func (*AccountBalanceQuery) SetMaxBackoff ¶
func (q *AccountBalanceQuery) SetMaxBackoff(max time.Duration) *AccountBalanceQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*AccountBalanceQuery) SetMaxQueryPayment ¶
func (q *AccountBalanceQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountBalanceQuery
SetMaxQueryPayment sets the maximum payment allowed for this query.
func (*AccountBalanceQuery) SetMaxRetry ¶
func (q *AccountBalanceQuery) SetMaxRetry(count int) *AccountBalanceQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountBalanceQuery) SetMinBackoff ¶
func (q *AccountBalanceQuery) SetMinBackoff(min time.Duration) *AccountBalanceQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountBalanceQuery) SetNodeAccountIDs ¶
func (q *AccountBalanceQuery) SetNodeAccountIDs(accountID []AccountID) *AccountBalanceQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountBalanceQuery.
func (*AccountBalanceQuery) SetPaymentTransactionID ¶
func (q *AccountBalanceQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountBalanceQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountBalanceQuery) SetQueryPayment ¶
func (q *AccountBalanceQuery) SetQueryPayment(paymentAmount Hbar) *AccountBalanceQuery
SetQueryPayment sets the payment amount for this query.
type AccountCreateTransaction ¶
type AccountCreateTransaction struct { *Transaction[*AccountCreateTransaction] // contains filtered or unexported fields }
AccountCreateTransaction creates a new account. After the account is created, the AccountID for it is in the receipt, or by asking for a Record of the transaction to be created, and retrieving that. The account can then automatically generate records for large transfers into it or out of it, which each last for 25 hours. Records are generated for any transfer that exceeds the thresholds given here. This account is charged hbar for each record generated, so the thresholds are useful for limiting Record generation to happen only for large transactions.
The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0 and realm 0, with a null key. Future versions of the API will support multiple realms and multiple shards.
func NewAccountCreateTransaction ¶
func NewAccountCreateTransaction() *AccountCreateTransaction
NewAccountCreateTransaction creates an AccountCreateTransaction transaction which can be used to construct and execute a Crypto Create Transaction.
func (*AccountCreateTransaction) GetAccountMemo ¶
func (tx *AccountCreateTransaction) GetAccountMemo() string
GetAccountMemo Gets the memo associated with the account (UTF-8 encoding max 100 bytes)
func (*AccountCreateTransaction) GetAlias ¶
func (tx *AccountCreateTransaction) GetAlias() []byte
func (*AccountCreateTransaction) GetAutoRenewPeriod ¶
func (tx *AccountCreateTransaction) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the time duration for when account is charged to extend its expiration date.
func (*AccountCreateTransaction) GetDeclineStakingReward ¶
func (tx *AccountCreateTransaction) GetDeclineStakingReward() bool
GetDeclineStakingReward returns true if the account declines receiving a staking reward.
func (*AccountCreateTransaction) GetInitialBalance ¶
func (tx *AccountCreateTransaction) GetInitialBalance() Hbar
GetInitialBalance returns the initial number of Hbar to put into the account
func (*AccountCreateTransaction) GetKey ¶
func (tx *AccountCreateTransaction) GetKey() (Key, error)
GetKey returns the key that must sign each transfer out of the account.
func (*AccountCreateTransaction) GetMaxAutomaticTokenAssociations ¶
func (tx *AccountCreateTransaction) GetMaxAutomaticTokenAssociations() int32
GetMaxAutomaticTokenAssociations returns the maximum number of tokens that an Account can be implicitly associated with.
func (AccountCreateTransaction) GetNodeAccountIDs ¶
func (e AccountCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountCreateTransaction) GetProxyAccountID ¶
func (tx *AccountCreateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*AccountCreateTransaction) GetReceiverSignatureRequired ¶
func (tx *AccountCreateTransaction) GetReceiverSignatureRequired() bool
GetReceiverSignatureRequired returns the receiverSigRequired flag.
func (*AccountCreateTransaction) GetStakedAccountID ¶
func (tx *AccountCreateTransaction) GetStakedAccountID() AccountID
GetStakedAccountID returns the account to which this account will stake.
func (*AccountCreateTransaction) GetStakedNodeID ¶
func (tx *AccountCreateTransaction) GetStakedNodeID() int64
GetStakedNodeID returns the node to which this account will stake
func (*AccountCreateTransaction) SetAccountMemo ¶
func (tx *AccountCreateTransaction) SetAccountMemo(memo string) *AccountCreateTransaction
SetAccountMemo Sets the memo associated with the account (UTF-8 encoding max 100 bytes)
func (*AccountCreateTransaction) SetAlias ¶
func (tx *AccountCreateTransaction) SetAlias(evmAddress string) *AccountCreateTransaction
func (*AccountCreateTransaction) SetAutoRenewPeriod ¶
func (tx *AccountCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountCreateTransaction
SetAutoRenewPeriod sets the time duration for when account is charged to extend its expiration date. When the account is created, the payer account is charged enough hbars so that the new account will not expire for the next auto renew period. When it reaches the expiration time, the new account will then be automatically charged to renew for another auto renew period. If it does not have enough hbars to renew for that long, then the remaining hbars are used to extend its expiration as long as possible. If it is has a zero balance when it expires, then it is deleted. Min value for this property 2,592,000 seconds Max value for this property is 8,000,001 seconds
func (*AccountCreateTransaction) SetDeclineStakingReward ¶
func (tx *AccountCreateTransaction) SetDeclineStakingReward(decline bool) *AccountCreateTransaction
SetDeclineStakingReward If set to true, the account declines receiving a staking reward. The default value is false.
func (*AccountCreateTransaction) SetECDSAKeyWithAlias ¶ added in v2.55.0
func (tx *AccountCreateTransaction) SetECDSAKeyWithAlias(ecdsaKey Key) *AccountCreateTransaction
SetECDSAKeyWithAlias sets ECDSA private key, derives and sets it's EVM address in the background. Essentially does SetKey and SetAlias in one call.
func (*AccountCreateTransaction) SetInitialBalance ¶
func (tx *AccountCreateTransaction) SetInitialBalance(initialBalance Hbar) *AccountCreateTransaction
SetInitialBalance sets the initial number of Hbar to put into the account
func (*AccountCreateTransaction) SetKey
deprecated
func (tx *AccountCreateTransaction) SetKey(key Key) *AccountCreateTransaction
Deprecated: Use SetKeyWithoutAlias
func (*AccountCreateTransaction) SetKeyWithAlias ¶ added in v2.55.0
func (tx *AccountCreateTransaction) SetKeyWithAlias(key Key, ecdsaKey Key) *AccountCreateTransaction
SetKeyWithAlias sets the account key and a separate ECDSA key that the EVM address is derived from. A user must sign the transaction with both keys for this flow to be successful.
func (*AccountCreateTransaction) SetKeyWithoutAlias ¶ added in v2.55.0
func (tx *AccountCreateTransaction) SetKeyWithoutAlias(key Key) *AccountCreateTransaction
SetKeyWithoutAlias sets the key that must sign each transfer out of the account. If RecieverSignatureRequired is true, then it must also sign any transfer into the account.
func (*AccountCreateTransaction) SetMaxAutomaticTokenAssociations ¶
func (tx *AccountCreateTransaction) SetMaxAutomaticTokenAssociations(max int32) *AccountCreateTransaction
SetMaxAutomaticTokenAssociations Set the maximum number of tokens that an Account can be implicitly associated with. Defaults to 0 and up to a maximum value of 5000.
func (*AccountCreateTransaction) SetProxyAccountID ¶
func (tx *AccountCreateTransaction) SetProxyAccountID(id AccountID) *AccountCreateTransaction
Deprecated SetProxyAccountID sets the ID of the account to which this account is proxy staked. If proxyAccountID is not set, is an invalid account, or is an account that isn't a _Node, then this account is automatically proxy staked to a _Node chosen by the _Network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking , or if it is not currently running a _Node, then it will behave as if proxyAccountID was not set.
func (*AccountCreateTransaction) SetReceiverSignatureRequired ¶
func (tx *AccountCreateTransaction) SetReceiverSignatureRequired(required bool) *AccountCreateTransaction
SetReceiverSignatureRequired sets the receiverSigRequired flag. If the receiverSigRequired flag is set to true, then all cryptocurrency transfers must be signed by this account's key, both for transfers in and out. If it is false, then only transfers out have to be signed by it. This transaction must be signed by the payer account. If receiverSigRequired is false, then the transaction does not have to be signed by the keys in the keys field. If it is true, then it must be signed by them, in addition to the keys of the payer account.
func (*AccountCreateTransaction) SetStakedAccountID ¶
func (tx *AccountCreateTransaction) SetStakedAccountID(id AccountID) *AccountCreateTransaction
SetStakedAccountID Set the account to which this account will stake.
func (*AccountCreateTransaction) SetStakedNodeID ¶
func (tx *AccountCreateTransaction) SetStakedNodeID(id int64) *AccountCreateTransaction
SetStakedNodeID Set the node to which this account will stake
type AccountDeleteTransaction ¶
type AccountDeleteTransaction struct { *Transaction[*AccountDeleteTransaction] // contains filtered or unexported fields }
AccountDeleteTransaction Mark an account as deleted, moving all its current hbars to another account. It will remain in the ledger, marked as deleted, until it expires. Transfers into it a deleted account fail. But a deleted account can still have its expiration extended in the normal way.
func NewAccountDeleteTransaction ¶
func NewAccountDeleteTransaction() *AccountDeleteTransaction
NewAccountDeleteTransaction creates AccountDeleteTransaction which marks an account as deleted, moving all its current hbars to another account. It will remain in the ledger, marked as deleted, until it expires. Transfers into it a deleted account fail. But a deleted account can still have its expiration extended in the normal way.
func (*AccountDeleteTransaction) GetAccountID ¶
func (tx *AccountDeleteTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID which will be deleted.
func (AccountDeleteTransaction) GetNodeAccountIDs ¶
func (e AccountDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountDeleteTransaction) GetTransferAccountID ¶
func (tx *AccountDeleteTransaction) GetTransferAccountID() AccountID
GetTransferAccountID returns the AccountID which will receive all remaining hbars.
func (*AccountDeleteTransaction) SetAccountID ¶
func (tx *AccountDeleteTransaction) SetAccountID(accountID AccountID) *AccountDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) SetTransferAccountID ¶
func (tx *AccountDeleteTransaction) SetTransferAccountID(transferAccountID AccountID) *AccountDeleteTransaction
SetTransferAccountID sets the AccountID which will receive all remaining hbars.
type AccountID ¶
type AccountID struct { Shard uint64 Realm uint64 Account uint64 AliasKey *PublicKey AliasEvmAddress *[]byte // contains filtered or unexported fields }
AccountID is the ID for a Hiero account
func AccountIDFromBytes ¶
AccountIDFromBytes converts wire-format encoding to Account ID
func AccountIDFromEvmAddress ¶
AccountIDFromEvmAddress constructs an AccountID from a string formatted as shard.realm.<evm address>
func AccountIDFromEvmPublicAddress ¶
Returns an AccountID with EvmPublic address for the use of HIP-583
func AccountIDFromSolidityAddress ¶
AccountIDFromSolidityAddress constructs an AccountID from a string representation of a _Solidity address Deprecated: Use AccountIDFromEvmAddress instead
func AccountIDFromString ¶
AccountIDFromString constructs an AccountID from a string formatted as `Shard.Realm.Account` (for example "0.0.3")
func TransactionGetNodeAccountIDs ¶
func TransactionGetNodeAccountIDs(tx TransactionInterface) ([]AccountID, error)
func (AccountID) Equals ¶
Equals returns true if this AccountID and the given AccountID are identical
func (AccountID) GetChecksum ¶
GetChecksum Retrieve just the checksum
func (*AccountID) PopulateAccount ¶
PopulateAccount gets the actual `Account` field of the `AccountId` from the Mirror Node. Should be used after generating `AccountId.FromEvmAddress()` because it sets the `Account` field to `0` automatically since there is no connection between the `Account` and the `evmAddress`
func (*AccountID) PopulateEvmAddress ¶
PopulateEvmAddress gets the actual `AliasEvmAddress` field of the `AccountId` from the Mirror Node.
func (AccountID) String ¶
String returns the string representation of an AccountID in `Shard.Realm.Account` (for example "0.0.3")
func (AccountID) ToEvmAddress ¶ added in v2.66.0
ToEvmAddress returns EVM-compatible address representation of the entity
func (AccountID) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of the AccountID as a _Solidity address. Deprecated: Use ToEvmAddress instead
func (AccountID) ToStringWithChecksum ¶
ToStringWithChecksum returns the string representation of an AccountID in `Shard.Realm.Account-checksum` (for example "0.0.3-sdaf")
func (*AccountID) UnmarshalJSON ¶
UnmarshalJSON implements the encoding.JSON interface.
func (*AccountID) ValidateChecksum ¶
Verify that the client has a valid checksum.
type AccountInfo ¶
type AccountInfo struct { AccountID AccountID ContractAccountID string IsDeleted bool // Deprecated ProxyAccountID AccountID ProxyReceived Hbar Key Key Balance Hbar GenerateSendRecordThreshold Hbar GenerateReceiveRecordThreshold Hbar ReceiverSigRequired bool ExpirationTime time.Time AutoRenewPeriod time.Duration LiveHashes []*LiveHash TokenRelationships []*TokenRelationship AccountMemo string OwnedNfts int64 MaxAutomaticTokenAssociations uint32 AliasKey *PublicKey LedgerID LedgerID // Deprecated HbarAllowances []HbarAllowance // Deprecated NftAllowances []TokenNftAllowance // Deprecated TokenAllowances []TokenAllowance EthereumNonce int64 StakingInfo *StakingInfo }
AccountInfo is info about the account returned from an AccountInfoQuery
func AccountInfoFromBytes ¶
func AccountInfoFromBytes(data []byte) (AccountInfo, error)
AccountInfoFromBytes returns an AccountInfo from byte array
func (AccountInfo) ToBytes ¶
func (info AccountInfo) ToBytes() []byte
ToBytes returns the serialized bytes of an AccountInfo
type AccountInfoQuery ¶
type AccountInfoQuery struct { Query // contains filtered or unexported fields }
AccountInfoQuery Get all the information about an account, including the balance. This does not get the list of account records.
func NewAccountInfoQuery ¶
func NewAccountInfoQuery() *AccountInfoQuery
NewAccountInfoQuery Creates an AccountInfoQuery which retrieves all the information about an account, including the balance. This does not get the list of account records.
func (*AccountInfoQuery) Execute ¶
func (q *AccountInfoQuery) Execute(client *Client) (AccountInfo, error)
Execute executes the Query with the provided client
func (*AccountInfoQuery) GetAccountID ¶
func (q *AccountInfoQuery) GetAccountID() AccountID
GetAccountID returns the AccountID for this AccountInfoQuery.
func (*AccountInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*AccountInfoQuery) GetLogLevel ¶
func (e *AccountInfoQuery) GetLogLevel() *LogLevel
func (*AccountInfoQuery) GetMaxBackoff ¶
func (*AccountInfoQuery) GetMaxRetry ¶
func (e *AccountInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*AccountInfoQuery) GetMinBackoff ¶
func (*AccountInfoQuery) GetNodeAccountIDs ¶
func (e *AccountInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountInfoQuery) SetAccountID ¶
func (q *AccountInfoQuery) SetAccountID(accountID AccountID) *AccountInfoQuery
SetAccountID sets the AccountID for this AccountInfoQuery.
func (*AccountInfoQuery) SetGrpcDeadline ¶
func (q *AccountInfoQuery) SetGrpcDeadline(deadline *time.Duration) *AccountInfoQuery
SetGrpcDeadline When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountInfoQuery) SetLogLevel ¶
func (q *AccountInfoQuery) SetLogLevel(level LogLevel) *AccountInfoQuery
func (*AccountInfoQuery) SetMaxBackoff ¶
func (q *AccountInfoQuery) SetMaxBackoff(max time.Duration) *AccountInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*AccountInfoQuery) SetMaxQueryPayment ¶
func (q *AccountInfoQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *AccountInfoQuery
SetMaxQueryPayment sets the maximum payment allowable for this query.
func (*AccountInfoQuery) SetMaxRetry ¶
func (q *AccountInfoQuery) SetMaxRetry(count int) *AccountInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountInfoQuery) SetMinBackoff ¶
func (q *AccountInfoQuery) SetMinBackoff(min time.Duration) *AccountInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountInfoQuery) SetNodeAccountIDs ¶
func (q *AccountInfoQuery) SetNodeAccountIDs(accountID []AccountID) *AccountInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountInfoQuery.
func (*AccountInfoQuery) SetPaymentTransactionID ¶
func (q *AccountInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountInfoQuery) SetQueryPayment ¶
func (q *AccountInfoQuery) SetQueryPayment(queryPayment Hbar) *AccountInfoQuery
SetQueryPayment sets the Hbar payment to pay the _Node a fee for handling this query
type AccountRecordsQuery ¶
type AccountRecordsQuery struct { Query // contains filtered or unexported fields }
AccountRecordsQuery gets all of the records for an account for any transfers into it and out of it, that were above the threshold, during the last 25 hours.
func NewAccountRecordsQuery ¶
func NewAccountRecordsQuery() *AccountRecordsQuery
NewAccountRecordsQuery creates an AccountRecordsQuery Query which can be used to construct and execute an AccountRecordsQuery.
It is recommended that you use this for creating new instances of an AccountRecordQuery instead of manually creating an instance of the struct.
func (*AccountRecordsQuery) Execute ¶
func (q *AccountRecordsQuery) Execute(client *Client) ([]TransactionRecord, error)
Execute executes the Query with the provided client
func (*AccountRecordsQuery) GetAccountID ¶
func (q *AccountRecordsQuery) GetAccountID() AccountID
GetAccountID returns the account ID for which the records will be retrieved.
func (*AccountRecordsQuery) GetCost ¶
func (q *AccountRecordsQuery) GetCost(client *Client) (Hbar, error)
func (*AccountRecordsQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*AccountRecordsQuery) GetLogLevel ¶
func (e *AccountRecordsQuery) GetLogLevel() *LogLevel
func (*AccountRecordsQuery) GetMaxBackoff ¶
func (*AccountRecordsQuery) GetMaxRetry ¶
func (e *AccountRecordsQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*AccountRecordsQuery) GetMinBackoff ¶
func (*AccountRecordsQuery) GetNodeAccountIDs ¶
func (e *AccountRecordsQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountRecordsQuery) SetAccountID ¶
func (q *AccountRecordsQuery) SetAccountID(accountID AccountID) *AccountRecordsQuery
SetAccountID sets the account ID for which the records should be retrieved.
func (*AccountRecordsQuery) SetGrpcDeadline ¶
func (q *AccountRecordsQuery) SetGrpcDeadline(deadline *time.Duration) *AccountRecordsQuery
SetGrpcDeadline When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountRecordsQuery) SetLogLevel ¶
func (q *AccountRecordsQuery) SetLogLevel(level LogLevel) *AccountRecordsQuery
func (*AccountRecordsQuery) SetMaxBackoff ¶
func (q *AccountRecordsQuery) SetMaxBackoff(max time.Duration) *AccountRecordsQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*AccountRecordsQuery) SetMaxQueryPayment ¶
func (q *AccountRecordsQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountRecordsQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*AccountRecordsQuery) SetMaxRetry ¶
func (q *AccountRecordsQuery) SetMaxRetry(count int) *AccountRecordsQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountRecordsQuery) SetMinBackoff ¶
func (q *AccountRecordsQuery) SetMinBackoff(min time.Duration) *AccountRecordsQuery
func (*AccountRecordsQuery) SetNodeAccountIDs ¶
func (q *AccountRecordsQuery) SetNodeAccountIDs(accountID []AccountID) *AccountRecordsQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountRecordsQuery.
func (*AccountRecordsQuery) SetPaymentTransactionID ¶
func (q *AccountRecordsQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountRecordsQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountRecordsQuery) SetQueryPayment ¶
func (q *AccountRecordsQuery) SetQueryPayment(paymentAmount Hbar) *AccountRecordsQuery
SetQueryPayment sets the payment amount for this Query.
type AccountUpdateTransaction ¶
type AccountUpdateTransaction struct { *Transaction[*AccountUpdateTransaction] // contains filtered or unexported fields }
AccountUpdateTransaction Change properties for the given account. Any null field is ignored (left unchanged). This transaction must be signed by the existing key for this account. If the transaction is changing the key field, then the transaction must be signed by both the old key (from before the change) and the new key. The old key must sign for security. The new key must sign as a safeguard to avoid accidentally changing to an invalid key, and then having no way to recover.
func NewAccountUpdateTransaction ¶
func NewAccountUpdateTransaction() *AccountUpdateTransaction
NewAccountUpdateTransaction Creates AccoutnUppdateTransaction which changes properties for the given account. Any null field is ignored (left unchanged). This transaction must be signed by the existing key for this account. If the transaction is changing the key field, then the transaction must be signed by both the old key (from before the change) and the new key. The old key must sign for security. The new key must sign as a safeguard to avoid accidentally changing to an invalid key, and then having no way to recover.
func (*AccountUpdateTransaction) ClearStakedAccountID ¶
func (tx *AccountUpdateTransaction) ClearStakedAccountID() *AccountUpdateTransaction
func (*AccountUpdateTransaction) ClearStakedNodeID ¶
func (tx *AccountUpdateTransaction) ClearStakedNodeID() *AccountUpdateTransaction
func (*AccountUpdateTransaction) GetAccountID ¶
func (tx *AccountUpdateTransaction) GetAccountID() AccountID
func (*AccountUpdateTransaction) GetAccountMemo ¶
func (tx *AccountUpdateTransaction) GetAccountMemo() string
func (*AccountUpdateTransaction) GetAliasKey ¶
func (tx *AccountUpdateTransaction) GetAliasKey() PublicKey
Deprecated
func (*AccountUpdateTransaction) GetAutoRenewPeriod ¶
func (tx *AccountUpdateTransaction) GetAutoRenewPeriod() time.Duration
func (*AccountUpdateTransaction) GetDeclineStakingReward ¶
func (tx *AccountUpdateTransaction) GetDeclineStakingReward() bool
func (*AccountUpdateTransaction) GetExpirationTime ¶
func (tx *AccountUpdateTransaction) GetExpirationTime() time.Time
func (*AccountUpdateTransaction) GetKey ¶
func (tx *AccountUpdateTransaction) GetKey() (Key, error)
func (*AccountUpdateTransaction) GetMaxAutomaticTokenAssociations ¶
func (tx *AccountUpdateTransaction) GetMaxAutomaticTokenAssociations() int32
func (AccountUpdateTransaction) GetNodeAccountIDs ¶
func (e AccountUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*AccountUpdateTransaction) GetProxyAccountID ¶
func (tx *AccountUpdateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*AccountUpdateTransaction) GetReceiverSignatureRequired ¶
func (tx *AccountUpdateTransaction) GetReceiverSignatureRequired() bool
func (*AccountUpdateTransaction) GetStakedAccountID ¶
func (tx *AccountUpdateTransaction) GetStakedAccountID() AccountID
func (*AccountUpdateTransaction) GetStakedNodeID ¶
func (tx *AccountUpdateTransaction) GetStakedNodeID() int64
func (*AccountUpdateTransaction) SetAccountID ¶
func (tx *AccountUpdateTransaction) SetAccountID(accountID AccountID) *AccountUpdateTransaction
SetAccountID Sets the account ID which is being updated in tx transaction.
func (*AccountUpdateTransaction) SetAccountMemo ¶
func (tx *AccountUpdateTransaction) SetAccountMemo(memo string) *AccountUpdateTransaction
SetAccountMemo sets the new memo to be associated with the account (UTF-8 encoding max 100 bytes)
func (*AccountUpdateTransaction) SetAliasKey ¶
func (tx *AccountUpdateTransaction) SetAliasKey(alias PublicKey) *AccountUpdateTransaction
Deprecated
func (*AccountUpdateTransaction) SetAutoRenewPeriod ¶
func (tx *AccountUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountUpdateTransaction
SetAutoRenewPeriod Sets the duration in which it will automatically extend the expiration period. Min value for this property 2,592,000 seconds Max value for this property is 8,000,001 seconds
func (*AccountUpdateTransaction) SetDeclineStakingReward ¶
func (tx *AccountUpdateTransaction) SetDeclineStakingReward(decline bool) *AccountUpdateTransaction
func (*AccountUpdateTransaction) SetExpirationTime ¶
func (tx *AccountUpdateTransaction) SetExpirationTime(expirationTime time.Time) *AccountUpdateTransaction
SetExpirationTime sets the new expiration time to extend to (ignored if equal to or before the current one) Min value for this property is current time + 1 second Max value for this property is current time + 8,000,001 seconds
func (*AccountUpdateTransaction) SetKey ¶
func (tx *AccountUpdateTransaction) SetKey(key Key) *AccountUpdateTransaction
SetKey Sets the new key for the Account
func (*AccountUpdateTransaction) SetMaxAutomaticTokenAssociations ¶
func (tx *AccountUpdateTransaction) SetMaxAutomaticTokenAssociations(max int32) *AccountUpdateTransaction
SetMaxAutomaticTokenAssociations Sets the maximum number of tokens that an Account can be implicitly associated with. Up to a 5000 including implicit and explicit associations.
func (*AccountUpdateTransaction) SetProxyAccountID ¶
func (tx *AccountUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *AccountUpdateTransaction
Deprecated SetProxyAccountID Sets the ID of the account to which this account is proxy staked.
func (*AccountUpdateTransaction) SetReceiverSignatureRequired ¶
func (tx *AccountUpdateTransaction) SetReceiverSignatureRequired(receiverSignatureRequired bool) *AccountUpdateTransaction
SetReceiverSignatureRequired If true, this account's key must sign any transaction depositing into this account (in addition to all withdrawals)
func (*AccountUpdateTransaction) SetStakedAccountID ¶
func (tx *AccountUpdateTransaction) SetStakedAccountID(id AccountID) *AccountUpdateTransaction
func (*AccountUpdateTransaction) SetStakedNodeID ¶
func (tx *AccountUpdateTransaction) SetStakedNodeID(id int64) *AccountUpdateTransaction
type Address ¶
type Address [20]byte
Address is an Ethereum address
func BytesToAddress ¶
BytesToAddress converts bytes to an address object
func (Address) MarshalText ¶
MarshalText implements the marshal interface
func (*Address) UnmarshalText ¶
UnmarshalText implements the unmarshal interface
type AddressBookQuery ¶
type AddressBookQuery struct {
// contains filtered or unexported fields
}
AddressBookQuery query an address book for its list of nodes
func NewAddressBookQuery ¶
func NewAddressBookQuery() *AddressBookQuery
Query the mirror node for the address book.
func (*AddressBookQuery) Execute ¶
func (q *AddressBookQuery) Execute(client *Client) (NodeAddressBook, error)
Execute executes the Query with the provided client
func (*AddressBookQuery) GetFileID ¶
func (q *AddressBookQuery) GetFileID() FileID
func (*AddressBookQuery) GetLimit ¶
func (q *AddressBookQuery) GetLimit() int32
func (*AddressBookQuery) GetMaxAttempts ¶
func (q *AddressBookQuery) GetMaxAttempts() uint64
func (*AddressBookQuery) SetFileID ¶
func (q *AddressBookQuery) SetFileID(id FileID) *AddressBookQuery
SetFileID set the ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
func (*AddressBookQuery) SetLimit ¶
func (q *AddressBookQuery) SetLimit(limit int32) *AddressBookQuery
SetLimit Set the maximum number of node addresses to receive before stopping. If not set or set to zero it will return all node addresses in the database.
func (*AddressBookQuery) SetMaxAttempts ¶
func (q *AddressBookQuery) SetMaxAttempts(maxAttempts uint64) *AddressBookQuery
type ArgumentStr ¶
type ArgumentStr struct { Name string Type string Indexed bool Components []*ArgumentStr InternalType string }
ArgumentStr encodes a type object
type AssessedCustomFee ¶
type AssessedCustomFee struct { Amount int64 TokenID *TokenID FeeCollectorAccountId *AccountID // nolint PayerAccountIDs []*AccountID }
func AssessedCustomFeeFromBytes ¶
func AssessedCustomFeeFromBytes(data []byte) (AssessedCustomFee, error)
AssessedCustomFeeFromBytes returns a AssessedCustomFee from bytes
func (AssessedCustomFee) String ¶
func (fee AssessedCustomFee) String() string
String returns a string representation of a AssessedCustomFee
func (*AssessedCustomFee) ToBytes ¶
func (fee *AssessedCustomFee) ToBytes() []byte
ToBytes returns the serialized bytes of a AssessedCustomFee
type BaseTransaction ¶
type BaseTransaction struct {
// contains filtered or unexported fields
}
BaseTransaction contains all the common fields for all transactions.
type BatchTransaction ¶ added in v2.61.0
type BatchTransaction struct { *Transaction[*BatchTransaction] // contains filtered or unexported fields }
BatchTransaction executes multiple transactions in a single consensus event. This allows for atomic execution of multiple transactions, where they either all succeed or all fail together.
Requirements: - All inner transactions must be frozen before being added to the batch - All inner transactions must have a batch key set - All inner transactions must be signed as required for each individual transaction - The BatchTransaction must be signed by all batch keys of the inner transactions - Certain transaction types (FreezeTransaction, BatchTransaction) are not allowed in a batch
Important notes: - Fees are assessed for each inner transaction separately - The maximum number of inner transactions in a batch is limited to 25 - Inner transactions cannot be scheduled transactions
Example usage:
batchKey := PrivateKeyGenerateECDSA() // Create and prepare inner transaction transaction := NewTransferTransaction(). AddHbarTransfer(sender, amount.Negated()). AddHbarTransfer(receiver, amount). Batchify(client, batchKey) // Create and execute batch transaction response, err := NewBatchTransaction(). AddInnerTransaction(transaction). FreezeWith(client). Sign(batchKey). Execute(client)
func NewBatchTransaction ¶ added in v2.61.0
func NewBatchTransaction() *BatchTransaction
NewBatchTransaction creates a new empty BatchTransaction.
func (*BatchTransaction) AddInnerTransaction ¶ added in v2.61.0
func (tx *BatchTransaction) AddInnerTransaction(innerTransaction TransactionInterface) *BatchTransaction
AddInnerTransaction appends a transaction to the list of transactions this BatchTransaction will execute.
Requirements for the inner transaction: - Must be frozen (use Transaction.Freeze() or Transaction.FreezeWith(client)) - Must have a batch key set (use Transaction.SetBatchKey(key) or Transaction.Batchify(client, key)) - Must not be a blacklisted transaction type
Returns: - *BatchTransaction: The BatchTransaction instance for fluent API calls
func (*BatchTransaction) GetInnerTransactionIDs ¶ added in v2.61.0
func (tx *BatchTransaction) GetInnerTransactionIDs() []TransactionID
GetInnerTransactionIDs returns the list of transaction IDs of each inner transaction of this BatchTransaction.
This method is particularly useful after execution to: - Track individual transaction results - Query receipts for specific inner transactions - Monitor the status of each transaction in the batch
NOTE: Transaction IDs will only be meaningful after the batch transaction has been executed or the IDs have been explicitly set on the inner transactions.
func (*BatchTransaction) GetInnerTransactions ¶ added in v2.61.0
func (tx *BatchTransaction) GetInnerTransactions() []TransactionInterface
GetInnerTransactions returns the list of transactions this BatchTransaction is currently configured to execute.
func (BatchTransaction) GetNodeAccountIDs ¶ added in v2.61.0
func (e BatchTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*BatchTransaction) SetInnerTransactions ¶ added in v2.61.0
func (tx *BatchTransaction) SetInnerTransactions(transactions []TransactionInterface) *BatchTransaction
SetInnerTransactions sets the list of transactions to be executed as part of this BatchTransaction.
Requirements for each inner transaction: - Must be frozen (use Transaction.Freeze() or Transaction.FreezeWith(client)) - Must have a batch key set (use Transaction.SetBatchKey(key) or Transaction.Batchify(client, key)) - Must not be a blacklisted transaction type
Returns: - *BatchTransaction: The BatchTransaction instance for fluent API calls - error: If any validation fails
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Hiero protocol wrapper for the SDK used by all transaction and query types.
func ClientForMainnet ¶
func ClientForMainnet() *Client
ClientForMainnet returns a preconfigured client for use with the standard Hiero mainnet. Most users will want to set an _Operator account with .SetOperator so transactions can be automatically given TransactionIDs and signed.
func ClientForMirrorNetwork ¶
ClientForMirrorNetwork constructs a client given a set of mirror network nodes.
func ClientForMirrorNetworkWithShardAndRealm ¶ added in v2.65.0
func ClientForMirrorNetworkWithShardAndRealm(mirrorNetwork []string, shard uint64, realm uint64) (*Client, error)
constructs a client given a set of mirror network nodes and the shard/realm of the address book.
func ClientForName ¶
ClientForName set up the client for the selected network.
func ClientForNetwork ¶
ClientForNetwork constructs a client given a set of nodes. Deprecated: Use ClientForNetworkV2 instead.
func ClientForNetworkV2 ¶ added in v2.65.0
ClientForNetworkV2 constructs a client given a set of nodes.
func ClientForPreviewnet ¶
func ClientForPreviewnet() *Client
ClientForPreviewnet returns a preconfigured client for use with the standard Hiero previewnet. Most users will want to set an _Operator account with .SetOperator so transactions can be automatically given TransactionIDs and signed.
func ClientForTestnet ¶
func ClientForTestnet() *Client
ClientForTestnet returns a preconfigured client for use with the standard Hiero testnet. Most users will want to set an _Operator account with .SetOperator so transactions can be automatically given TransactionIDs and signed.
func ClientFromConfig ¶
ClientFromConfig takes in the byte slice representation of a JSON string or document and returns Client based on the configuration.
func ClientFromConfigFile ¶
ClientFromConfigFile takes a filename string representing the path to a JSON encoded Client file and returns a Client based on the configuration.
func ClientFromConfigWithoutScheduleNetworkUpdate ¶
ClientFromConfigWithoutScheduleNetworkUpdate does not schedule network update the user has to call SetNetworkUpdatePeriod manually
func (*Client) CancelScheduledNetworkUpdate ¶
func (client *Client) CancelScheduledNetworkUpdate()
CancelScheduledNetworkUpdate cancels the scheduled network update the network address book
func (*Client) GetAutoValidateChecksums ¶
GetAutoValidateChecksums returns if an automatic entity ID checksum validation should be performed.
func (*Client) GetCertificateVerification ¶
GetCertificateVerification returns if server certificates should be verified against an existing address book.
func (*Client) GetDefaultMaxQueryPayment ¶
GetDefaultMaxQueryPayment returns the default maximum payment allowed for queries.
func (*Client) GetDefaultMaxTransactionFee ¶
GetDefaultMaxTransactionFee returns the default maximum fee allowed for transactions.
func (*Client) GetDefaultRegenerateTransactionIDs ¶
GetDefaultRegenerateTransactionIDs returns if an automatic transaction ID regeneration should be performed.
func (*Client) GetLedgerID ¶
GetLedgerID returns the ledger ID for the Client. Will return nil if the client is initialized with custom nodes via ClientForNetwork.
func (*Client) GetMaxAttempts ¶
GetMaxAttempts returns the maximum number of times to attempt a transaction or query.
func (*Client) GetMaxBackoff ¶
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*Client) GetMaxNodeAttempts ¶
GetMaxNodeAttempts returns the maximum number of times to attempt a transaction or query on a single node.
func (*Client) GetMaxNodeReadmitPeriod ¶
GetMaxNodeReadmitTime returns the maximum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) GetMinBackoff ¶
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*Client) GetMinNodeReadmitPeriod ¶
GetMinNodeReadmitTime returns the minimum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) GetMirrorNetwork ¶
GetNetwork returns the mirror network node list.
func (*Client) GetMirrorRestApiBaseUrl ¶ added in v2.71.0
func (*Client) GetNetwork ¶
GetNetwork returns the current set of nodes in this Client.
func (*Client) GetNetworkUpdatePeriod ¶
GetNetworkUpdatePeriod returns the current network update period
func (*Client) GetNodeMaxBackoff ¶
GetNodeMaxBackoff returns the maximum amount of time to wait between retries on a single node.
func (*Client) GetNodeMaxReadmitPeriod ¶
GetNodeMaxReadmitPeriod returns the maximum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) GetNodeMinBackoff ¶
GetNodeMinBackoff returns the minimum amount of time to wait between retries on a single node.
func (*Client) GetNodeMinReadmitPeriod ¶
GetNodeMinReadmitPeriod returns the minimum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) GetNodeWaitTime
deprecated
func (*Client) GetOperatorAccountID ¶
GetOperatorAccountID returns the ID for the _Operator
func (*Client) GetOperatorPublicKey ¶
GetOperatorPublicKey returns the Key for the _Operator
func (*Client) GetRequestTimeout ¶
GetRequestTimeout returns the timeout for all requests made by the client.
func (*Client) Ping ¶
Ping sends an AccountBalanceQuery to the specified _Node returning nil if no problems occur. Otherwise, an error representing the status of the _Node will be returned.
func (*Client) SetAutoValidateChecksums ¶
SetAutoValidateChecksums sets if an automatic entity ID checksum validation should be performed.
func (*Client) SetCertificateVerification ¶
SetCertificateVerification sets if server certificates should be verified against an existing address book.
func (*Client) SetDefaultMaxQueryPayment ¶
SetDefaultMaxQueryPayment sets the default maximum payment allowed for queries.
func (*Client) SetDefaultMaxTransactionFee ¶
SetDefaultMaxTransactionFee sets the default maximum fee allowed for transactions.
func (*Client) SetDefaultRegenerateTransactionIDs ¶
SetDefaultRegenerateTransactionIDs sets if an automatic transaction ID regeneration should be performed.
func (*Client) SetLedgerID ¶
SetLedgerID sets the ledger ID for the Client.
func (*Client) SetLogLevel ¶
func (*Client) SetMaxAttempts ¶
SetMaxAttempts sets the maximum number of times to attempt a transaction or query.
func (*Client) SetMaxBackoff ¶
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*Client) SetMaxNodeAttempts ¶
SetMaxNodeAttempts sets the maximum number of times to attempt a transaction or query on a single node.
func (*Client) SetMaxNodeReadmitTime ¶
SetMaxNodeReadmitTime The maximum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) SetMaxNodesPerTransaction ¶
SetMaxNodesPerTransaction sets the maximum number of nodes to try for a single transaction.
func (*Client) SetMinBackoff ¶
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*Client) SetMinNodeReadmitTime ¶
SetMinNodeReadmitTime The minimum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) SetMirrorNetwork ¶
SetNetwork replaces all _Nodes in the Client with a new set of _Nodes. (e.g. for an Address Book update).
func (*Client) SetNetwork ¶
SetNetwork replaces all nodes in this Client with a new set of nodes.
func (*Client) SetNetworkFromAddressBook ¶
func (client *Client) SetNetworkFromAddressBook(addressBook NodeAddressBook) *Client
SetNetworkFromAddressBook replaces all nodes in this Client with the nodes in the Address Book.
func (*Client) SetNetworkName
deprecated
func (client *Client) SetNetworkName(name NetworkName)
Deprecated: Use SetLedgerID instead
func (*Client) SetNetworkUpdatePeriod ¶
SetNetworkUpdatePeriod sets how often the client will update the network address book
func (*Client) SetNodeMaxBackoff ¶
SetNodeMaxBackoff sets the maximum amount of time to wait between retries on a single node.
func (*Client) SetNodeMaxReadmitPeriod ¶
SetNodeMaxReadmitPeriod sets the maximum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) SetNodeMinBackoff ¶
SetNodeMinBackoff sets the minimum amount of time to wait between retries on a single node.
func (*Client) SetNodeMinReadmitPeriod ¶
SetNodeMinReadmitPeriod sets the minimum amount of time to wait before attempting to reconnect to a node that has been removed from the network.
func (*Client) SetNodeWaitTime
deprecated
func (*Client) SetOperator ¶
func (client *Client) SetOperator(accountID AccountID, privateKey PrivateKey) *Client
SetOperator sets that account that will, by default, be paying for transactions and queries built with the client and the associated key with which to automatically sign transactions.
func (*Client) SetOperatorWith ¶
func (client *Client) SetOperatorWith(accountID AccountID, publicKey PublicKey, signer TransactionSigner) *Client
SetOperatorWith sets that account that will, by default, be paying for transactions and queries built with the client, the account's PublicKey and a callback that will be invoked when a transaction needs to be signed.
func (*Client) SetRequestTimeout ¶
SetRequestTimeout sets the timeout for all requests made by the client.
func (*Client) SetTransportSecurity ¶
SetTransportSecurity sets if transport security should be used to connect to consensus nodes. If transport security is enabled all connections to consensus nodes will use TLS, and the server's certificate hash will be compared to the hash stored in the NodeAddressBook for the given network. *Note*: If transport security is enabled, but {@link Client#isVerifyCertificates()} is disabled then server certificates will not be verified.
type ContractBytecodeQuery ¶
type ContractBytecodeQuery struct { Query // contains filtered or unexported fields }
ContractBytecodeQuery retrieves the bytecode for a smart contract instance
func NewContractBytecodeQuery ¶
func NewContractBytecodeQuery() *ContractBytecodeQuery
NewContractBytecodeQuery creates a ContractBytecodeQuery query which can be used to construct and execute a Contract Get Bytecode Query.
func (*ContractBytecodeQuery) Execute ¶
func (q *ContractBytecodeQuery) Execute(client *Client) ([]byte, error)
Execute executes the Query with the provided client
func (*ContractBytecodeQuery) GetContractID ¶
func (q *ContractBytecodeQuery) GetContractID() ContractID
GetContractID returns the contract for which the bytecode is requested
func (*ContractBytecodeQuery) GetCost ¶
func (q *ContractBytecodeQuery) GetCost(client *Client) (Hbar, error)
func (*ContractBytecodeQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*ContractBytecodeQuery) GetLogLevel ¶
func (e *ContractBytecodeQuery) GetLogLevel() *LogLevel
func (*ContractBytecodeQuery) GetMaxBackoff ¶
func (*ContractBytecodeQuery) GetMaxRetry ¶
func (e *ContractBytecodeQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*ContractBytecodeQuery) GetMinBackoff ¶
func (*ContractBytecodeQuery) GetNodeAccountIDs ¶
func (e *ContractBytecodeQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractBytecodeQuery) SetContractID ¶
func (q *ContractBytecodeQuery) SetContractID(contractID ContractID) *ContractBytecodeQuery
SetContractID sets the contract for which the bytecode is requested
func (*ContractBytecodeQuery) SetGrpcDeadline ¶
func (q *ContractBytecodeQuery) SetGrpcDeadline(deadline *time.Duration) *ContractBytecodeQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractBytecodeQuery) SetLogLevel ¶
func (q *ContractBytecodeQuery) SetLogLevel(level LogLevel) *ContractBytecodeQuery
func (*ContractBytecodeQuery) SetMaxBackoff ¶
func (q *ContractBytecodeQuery) SetMaxBackoff(max time.Duration) *ContractBytecodeQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*ContractBytecodeQuery) SetMaxQueryPayment ¶
func (q *ContractBytecodeQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractBytecodeQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ContractBytecodeQuery) SetMaxRetry ¶
func (q *ContractBytecodeQuery) SetMaxRetry(count int) *ContractBytecodeQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractBytecodeQuery) SetMinBackoff ¶
func (q *ContractBytecodeQuery) SetMinBackoff(min time.Duration) *ContractBytecodeQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractBytecodeQuery) SetNodeAccountIDs ¶
func (q *ContractBytecodeQuery) SetNodeAccountIDs(accountID []AccountID) *ContractBytecodeQuery
SetNodeAccountIDs sets the _Node AccountID for this ContractBytecodeQuery.
func (*ContractBytecodeQuery) SetPaymentTransactionID ¶
func (q *ContractBytecodeQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractBytecodeQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*ContractBytecodeQuery) SetQueryPayment ¶
func (q *ContractBytecodeQuery) SetQueryPayment(paymentAmount Hbar) *ContractBytecodeQuery
SetQueryPayment sets the payment amount for this Query.
type ContractCallQuery ¶
type ContractCallQuery struct { Query // contains filtered or unexported fields }
ContractCallQuery calls a function of the given smart contract instance, giving it ContractFunctionParameters as its inputs. It will consume the entire given amount of gas.
This is performed locally on the particular _Node that the client is communicating with. It cannot change the state of the contract instance (and so, cannot spend anything from the instance's Hiero account). It will not have a consensus timestamp. It cannot generate a record or a receipt. This is useful for calling getter functions, which purely read the state and don't change it. It is faster and cheaper than a ContractExecuteTransaction, because it is purely local to a single _Node.
func NewContractCallQuery ¶
func NewContractCallQuery() *ContractCallQuery
NewContractCallQuery creates a ContractCallQuery query which can be used to construct and execute a Contract Call Local Query.
func (*ContractCallQuery) Execute ¶
func (q *ContractCallQuery) Execute(client *Client) (ContractFunctionResult, error)
Execute executes the Query with the provided client
func (*ContractCallQuery) GetContractID ¶
func (q *ContractCallQuery) GetContractID() ContractID
GetContractID returns the contract instance to call
func (*ContractCallQuery) GetCost ¶
func (q *ContractCallQuery) GetCost(client *Client) (Hbar, error)
func (*ContractCallQuery) GetFunctionParameters ¶
func (q *ContractCallQuery) GetFunctionParameters() []byte
GetFunctionParameters returns the function parameters as their raw bytes.
func (*ContractCallQuery) GetGas ¶
func (q *ContractCallQuery) GetGas() uint64
GetGas returns the amount of gas to use for the call.
func (*ContractCallQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*ContractCallQuery) GetLogLevel ¶
func (e *ContractCallQuery) GetLogLevel() *LogLevel
func (*ContractCallQuery) GetMaxBackoff ¶
func (*ContractCallQuery) GetMaxRetry ¶
func (e *ContractCallQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*ContractCallQuery) GetMinBackoff ¶
func (*ContractCallQuery) GetNodeAccountIDs ¶
func (e *ContractCallQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractCallQuery) GetSenderID ¶
func (q *ContractCallQuery) GetSenderID() AccountID
GetSenderID returns the AccountID that is the "sender."
func (*ContractCallQuery) SetContractID ¶
func (q *ContractCallQuery) SetContractID(contractID ContractID) *ContractCallQuery
SetContractID sets the contract instance to call
func (*ContractCallQuery) SetFunction ¶
func (q *ContractCallQuery) SetFunction(name string, params *ContractFunctionParameters) *ContractCallQuery
SetFunction sets which function to call, and the ContractFunctionParams to pass to the function
func (*ContractCallQuery) SetFunctionParameters ¶
func (q *ContractCallQuery) SetFunctionParameters(byteArray []byte) *ContractCallQuery
SetFunctionParameters sets the function parameters as their raw bytes.
func (*ContractCallQuery) SetGas ¶
func (q *ContractCallQuery) SetGas(gas uint64) *ContractCallQuery
SetGas sets the amount of gas to use for the call. All of the gas offered will be charged for.
func (*ContractCallQuery) SetGrpcDeadline ¶
func (q *ContractCallQuery) SetGrpcDeadline(deadline *time.Duration) *ContractCallQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractCallQuery) SetLogLevel ¶
func (q *ContractCallQuery) SetLogLevel(level LogLevel) *ContractCallQuery
func (*ContractCallQuery) SetMaxBackoff ¶
func (q *ContractCallQuery) SetMaxBackoff(max time.Duration) *ContractCallQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*ContractCallQuery) SetMaxQueryPayment ¶
func (q *ContractCallQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractCallQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ContractCallQuery) SetMaxResultSize ¶
func (q *ContractCallQuery) SetMaxResultSize(size uint64) *ContractCallQuery
Deprecated
func (*ContractCallQuery) SetMaxRetry ¶
func (q *ContractCallQuery) SetMaxRetry(count int) *ContractCallQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractCallQuery) SetMinBackoff ¶
func (q *ContractCallQuery) SetMinBackoff(min time.Duration) *ContractCallQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractCallQuery) SetNodeAccountIDs ¶
func (q *ContractCallQuery) SetNodeAccountIDs(accountID []AccountID) *ContractCallQuery
SetNodeAccountIDs sets the _Node AccountID for this ContractCallQuery.
func (*ContractCallQuery) SetPaymentTransactionID ¶
func (q *ContractCallQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractCallQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*ContractCallQuery) SetQueryPayment ¶
func (q *ContractCallQuery) SetQueryPayment(paymentAmount Hbar) *ContractCallQuery
SetQueryPayment sets the payment amount for this Query.
func (*ContractCallQuery) SetSenderID ¶
func (q *ContractCallQuery) SetSenderID(id AccountID) *ContractCallQuery
SetSenderID The account that is the "sender." If not present it is the accountId from the transactionId. Typically a different value than specified in the transactionId requires a valid signature over either the hiero transaction or foreign transaction data.
type ContractCreateFlow ¶
type ContractCreateFlow struct {
// contains filtered or unexported fields
}
func NewContractCreateFlow ¶
func NewContractCreateFlow() *ContractCreateFlow
NewContractCreateFlow creates a new ContractCreateFlow transaction builder object.
func (*ContractCreateFlow) Execute ¶
func (tx *ContractCreateFlow) Execute(client *Client) (TransactionResponse, error)
func (*ContractCreateFlow) GetAdminKey ¶
func (tx *ContractCreateFlow) GetAdminKey() Key
GetAdminKey returns the admin key of the contract.
func (*ContractCreateFlow) GetAutoRenewAccountID ¶
func (tx *ContractCreateFlow) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the account to charge for auto-renewal of this contract.
func (*ContractCreateFlow) GetAutoRenewPeriod ¶
func (tx *ContractCreateFlow) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the period that the instance will charge its account every this many seconds to renew.
func (*ContractCreateFlow) GetBytecode ¶
func (tx *ContractCreateFlow) GetBytecode() string
GetBytecode returns the hex-encoded bytecode of the contract.
func (*ContractCreateFlow) GetConstructorParameters ¶
func (tx *ContractCreateFlow) GetConstructorParameters() []byte
func (*ContractCreateFlow) GetContractMemo ¶
func (tx *ContractCreateFlow) GetContractMemo() string
Gets the memo to be associated with this contract.
func (*ContractCreateFlow) GetGas ¶
func (tx *ContractCreateFlow) GetGas() int64
GetGas returns the gas to run the constructor.
func (*ContractCreateFlow) GetInitialBalance ¶
func (tx *ContractCreateFlow) GetInitialBalance() Hbar
GetInitialBalance returns the initial number of hbars to put into the cryptocurrency account associated with and owned by the smart contract.
func (*ContractCreateFlow) GetMaxAutomaticTokenAssociations ¶
func (tx *ContractCreateFlow) GetMaxAutomaticTokenAssociations() int32
GetMaxAutomaticTokenAssociations returns the maximum number of tokens that this contract can be automatically associated with.
func (*ContractCreateFlow) GetMaxChunks ¶
func (tx *ContractCreateFlow) GetMaxChunks() uint64
GetMaxChunks returns the maximum number of chunks that the contract bytecode can be split into.
func (*ContractCreateFlow) GetNodeAccountIDs ¶
func (tx *ContractCreateFlow) GetNodeAccountIDs() []AccountID
GetNodeAccountIDs returns the node AccountID for this ContractCreateFlow.
func (*ContractCreateFlow) GetProxyAccountID ¶
func (tx *ContractCreateFlow) GetProxyAccountID() AccountID
Deprecated
func (*ContractCreateFlow) SetAdminKey ¶
func (tx *ContractCreateFlow) SetAdminKey(adminKey Key) *ContractCreateFlow
Sets the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
func (*ContractCreateFlow) SetAutoRenewAccountID ¶
func (tx *ContractCreateFlow) SetAutoRenewAccountID(id AccountID) *ContractCreateFlow
SetAutoRenewAccountID An account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar balance, the contract's own hbar balance will be used to cover auto-renewal fees.
func (*ContractCreateFlow) SetAutoRenewPeriod ¶
func (tx *ContractCreateFlow) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateFlow
SetAutoRenewPeriod sets the period that the instance will charge its account every this many seconds to renew.
func (*ContractCreateFlow) SetBytecode ¶
func (tx *ContractCreateFlow) SetBytecode(bytecode []byte) *ContractCreateFlow
SetBytecode sets the bytecode of the contract in raw bytes.
func (*ContractCreateFlow) SetBytecodeWithString ¶
func (tx *ContractCreateFlow) SetBytecodeWithString(bytecode string) *ContractCreateFlow
SetBytecodeWithString sets the bytecode of the contract in hex-encoded string format.
func (*ContractCreateFlow) SetConstructorParameters ¶
func (tx *ContractCreateFlow) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateFlow
Sets the constructor parameters
func (*ContractCreateFlow) SetConstructorParametersRaw ¶
func (tx *ContractCreateFlow) SetConstructorParametersRaw(params []byte) *ContractCreateFlow
Sets the constructor parameters as their raw bytes.
func (*ContractCreateFlow) SetContractMemo ¶
func (tx *ContractCreateFlow) SetContractMemo(memo string) *ContractCreateFlow
Sets the memo to be associated with this contract.
func (*ContractCreateFlow) SetGas ¶
func (tx *ContractCreateFlow) SetGas(gas int64) *ContractCreateFlow
SetGas sets the gas to run the constructor.
func (*ContractCreateFlow) SetInitialBalance ¶
func (tx *ContractCreateFlow) SetInitialBalance(initialBalance Hbar) *ContractCreateFlow
SetInitialBalance sets the initial number of hbars to put into the cryptocurrency account associated with and owned by the smart contract.
func (*ContractCreateFlow) SetMaxAutomaticTokenAssociations ¶
func (tx *ContractCreateFlow) SetMaxAutomaticTokenAssociations(max int32) *ContractCreateFlow
SetMaxAutomaticTokenAssociations The maximum number of tokens that this contract can be automatically associated with (i.e., receive air-drops from).
func (*ContractCreateFlow) SetMaxChunks ¶
func (tx *ContractCreateFlow) SetMaxChunks(max uint64) *ContractCreateFlow
SetMaxChunks sets the maximum number of chunks that the contract bytecode can be split into.
func (*ContractCreateFlow) SetNodeAccountIDs ¶
func (tx *ContractCreateFlow) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateFlow
SetNodeAccountIDs sets the node AccountID for this ContractCreateFlow.
func (*ContractCreateFlow) SetProxyAccountID ¶
func (tx *ContractCreateFlow) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateFlow
Deprecated
type ContractCreateTransaction ¶
type ContractCreateTransaction struct { *Transaction[*ContractCreateTransaction] // contains filtered or unexported fields }
ContractCreateTransaction which is used to start a new smart contract instance. After the instance is created, the ContractID for it is in the receipt, and can be retrieved by the Record or with a GetByKey query. The instance will run the bytecode, either stored in a previously created file or in the transaction body itself for small contracts.
func NewContractCreateTransaction ¶
func NewContractCreateTransaction() *ContractCreateTransaction
NewContractCreateTransaction creates ContractCreateTransaction which is used to start a new smart contract instance. After the instance is created, the ContractID for it is in the receipt, and can be retrieved by the Record or with a GetByKey query. The instance will run the bytecode, either stored in a previously created file or in the transaction body itself for small contracts.
func (*ContractCreateTransaction) GetAdminKey ¶
func (tx *ContractCreateTransaction) GetAdminKey() (Key, error)
GetAdminKey returns the key that can sign to modify the state of the instance and its fields can be modified arbitrarily if this key signs a transaction
func (*ContractCreateTransaction) GetAutoRenewAccountID ¶
func (tx *ContractCreateTransaction) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the account to be used at the end of the auto renewal period
func (*ContractCreateTransaction) GetAutoRenewPeriod ¶
func (tx *ContractCreateTransaction) GetAutoRenewPeriod() time.Duration
func (*ContractCreateTransaction) GetBytecode ¶
func (tx *ContractCreateTransaction) GetBytecode() []byte
GetBytecode returns the bytecode for the contract.
func (*ContractCreateTransaction) GetBytecodeFileID ¶
func (tx *ContractCreateTransaction) GetBytecodeFileID() FileID
GetBytecodeFileID returns the FileID of the file containing the contract's bytecode.
func (*ContractCreateTransaction) GetConstructorParameters ¶
func (tx *ContractCreateTransaction) GetConstructorParameters() []byte
GetConstructorParameters returns the constructor parameters
func (*ContractCreateTransaction) GetContractMemo ¶
func (tx *ContractCreateTransaction) GetContractMemo() string
GetContractMemo returns the memo associated with this contract.
func (*ContractCreateTransaction) GetDeclineStakingReward ¶
func (tx *ContractCreateTransaction) GetDeclineStakingReward() bool
GetDeclineStakingReward returns if the contract should decline to pay the account's staking revenue.
func (*ContractCreateTransaction) GetGas ¶
func (tx *ContractCreateTransaction) GetGas() uint64
GetGas returns the gas to run the constructor.
func (*ContractCreateTransaction) GetInitialBalance ¶
func (tx *ContractCreateTransaction) GetInitialBalance() Hbar
GetInitialBalance gets the initial number of Hbar in the account
func (*ContractCreateTransaction) GetMaxAutomaticTokenAssociations ¶
func (tx *ContractCreateTransaction) GetMaxAutomaticTokenAssociations() int32
GetMaxAutomaticTokenAssociations returns the maximum number of tokens that this contract can be automatically associated
func (ContractCreateTransaction) GetNodeAccountIDs ¶
func (e ContractCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractCreateTransaction) GetProxyAccountID ¶
func (tx *ContractCreateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*ContractCreateTransaction) GetStakedAccountID ¶
func (tx *ContractCreateTransaction) GetStakedAccountID() AccountID
GetStakedAccountID returns the account ID of the account to which this contract is staked.
func (*ContractCreateTransaction) GetStakedNodeID ¶
func (tx *ContractCreateTransaction) GetStakedNodeID() int64
GetStakedNodeID returns the node ID of the node to which this contract is staked.
func (*ContractCreateTransaction) SetAdminKey ¶
func (tx *ContractCreateTransaction) SetAdminKey(adminKey Key) *ContractCreateTransaction
*
- Sets the state of the instance and its fields can be modified arbitrarily if this key signs a transaction
- to modify it. If this is null, then such modifications are not possible, and there is no administrator
- that can override the normal operation of this smart contract instance. Note that if it is created with no
- admin keys, then there is no administrator to authorize changing the admin keys, so
- there can never be any admin keys for that instance.
func (*ContractCreateTransaction) SetAutoRenewAccountID ¶
func (tx *ContractCreateTransaction) SetAutoRenewAccountID(id AccountID) *ContractCreateTransaction
SetAutoRenewAccountID An account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar balance, the contract's own hbar balance will be used to cover auto-renewal fees.
func (*ContractCreateTransaction) SetAutoRenewPeriod ¶
func (tx *ContractCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateTransaction
SetAutoRenewPeriod sets the time duration for when account is charged to extend its expiration date. When the account is created, the payer account is charged enough hbars so that the new account will not expire for the next auto renew period. When it reaches the expiration time, the new account will then be automatically charged to renew for another auto renew period. If it does not have enough hbars to renew for that long, then the remaining hbars are used to extend its expiration as long as possible. If it is has a zero balance when it expires, then it is deleted.
func (*ContractCreateTransaction) SetAutoRenewPeriodSeconds ¶ added in v2.69.0
func (tx *ContractCreateTransaction) SetAutoRenewPeriodSeconds(autoRenewPeriod int64) *ContractCreateTransaction
func (*ContractCreateTransaction) SetBytecode ¶
func (tx *ContractCreateTransaction) SetBytecode(code []byte) *ContractCreateTransaction
SetBytecode If it is small then it may either be stored as a hex encoded file or as a binary encoded field as part of the transaction.
func (*ContractCreateTransaction) SetBytecodeFileID ¶
func (tx *ContractCreateTransaction) SetBytecodeFileID(byteCodeFileID FileID) *ContractCreateTransaction
SetBytecodeFileID If the initcode is large (> 5K) then it must be stored in a file as hex encoded ascii.
func (*ContractCreateTransaction) SetConstructorParameters ¶
func (tx *ContractCreateTransaction) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateTransaction
SetConstructorParameters Sets the constructor parameters
func (*ContractCreateTransaction) SetConstructorParametersRaw ¶
func (tx *ContractCreateTransaction) SetConstructorParametersRaw(params []byte) *ContractCreateTransaction
SetConstructorParametersRaw Sets the constructor parameters as their raw bytes.
func (*ContractCreateTransaction) SetContractMemo ¶
func (tx *ContractCreateTransaction) SetContractMemo(memo string) *ContractCreateTransaction
SetContractMemo Sets the memo to be associated with this contract.
func (*ContractCreateTransaction) SetDeclineStakingReward ¶
func (tx *ContractCreateTransaction) SetDeclineStakingReward(decline bool) *ContractCreateTransaction
SetDeclineStakingReward sets if the contract should decline to pay the account's staking revenue.
func (*ContractCreateTransaction) SetGas ¶
func (tx *ContractCreateTransaction) SetGas(gas uint64) *ContractCreateTransaction
Sets the gas to run the constructor.
func (*ContractCreateTransaction) SetInitialBalance ¶
func (tx *ContractCreateTransaction) SetInitialBalance(initialBalance Hbar) *ContractCreateTransaction
SetInitialBalance sets the initial number of Hbar to put into the account
func (*ContractCreateTransaction) SetMaxAutomaticTokenAssociations ¶
func (tx *ContractCreateTransaction) SetMaxAutomaticTokenAssociations(max int32) *ContractCreateTransaction
SetMaxAutomaticTokenAssociations The maximum number of tokens that this contract can be automatically associated with (i.e., receive air-drops from).
func (*ContractCreateTransaction) SetProxyAccountID
deprecated
func (tx *ContractCreateTransaction) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateTransaction
Deprecated: SetProxyAccountID sets the ID of the account to which this account is proxy staked. If proxyAccountID is not set, is an invalID account, or is an account that isn't a _Node, then this account is automatically proxy staked to a _Node chosen by the _Network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking , or if it is not currently running a _Node, then it will behave as if proxyAccountID was not set.
func (*ContractCreateTransaction) SetStakedAccountID ¶
func (tx *ContractCreateTransaction) SetStakedAccountID(id AccountID) *ContractCreateTransaction
SetStakedAccountID sets the account ID of the account to which this contract is staked.
func (*ContractCreateTransaction) SetStakedNodeID ¶
func (tx *ContractCreateTransaction) SetStakedNodeID(id int64) *ContractCreateTransaction
SetStakedNodeID sets the node ID of the node to which this contract is staked.
type ContractDeleteTransaction ¶
type ContractDeleteTransaction struct { *Transaction[*ContractDeleteTransaction] // contains filtered or unexported fields }
ContractDeleteTransaction marks a contract as deleted and transfers its remaining hBars, if any, to a designated receiver. After a contract is deleted, it can no longer be called.
func NewContractDeleteTransaction ¶
func NewContractDeleteTransaction() *ContractDeleteTransaction
NewContractDeleteTransaction creates ContractDeleteTransaction which marks a contract as deleted and transfers its remaining hBars, if any, to a designated receiver. After a contract is deleted, it can no longer be called.
func (*ContractDeleteTransaction) GetContractID ¶
func (tx *ContractDeleteTransaction) GetContractID() ContractID
Returns the contract ID which will be deleted.
func (ContractDeleteTransaction) GetNodeAccountIDs ¶
func (e ContractDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractDeleteTransaction) GetPermanentRemoval ¶
func (tx *ContractDeleteTransaction) GetPermanentRemoval() bool
GetPermanentRemoval returns true if this is a "synthetic" system transaction.
func (*ContractDeleteTransaction) GetTransferAccountID ¶
func (tx *ContractDeleteTransaction) GetTransferAccountID() AccountID
Returns the account ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) GetTransferContractID ¶
func (tx *ContractDeleteTransaction) GetTransferContractID() ContractID
Returns the contract ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) SetContractID ¶
func (tx *ContractDeleteTransaction) SetContractID(contractID ContractID) *ContractDeleteTransaction
Sets the contract ID which will be deleted.
func (*ContractDeleteTransaction) SetPermanentRemoval ¶
func (tx *ContractDeleteTransaction) SetPermanentRemoval(remove bool) *ContractDeleteTransaction
SetPermanentRemoval If set to true, means this is a "synthetic" system transaction being used to alert mirror nodes that the contract is being permanently removed from the ledger. IMPORTANT: User transactions cannot set this field to true, as permanent removal is always managed by the ledger itself. Any ContractDeleteTransaction submitted to HAPI with permanent_removal=true will be rejected with precheck status PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION.
func (*ContractDeleteTransaction) SetTransferAccountID ¶
func (tx *ContractDeleteTransaction) SetTransferAccountID(accountID AccountID) *ContractDeleteTransaction
Sets the account ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) SetTransferContractID ¶
func (tx *ContractDeleteTransaction) SetTransferContractID(transferContactID ContractID) *ContractDeleteTransaction
Sets the contract ID which will receive all remaining hbars.
type ContractExecuteTransaction ¶
type ContractExecuteTransaction struct { *Transaction[*ContractExecuteTransaction] // contains filtered or unexported fields }
ContractExecuteTransaction calls a function of the given smart contract instance, giving it ContractFuncionParams as its inputs. it can use the given amount of gas, and any unspent gas will be refunded to the paying account.
If tx function stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee.
For a cheaper but more limited _Method to call functions, see ContractCallQuery.
func NewContractExecuteTransaction ¶
func NewContractExecuteTransaction() *ContractExecuteTransaction
NewContractExecuteTransaction creates a ContractExecuteTransaction transaction which can be used to construct and execute a Contract Call Transaction.
func (*ContractExecuteTransaction) GetContractID ¶
func (tx *ContractExecuteTransaction) GetContractID() ContractID
GetContractID returns the contract instance to call.
func (*ContractExecuteTransaction) GetFunctionParameters ¶
func (tx *ContractExecuteTransaction) GetFunctionParameters() []byte
GetFunctionParameters returns the function parameters
func (*ContractExecuteTransaction) GetGas ¶
func (tx *ContractExecuteTransaction) GetGas() uint64
GetGas returns the maximum amount of gas to use for the call.
func (ContractExecuteTransaction) GetNodeAccountIDs ¶
func (e ContractExecuteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractExecuteTransaction) GetPayableAmount ¶
func (tx *ContractExecuteTransaction) GetPayableAmount() Hbar
GetPayableAmount returns the amount of Hbar sent (the function must be payable if this is nonzero)
func (*ContractExecuteTransaction) SetContractID ¶
func (tx *ContractExecuteTransaction) SetContractID(contractID ContractID) *ContractExecuteTransaction
SetContractID sets the contract instance to call.
func (*ContractExecuteTransaction) SetFunction ¶
func (tx *ContractExecuteTransaction) SetFunction(name string, params *ContractFunctionParameters) *ContractExecuteTransaction
SetFunction sets which function to call, and the ContractFunctionParams to pass to the function
func (*ContractExecuteTransaction) SetFunctionParameters ¶
func (tx *ContractExecuteTransaction) SetFunctionParameters(params []byte) *ContractExecuteTransaction
SetFunctionParameters sets the function parameters
func (*ContractExecuteTransaction) SetGas ¶
func (tx *ContractExecuteTransaction) SetGas(gas uint64) *ContractExecuteTransaction
SetGas sets the maximum amount of gas to use for the call.
func (*ContractExecuteTransaction) SetPayableAmount ¶
func (tx *ContractExecuteTransaction) SetPayableAmount(amount Hbar) *ContractExecuteTransaction
SetPayableAmount sets the amount of Hbar sent (the function must be payable if this is nonzero)
type ContractFunctionParameters ¶
type ContractFunctionParameters struct {
// contains filtered or unexported fields
}
ContractFunctionParameters is a struct which builds a solidity function call Use the builder methods `Add<Type>()` to add a parameter. Not all solidity types are supported out of the box, but the most common types are. The larger variants of number types require the parameter to be `[]byte`.
func NewContractFunctionParameters ¶
func NewContractFunctionParameters() *ContractFunctionParameters
Builder for encoding parameters for a Solidity contract constructor/function call.
func (*ContractFunctionParameters) AddAddress ¶
func (contract *ContractFunctionParameters) AddAddress(value string) (*ContractFunctionParameters, error)
AddAddress adds an address parameter to the function call
func (*ContractFunctionParameters) AddAddressArray ¶
func (contract *ContractFunctionParameters) AddAddressArray(value []string) (*ContractFunctionParameters, error)
AddAddressArray adds an address array parameter to the function call
func (*ContractFunctionParameters) AddBool ¶
func (contract *ContractFunctionParameters) AddBool(value bool) *ContractFunctionParameters
AddBool adds a bool parameter to the function call
func (*ContractFunctionParameters) AddBytes ¶
func (contract *ContractFunctionParameters) AddBytes(value []byte) *ContractFunctionParameters
AddBytes adds a bytes parameter to the function call
func (*ContractFunctionParameters) AddBytes32 ¶
func (contract *ContractFunctionParameters) AddBytes32(value [32]byte) *ContractFunctionParameters
AddBytes32 adds a bytes32 parameter to the function call
func (*ContractFunctionParameters) AddBytes32Array ¶
func (contract *ContractFunctionParameters) AddBytes32Array(value [][]byte) *ContractFunctionParameters
AddBytes32Array adds a bytes32 array parameter to the function call
func (*ContractFunctionParameters) AddBytesArray ¶
func (contract *ContractFunctionParameters) AddBytesArray(value [][]byte) *ContractFunctionParameters
AddBytesArray adds a bytes array parameter to the function call
func (*ContractFunctionParameters) AddFunction ¶
func (contract *ContractFunctionParameters) AddFunction(address string, selector ContractFunctionSelector) (*ContractFunctionParameters, error)
AddFunction adds a Solidity function reference and a function selector.
func (*ContractFunctionParameters) AddIn88BigInt ¶
func (contract *ContractFunctionParameters) AddIn88BigInt(value *big.Int) *ContractFunctionParameters
AddInt88BigInt adds an int88parameter to the function call
func (*ContractFunctionParameters) AddInt104 ¶
func (contract *ContractFunctionParameters) AddInt104(value []byte) *ContractFunctionParameters
AddInt104 adds an int104 parameter to the function call
func (*ContractFunctionParameters) AddInt104BigInt ¶
func (contract *ContractFunctionParameters) AddInt104BigInt(value *big.Int) *ContractFunctionParameters
AddInt104BigInt adds an int104 parameter to the function call
func (*ContractFunctionParameters) AddInt112 ¶
func (contract *ContractFunctionParameters) AddInt112(value []byte) *ContractFunctionParameters
AddInt112 adds an int112 parameter to the function call
func (*ContractFunctionParameters) AddInt112BigInt ¶
func (contract *ContractFunctionParameters) AddInt112BigInt(value *big.Int) *ContractFunctionParameters
AddInt112BigInt adds an int112 parameter to the function call
func (*ContractFunctionParameters) AddInt120 ¶
func (contract *ContractFunctionParameters) AddInt120(value []byte) *ContractFunctionParameters
AddInt120 adds an int120 parameter to the function call
func (*ContractFunctionParameters) AddInt120BigInt ¶
func (contract *ContractFunctionParameters) AddInt120BigInt(value *big.Int) *ContractFunctionParameters
AddInt120BigInt adds an int120parameter to the function call
func (*ContractFunctionParameters) AddInt128 ¶
func (contract *ContractFunctionParameters) AddInt128(value []byte) *ContractFunctionParameters
AddInt128 adds an int128 parameter to the function call
func (*ContractFunctionParameters) AddInt128BigInt ¶
func (contract *ContractFunctionParameters) AddInt128BigInt(value *big.Int) *ContractFunctionParameters
AddInt128BigInt adds an int128parameter to the function call
func (*ContractFunctionParameters) AddInt136 ¶
func (contract *ContractFunctionParameters) AddInt136(value []byte) *ContractFunctionParameters
AddInt136 adds an int136 parameter to the function call
func (*ContractFunctionParameters) AddInt136BigInt ¶
func (contract *ContractFunctionParameters) AddInt136BigInt(value *big.Int) *ContractFunctionParameters
AddInt136BigInt adds an int136 parameter to the function call
func (*ContractFunctionParameters) AddInt144 ¶
func (contract *ContractFunctionParameters) AddInt144(value []byte) *ContractFunctionParameters
AddInt144 adds an int144 parameter to the function call
func (*ContractFunctionParameters) AddInt144BigInt ¶
func (contract *ContractFunctionParameters) AddInt144BigInt(value *big.Int) *ContractFunctionParameters
AddInt144BigInt adds an int144 parameter to the function call
func (*ContractFunctionParameters) AddInt152 ¶
func (contract *ContractFunctionParameters) AddInt152(value []byte) *ContractFunctionParameters
AddInt152 adds an int152 parameter to the function call
func (*ContractFunctionParameters) AddInt152BigInt ¶
func (contract *ContractFunctionParameters) AddInt152BigInt(value *big.Int) *ContractFunctionParameters
AddInt152BigInt adds an int152 parameter to the function call
func (*ContractFunctionParameters) AddInt16 ¶
func (contract *ContractFunctionParameters) AddInt16(value int16) *ContractFunctionParameters
AddInt16 adds an int16 parameter to the function call
func (*ContractFunctionParameters) AddInt160 ¶
func (contract *ContractFunctionParameters) AddInt160(value []byte) *ContractFunctionParameters
AddInt160 adds an int160 parameter to the function call
func (*ContractFunctionParameters) AddInt160BigInt ¶
func (contract *ContractFunctionParameters) AddInt160BigInt(value *big.Int) *ContractFunctionParameters
AddInt160BigInt adds an int160 parameter to the function call
func (*ContractFunctionParameters) AddInt168 ¶
func (contract *ContractFunctionParameters) AddInt168(value []byte) *ContractFunctionParameters
AddInt168 adds an int168 parameter to the function call
func (*ContractFunctionParameters) AddInt168BigInt ¶
func (contract *ContractFunctionParameters) AddInt168BigInt(value *big.Int) *ContractFunctionParameters
AddInt168BigInt adds an int168 parameter to the function call
func (*ContractFunctionParameters) AddInt16Array ¶
func (contract *ContractFunctionParameters) AddInt16Array(value []int16) *ContractFunctionParameters
AddInt16Array adds an int16 array parameter to the function call
func (*ContractFunctionParameters) AddInt176 ¶
func (contract *ContractFunctionParameters) AddInt176(value []byte) *ContractFunctionParameters
AddInt176 adds an int176 parameter to the function call
func (*ContractFunctionParameters) AddInt176BigInt ¶
func (contract *ContractFunctionParameters) AddInt176BigInt(value *big.Int) *ContractFunctionParameters
AddInt176BigInt adds an int176 parameter to the function call
func (*ContractFunctionParameters) AddInt184 ¶
func (contract *ContractFunctionParameters) AddInt184(value []byte) *ContractFunctionParameters
AddInt184 adds an int184 parameter to the function call
func (*ContractFunctionParameters) AddInt184BigInt ¶
func (contract *ContractFunctionParameters) AddInt184BigInt(value *big.Int) *ContractFunctionParameters
AddInt184BigInt adds an int184 parameter to the function call
func (*ContractFunctionParameters) AddInt192 ¶
func (contract *ContractFunctionParameters) AddInt192(value []byte) *ContractFunctionParameters
AddInt192 adds an int192 parameter to the function call
func (*ContractFunctionParameters) AddInt192BigInt ¶
func (contract *ContractFunctionParameters) AddInt192BigInt(value *big.Int) *ContractFunctionParameters
AddInt192BigInt adds an int192 parameter to the function call
func (*ContractFunctionParameters) AddInt200 ¶
func (contract *ContractFunctionParameters) AddInt200(value []byte) *ContractFunctionParameters
AddInt200 adds an int200 parameter to the function call
func (*ContractFunctionParameters) AddInt200BigInt ¶
func (contract *ContractFunctionParameters) AddInt200BigInt(value *big.Int) *ContractFunctionParameters
AddInt200BigInt adds an int200 parameter to the function call
func (*ContractFunctionParameters) AddInt208 ¶
func (contract *ContractFunctionParameters) AddInt208(value []byte) *ContractFunctionParameters
AddInt208 adds an int208 parameter to the function call
func (*ContractFunctionParameters) AddInt208BigInt ¶
func (contract *ContractFunctionParameters) AddInt208BigInt(value *big.Int) *ContractFunctionParameters
AddInt208BigInt adds an int208parameter to the function call
func (*ContractFunctionParameters) AddInt216 ¶
func (contract *ContractFunctionParameters) AddInt216(value []byte) *ContractFunctionParameters
AddInt216 adds an int216 parameter to the function call
func (*ContractFunctionParameters) AddInt216BigInt ¶
func (contract *ContractFunctionParameters) AddInt216BigInt(value *big.Int) *ContractFunctionParameters
AddInt216BigInt adds an int216 parameter to the function call
func (*ContractFunctionParameters) AddInt224 ¶
func (contract *ContractFunctionParameters) AddInt224(value []byte) *ContractFunctionParameters
AddInt224 adds an int224 parameter to the function call
func (*ContractFunctionParameters) AddInt224BigInt ¶
func (contract *ContractFunctionParameters) AddInt224BigInt(value *big.Int) *ContractFunctionParameters
AddInt224BigInt adds an int224 parameter to the function call
func (*ContractFunctionParameters) AddInt232 ¶
func (contract *ContractFunctionParameters) AddInt232(value []byte) *ContractFunctionParameters
AddInt232 adds an int232 parameter to the function call
func (*ContractFunctionParameters) AddInt232BigInt ¶
func (contract *ContractFunctionParameters) AddInt232BigInt(value *big.Int) *ContractFunctionParameters
AddInt232BigInt adds an int232 parameter to the function call
func (*ContractFunctionParameters) AddInt24 ¶
func (contract *ContractFunctionParameters) AddInt24(value int32) *ContractFunctionParameters
AddInt24 adds an int24 parameter to the function call
func (*ContractFunctionParameters) AddInt240 ¶
func (contract *ContractFunctionParameters) AddInt240(value []byte) *ContractFunctionParameters
AddInt240 adds an int240 parameter to the function call
func (*ContractFunctionParameters) AddInt240BigInt ¶
func (contract *ContractFunctionParameters) AddInt240BigInt(value *big.Int) *ContractFunctionParameters
AddInt240BigInt adds an int240 parameter to the function call
func (*ContractFunctionParameters) AddInt248 ¶
func (contract *ContractFunctionParameters) AddInt248(value []byte) *ContractFunctionParameters
AddInt248 adds an int248 parameter to the function call
func (*ContractFunctionParameters) AddInt248BigInt ¶
func (contract *ContractFunctionParameters) AddInt248BigInt(value *big.Int) *ContractFunctionParameters
AddInt248BigInt adds an int248 parameter to the function call
func (*ContractFunctionParameters) AddInt24Array ¶
func (contract *ContractFunctionParameters) AddInt24Array(value []int32) *ContractFunctionParameters
AddInt24Array adds an int24 array parameter to the function call
func (*ContractFunctionParameters) AddInt256 ¶
func (contract *ContractFunctionParameters) AddInt256(value []byte) *ContractFunctionParameters
AddInt256 adds an int256 parameter to the function call
func (*ContractFunctionParameters) AddInt256Array ¶
func (contract *ContractFunctionParameters) AddInt256Array(value [][32]byte) *ContractFunctionParameters
AddInt256Array adds an int256 array parameter to the function call
func (*ContractFunctionParameters) AddInt256BigInt ¶
func (contract *ContractFunctionParameters) AddInt256BigInt(value *big.Int) *ContractFunctionParameters
AddInt256BigInt adds an int256 parameter to the function call
func (*ContractFunctionParameters) AddInt32 ¶
func (contract *ContractFunctionParameters) AddInt32(value int32) *ContractFunctionParameters
AddInt32 adds an int32 parameter to the function call
func (*ContractFunctionParameters) AddInt32Array ¶
func (contract *ContractFunctionParameters) AddInt32Array(value []int32) *ContractFunctionParameters
AddInt32Array adds an int32 array parameter to the function call
func (*ContractFunctionParameters) AddInt40 ¶
func (contract *ContractFunctionParameters) AddInt40(value int64) *ContractFunctionParameters
AddInt40 adds an int40 parameter to the function call
func (*ContractFunctionParameters) AddInt48 ¶
func (contract *ContractFunctionParameters) AddInt48(value int64) *ContractFunctionParameters
AddInt48 adds an int48 parameter to the function call
func (*ContractFunctionParameters) AddInt56 ¶
func (contract *ContractFunctionParameters) AddInt56(value int64) *ContractFunctionParameters
AddInt56 adds an int56 parameter to the function call
func (*ContractFunctionParameters) AddInt64 ¶
func (contract *ContractFunctionParameters) AddInt64(value int64) *ContractFunctionParameters
AddInt64 adds an int64 parameter to the function call
func (*ContractFunctionParameters) AddInt64Array ¶
func (contract *ContractFunctionParameters) AddInt64Array(value []int64) *ContractFunctionParameters
AddInt64Array adds an int64 array parameter to the function call
func (*ContractFunctionParameters) AddInt72 ¶
func (contract *ContractFunctionParameters) AddInt72(value []byte) *ContractFunctionParameters
AddInt72 adds an int72 parameter to the function call
func (*ContractFunctionParameters) AddInt72BigInt ¶
func (contract *ContractFunctionParameters) AddInt72BigInt(value *big.Int) *ContractFunctionParameters
AddInt72BigInt adds an int72parameter to the function call
func (*ContractFunctionParameters) AddInt8 ¶
func (contract *ContractFunctionParameters) AddInt8(value int8) *ContractFunctionParameters
AddInt8 adds an int8 parameter to the function call
func (*ContractFunctionParameters) AddInt80 ¶
func (contract *ContractFunctionParameters) AddInt80(value []byte) *ContractFunctionParameters
AddInt80 adds an int80 parameter to the function call
func (*ContractFunctionParameters) AddInt80BigInt ¶
func (contract *ContractFunctionParameters) AddInt80BigInt(value *big.Int) *ContractFunctionParameters
AddInt80igInt adds an int80parameter to the function call
func (*ContractFunctionParameters) AddInt88 ¶
func (contract *ContractFunctionParameters) AddInt88(value []byte) *ContractFunctionParameters
AddInt88 adds an int88 parameter to the function call
func (*ContractFunctionParameters) AddInt8Array ¶
func (contract *ContractFunctionParameters) AddInt8Array(value []int8) *ContractFunctionParameters
AddInt8Array adds an int8 array parameter to the function call
func (*ContractFunctionParameters) AddInt96 ¶
func (contract *ContractFunctionParameters) AddInt96(value []byte) *ContractFunctionParameters
AddInt96 adds an int96 parameter to the function call
func (*ContractFunctionParameters) AddInt96BigInt ¶
func (contract *ContractFunctionParameters) AddInt96BigInt(value *big.Int) *ContractFunctionParameters
AddInt96BigInt adds an int96parameter to the function call
func (*ContractFunctionParameters) AddString ¶
func (contract *ContractFunctionParameters) AddString(value string) *ContractFunctionParameters
AddString ads a string parameter to the function call
func (*ContractFunctionParameters) AddStringArray ¶
func (contract *ContractFunctionParameters) AddStringArray(value []string) *ContractFunctionParameters
AddStringArray adds a string array parameter to the function call
func (*ContractFunctionParameters) AddUint104 ¶
func (contract *ContractFunctionParameters) AddUint104(value []byte) *ContractFunctionParameters
AddUint104 adds a uint104 parameter to the function call
func (*ContractFunctionParameters) AddUint104igInt ¶
func (contract *ContractFunctionParameters) AddUint104igInt(value *big.Int) *ContractFunctionParameters
AddUint104BigInt adds a uint104 parameter to the function call
func (*ContractFunctionParameters) AddUint112 ¶
func (contract *ContractFunctionParameters) AddUint112(value []byte) *ContractFunctionParameters
AddUint112 adds a uint112 parameter to the function call
func (*ContractFunctionParameters) AddUint112BigInt ¶
func (contract *ContractFunctionParameters) AddUint112BigInt(value *big.Int) *ContractFunctionParameters
AddUint112BigInt adds a uint112 parameter to the function call
func (*ContractFunctionParameters) AddUint120 ¶
func (contract *ContractFunctionParameters) AddUint120(value []byte) *ContractFunctionParameters
AddUint120 adds a uint120 parameter to the function call
func (*ContractFunctionParameters) AddUint120BigInt ¶
func (contract *ContractFunctionParameters) AddUint120BigInt(value *big.Int) *ContractFunctionParameters
AddUint120BigInt adds a uint120 parameter to the function call
func (*ContractFunctionParameters) AddUint128 ¶
func (contract *ContractFunctionParameters) AddUint128(value []byte) *ContractFunctionParameters
AddUint128 adds a uint128 parameter to the function call
func (*ContractFunctionParameters) AddUint128BigInt ¶
func (contract *ContractFunctionParameters) AddUint128BigInt(value *big.Int) *ContractFunctionParameters
AddUint128BigInt adds a uint128 parameter to the function call
func (*ContractFunctionParameters) AddUint136 ¶
func (contract *ContractFunctionParameters) AddUint136(value []byte) *ContractFunctionParameters
AddUint136 adds a uint136 parameter to the function call
func (*ContractFunctionParameters) AddUint136BigInt ¶
func (contract *ContractFunctionParameters) AddUint136BigInt(value *big.Int) *ContractFunctionParameters
AddUint136BigInt adds a uint136 parameter to the function call
func (*ContractFunctionParameters) AddUint144 ¶
func (contract *ContractFunctionParameters) AddUint144(value []byte) *ContractFunctionParameters
AddUint144 adds a uint144 parameter to the function call
func (*ContractFunctionParameters) AddUint144BigInt ¶
func (contract *ContractFunctionParameters) AddUint144BigInt(value *big.Int) *ContractFunctionParameters
AddUint144BigInt adds a uint144 parameter to the function call
func (*ContractFunctionParameters) AddUint152 ¶
func (contract *ContractFunctionParameters) AddUint152(value []byte) *ContractFunctionParameters
AddUint152 adds a uint152 parameter to the function call
func (*ContractFunctionParameters) AddUint152BigInt ¶
func (contract *ContractFunctionParameters) AddUint152BigInt(value *big.Int) *ContractFunctionParameters
AddUint152BigInt adds a uint152 parameter to the function call
func (*ContractFunctionParameters) AddUint16 ¶
func (contract *ContractFunctionParameters) AddUint16(value uint16) *ContractFunctionParameters
AddUint16 adds a uint16 parameter to the function call
func (*ContractFunctionParameters) AddUint160 ¶
func (contract *ContractFunctionParameters) AddUint160(value []byte) *ContractFunctionParameters
AddUint160 adds a uint160 parameter to the function call
func (*ContractFunctionParameters) AddUint160BigInt ¶
func (contract *ContractFunctionParameters) AddUint160BigInt(value *big.Int) *ContractFunctionParameters
AddUint160BigInt adds a uint160 parameter to the function call
func (*ContractFunctionParameters) AddUint168 ¶
func (contract *ContractFunctionParameters) AddUint168(value []byte) *ContractFunctionParameters
AddUint168 adds a uint168 parameter to the function call
func (*ContractFunctionParameters) AddUint168BigInt ¶
func (contract *ContractFunctionParameters) AddUint168BigInt(value *big.Int) *ContractFunctionParameters
AddUint168BigInt adds a uint168 parameter to the function call
func (*ContractFunctionParameters) AddUint176 ¶
func (contract *ContractFunctionParameters) AddUint176(value []byte) *ContractFunctionParameters
AddUint176 adds a uint176 parameter to the function call
func (*ContractFunctionParameters) AddUint176BigInt ¶
func (contract *ContractFunctionParameters) AddUint176BigInt(value *big.Int) *ContractFunctionParameters
AddUint176BigInt adds a uint176 parameter to the function call
func (*ContractFunctionParameters) AddUint184 ¶
func (contract *ContractFunctionParameters) AddUint184(value []byte) *ContractFunctionParameters
AddUint184 adds a uint184 parameter to the function call
func (*ContractFunctionParameters) AddUint184BigInt ¶
func (contract *ContractFunctionParameters) AddUint184BigInt(value *big.Int) *ContractFunctionParameters
AddUint184BigInt adds a uint184 parameter to the function call
func (*ContractFunctionParameters) AddUint192 ¶
func (contract *ContractFunctionParameters) AddUint192(value []byte) *ContractFunctionParameters
AddUint192 adds a uint192 parameter to the function call
func (*ContractFunctionParameters) AddUint192BigInt ¶
func (contract *ContractFunctionParameters) AddUint192BigInt(value *big.Int) *ContractFunctionParameters
AddUint192BigInt adds a uint192 parameter to the function call
func (*ContractFunctionParameters) AddUint200 ¶
func (contract *ContractFunctionParameters) AddUint200(value []byte) *ContractFunctionParameters
AddUint200 adds a uint200 parameter to the function call
func (*ContractFunctionParameters) AddUint200BigInt ¶
func (contract *ContractFunctionParameters) AddUint200BigInt(value *big.Int) *ContractFunctionParameters
AddUint200BigInt adds a uint200 parameter to the function call
func (*ContractFunctionParameters) AddUint208 ¶
func (contract *ContractFunctionParameters) AddUint208(value []byte) *ContractFunctionParameters
AddUint208 adds a uint208 parameter to the function call
func (*ContractFunctionParameters) AddUint208BigInt ¶
func (contract *ContractFunctionParameters) AddUint208BigInt(value *big.Int) *ContractFunctionParameters
AddUint208BigInt adds a uint208 parameter to the function call
func (*ContractFunctionParameters) AddUint216 ¶
func (contract *ContractFunctionParameters) AddUint216(value []byte) *ContractFunctionParameters
AddUint216 adds a uint216 parameter to the function call
func (*ContractFunctionParameters) AddUint216BigInt ¶
func (contract *ContractFunctionParameters) AddUint216BigInt(value *big.Int) *ContractFunctionParameters
AddUint216BigInt adds a uint216 parameter to the function call
func (*ContractFunctionParameters) AddUint224 ¶
func (contract *ContractFunctionParameters) AddUint224(value []byte) *ContractFunctionParameters
AddUint224 adds a uint224 parameter to the function call
func (*ContractFunctionParameters) AddUint224BigInt ¶
func (contract *ContractFunctionParameters) AddUint224BigInt(value *big.Int) *ContractFunctionParameters
AddUint224BigInt adds a uint224 parameter to the function call
func (*ContractFunctionParameters) AddUint232 ¶
func (contract *ContractFunctionParameters) AddUint232(value []byte) *ContractFunctionParameters
AddUint232 adds a uint232 parameter to the function call
func (*ContractFunctionParameters) AddUint232BigInt ¶
func (contract *ContractFunctionParameters) AddUint232BigInt(value *big.Int) *ContractFunctionParameters
AddUint232BigInt adds a uint232 parameter to the function call
func (*ContractFunctionParameters) AddUint24 ¶
func (contract *ContractFunctionParameters) AddUint24(value uint32) *ContractFunctionParameters
AddUint24 adds a uint24 parameter to the function call
func (*ContractFunctionParameters) AddUint240 ¶
func (contract *ContractFunctionParameters) AddUint240(value []byte) *ContractFunctionParameters
AddUint240 adds a uint240 parameter to the function call
func (*ContractFunctionParameters) AddUint240BigInt ¶
func (contract *ContractFunctionParameters) AddUint240BigInt(value *big.Int) *ContractFunctionParameters
AddUint240BigInt adds a uint240 parameter to the function call
func (*ContractFunctionParameters) AddUint248 ¶
func (contract *ContractFunctionParameters) AddUint248(value []byte) *ContractFunctionParameters
AddUint248 adds a uint248 parameter to the function call
func (*ContractFunctionParameters) AddUint248BigInt ¶
func (contract *ContractFunctionParameters) AddUint248BigInt(value *big.Int) *ContractFunctionParameters
AddUint248BigInt adds a uint248 parameter to the function call
func (*ContractFunctionParameters) AddUint256 ¶
func (contract *ContractFunctionParameters) AddUint256(value []byte) *ContractFunctionParameters
AddUint256 adds a uint256 parameter to the function call
func (*ContractFunctionParameters) AddUint256Array ¶
func (contract *ContractFunctionParameters) AddUint256Array(value [][32]byte) *ContractFunctionParameters
AddUint256Array adds a uint256 array parameter to the function call
func (*ContractFunctionParameters) AddUint256BigInt ¶
func (contract *ContractFunctionParameters) AddUint256BigInt(value *big.Int) *ContractFunctionParameters
AddUint256BigInt adds a uint256 parameter to the function call
func (*ContractFunctionParameters) AddUint32 ¶
func (contract *ContractFunctionParameters) AddUint32(value uint32) *ContractFunctionParameters
AddUint32 adds a uint32 parameter to the function call
func (*ContractFunctionParameters) AddUint32Array ¶
func (contract *ContractFunctionParameters) AddUint32Array(value []uint32) *ContractFunctionParameters
AddUint32Array adds a uint32 array parameter to the function call
func (*ContractFunctionParameters) AddUint40 ¶
func (contract *ContractFunctionParameters) AddUint40(value uint64) *ContractFunctionParameters
AddUint40 adds a uint40 parameter to the function call
func (*ContractFunctionParameters) AddUint48 ¶
func (contract *ContractFunctionParameters) AddUint48(value uint64) *ContractFunctionParameters
AddUint48 adds a uint48 parameter to the function call
func (*ContractFunctionParameters) AddUint56 ¶
func (contract *ContractFunctionParameters) AddUint56(value uint64) *ContractFunctionParameters
AddUint56 adds a uint56 parameter to the function call
func (*ContractFunctionParameters) AddUint64 ¶
func (contract *ContractFunctionParameters) AddUint64(value uint64) *ContractFunctionParameters
AddUint64 adds a uint64 parameter to the function call
func (*ContractFunctionParameters) AddUint64Array ¶
func (contract *ContractFunctionParameters) AddUint64Array(value []uint64) *ContractFunctionParameters
AddUint64Array adds a uint64 array parameter to the function call
func (*ContractFunctionParameters) AddUint72 ¶
func (contract *ContractFunctionParameters) AddUint72(value []byte) *ContractFunctionParameters
AddUint72 adds a uint72 parameter to the function call
func (*ContractFunctionParameters) AddUint72BigInt ¶
func (contract *ContractFunctionParameters) AddUint72BigInt(value *big.Int) *ContractFunctionParameters
AddUint72BigInt adds a uint72 parameter to the function call
func (*ContractFunctionParameters) AddUint8 ¶
func (contract *ContractFunctionParameters) AddUint8(value uint8) *ContractFunctionParameters
AddUint8 adds a uint8 parameter to the function call
func (*ContractFunctionParameters) AddUint80 ¶
func (contract *ContractFunctionParameters) AddUint80(value []byte) *ContractFunctionParameters
AddUint80 adds a uint80 parameter to the function call
func (*ContractFunctionParameters) AddUint80BigInt ¶
func (contract *ContractFunctionParameters) AddUint80BigInt(value *big.Int) *ContractFunctionParameters
AddUint80BigInt adds a uint80parameter to the function call
func (*ContractFunctionParameters) AddUint88 ¶
func (contract *ContractFunctionParameters) AddUint88(value []byte) *ContractFunctionParameters
AddUint88 adds a uint88 parameter to the function call
func (*ContractFunctionParameters) AddUint88BigInt ¶
func (contract *ContractFunctionParameters) AddUint88BigInt(value *big.Int) *ContractFunctionParameters
AddUint88BigInt adds a uint88parameter to the function call
func (*ContractFunctionParameters) AddUint96 ¶
func (contract *ContractFunctionParameters) AddUint96(value []byte) *ContractFunctionParameters
AddUint96 adds a uint96 parameter to the function call
func (*ContractFunctionParameters) AddUint96BigInt ¶
func (contract *ContractFunctionParameters) AddUint96BigInt(value *big.Int) *ContractFunctionParameters
AddUint96BigInt adds a uint96parameter to the function call
type ContractFunctionResult ¶
type ContractFunctionResult struct { // ContractID is the smart contract instance whose function was called ContractID *ContractID // ContractCallResult is the result returned by the function ContractCallResult []byte // ErrorMessage is the message returned in the case there was an error during smart contract execution ErrorMessage string // Bloom is the bloom filter for record Bloom []byte // GasUsed is the amount of gas used to execute the contract function GasUsed uint64 // LogInfo is the log info for events returned by the function LogInfo []ContractLogInfo // Deprecated CreatedContractIDs []ContractID // Deprecated ContractStateChanges []ContractStateChange EvmAddress ContractID GasAvailable int64 Amount Hbar FunctionParameters []byte ContractNonces []*ContractNonceInfo SignerNonce int64 }
ContractFunctionResult is a struct which allows users to convert between solidity and Go types, and is typically returned by `ContractCallQuery` and is present in the transaction records of `ContractExecuteTransaction`. Use the methods `Get<Type>()` to get a parameter. Not all solidity types are supported out of the box, but the most common types are. The larger variants of number types return just the bytes for the integer instead of converting to a big int type. ``` contractFunctionResult.GetUint256(<index>) bInt := new(big.Int) bInt.SetBytes(query.GetUint256(0)) ```
func ContractFunctionResultFromBytes ¶
func ContractFunctionResultFromBytes(data []byte) (ContractFunctionResult, error)
ContractFunctionResultFromBytes returns a ContractFunctionResult from the protobuf encoded bytes of a ContractFunctionResult
func (ContractFunctionResult) AsBytes ¶
func (result ContractFunctionResult) AsBytes() []byte
AsBytes returns the raw bytes of the ContractCallResult
func (ContractFunctionResult) GetAddress ¶
func (result ContractFunctionResult) GetAddress(index uint64) []byte
GetAddress gets a _Solidity address from the result at the given index
func (ContractFunctionResult) GetBigInt ¶
func (result ContractFunctionResult) GetBigInt(index uint64) *big.Int
GetBigInt gets an _Solidity integer from the result at the given index and returns it as a big.Int
func (ContractFunctionResult) GetBool ¶
func (result ContractFunctionResult) GetBool(index uint64) bool
GetBool gets a _Solidity bool from the result at the given index
func (ContractFunctionResult) GetBytes ¶
func (result ContractFunctionResult) GetBytes(index uint64) []byte
GetBytes gets a byte array from the result at the given index
func (ContractFunctionResult) GetBytes32 ¶
func (result ContractFunctionResult) GetBytes32(index uint64) []byte
GetBytes32 gets a _Solidity bytes32 from the result at the given index
func (ContractFunctionResult) GetInt104 ¶
func (result ContractFunctionResult) GetInt104(index uint64) []byte
GetInt104 gets a _Solidity int104 from the result at the given index
func (ContractFunctionResult) GetInt112 ¶
func (result ContractFunctionResult) GetInt112(index uint64) []byte
GetInt112 gets a _Solidity int112 from the result at the given index
func (ContractFunctionResult) GetInt120 ¶
func (result ContractFunctionResult) GetInt120(index uint64) []byte
GetInt120 gets a _Solidity int120 from the result at the given index
func (ContractFunctionResult) GetInt128 ¶
func (result ContractFunctionResult) GetInt128(index uint64) []byte
GetInt128 gets a _Solidity int128 from the result at the given index
func (ContractFunctionResult) GetInt136 ¶
func (result ContractFunctionResult) GetInt136(index uint64) []byte
GetInt136 gets a _Solidity int136 from the result at the given index
func (ContractFunctionResult) GetInt144 ¶
func (result ContractFunctionResult) GetInt144(index uint64) []byte
GetInt144 gets a _Solidity int144 from the result at the given index
func (ContractFunctionResult) GetInt152 ¶
func (result ContractFunctionResult) GetInt152(index uint64) []byte
GetInt152 gets a _Solidity int152 from the result at the given index
func (ContractFunctionResult) GetInt16 ¶
func (result ContractFunctionResult) GetInt16(index uint64) int16
GetInt16 gets a _Solidity int16 from the result at the given index
func (ContractFunctionResult) GetInt160 ¶
func (result ContractFunctionResult) GetInt160(index uint64) []byte
GetInt160 gets a _Solidity int160 from the result at the given index
func (ContractFunctionResult) GetInt168 ¶
func (result ContractFunctionResult) GetInt168(index uint64) []byte
GetInt168 gets a _Solidity int168 from the result at the given index
func (ContractFunctionResult) GetInt176 ¶
func (result ContractFunctionResult) GetInt176(index uint64) []byte
GetInt176 gets a _Solidity int176 from the result at the given index
func (ContractFunctionResult) GetInt184 ¶
func (result ContractFunctionResult) GetInt184(index uint64) []byte
GetInt184 gets a _Solidity int184 from the result at the given index
func (ContractFunctionResult) GetInt192 ¶
func (result ContractFunctionResult) GetInt192(index uint64) []byte
GetInt192 gets a _Solidity int192 from the result at the given index
func (ContractFunctionResult) GetInt200 ¶
func (result ContractFunctionResult) GetInt200(index uint64) []byte
GetInt200 gets a _Solidity int200 from the result at the given index
func (ContractFunctionResult) GetInt208 ¶
func (result ContractFunctionResult) GetInt208(index uint64) []byte
GetInt208 gets a _Solidity int208 from the result at the given index
func (ContractFunctionResult) GetInt216 ¶
func (result ContractFunctionResult) GetInt216(index uint64) []byte
GetInt216 gets a _Solidity int216 from the result at the given index
func (ContractFunctionResult) GetInt224 ¶
func (result ContractFunctionResult) GetInt224(index uint64) []byte
GetInt224 gets a _Solidity int224 from the result at the given index
func (ContractFunctionResult) GetInt232 ¶
func (result ContractFunctionResult) GetInt232(index uint64) []byte
GetInt232 gets a _Solidity int232 from the result at the given index
func (ContractFunctionResult) GetInt24 ¶
func (result ContractFunctionResult) GetInt24(index uint64) int32
GetInt24 gets a _Solidity int24 from the result at the given index
func (ContractFunctionResult) GetInt240 ¶
func (result ContractFunctionResult) GetInt240(index uint64) []byte
GetInt240 gets a _Solidity int240 from the result at the given index
func (ContractFunctionResult) GetInt248 ¶
func (result ContractFunctionResult) GetInt248(index uint64) []byte
GetInt248 gets a _Solidity int248 from the result at the given index
func (ContractFunctionResult) GetInt256 ¶
func (result ContractFunctionResult) GetInt256(index uint64) []byte
GetInt256 gets a _Solidity int256 from the result at the given index
func (ContractFunctionResult) GetInt32 ¶
func (result ContractFunctionResult) GetInt32(index uint64) int32
GetInt32 gets a _Solidity int32 from the result at the given index
func (ContractFunctionResult) GetInt40 ¶
func (result ContractFunctionResult) GetInt40(index uint64) int64
GetInt40 gets a _Solidity int40 from the result at the given index
func (ContractFunctionResult) GetInt48 ¶
func (result ContractFunctionResult) GetInt48(index uint64) int64
GetInt48 gets a _Solidity int48 from the result at the given index
func (ContractFunctionResult) GetInt56 ¶
func (result ContractFunctionResult) GetInt56(index uint64) int64
GetInt56 gets a _Solidity int56 from the result at the given index
func (ContractFunctionResult) GetInt64 ¶
func (result ContractFunctionResult) GetInt64(index uint64) int64
GetInt64 gets a _Solidity int64 from the result at the given index
func (ContractFunctionResult) GetInt72 ¶
func (result ContractFunctionResult) GetInt72(index uint64) []byte
GetInt72 gets a _Solidity int72 from the result at the given index
func (ContractFunctionResult) GetInt8 ¶
func (result ContractFunctionResult) GetInt8(index uint64) int8
GetInt8 gets a _Solidity int8 from the result at the given index
func (ContractFunctionResult) GetInt80 ¶
func (result ContractFunctionResult) GetInt80(index uint64) []byte
GetInt80 gets a _Solidity int80 from the result at the given index
func (ContractFunctionResult) GetInt88 ¶
func (result ContractFunctionResult) GetInt88(index uint64) []byte
GetInt88 gets a _Solidity int88 from the result at the given index
func (ContractFunctionResult) GetInt96 ¶
func (result ContractFunctionResult) GetInt96(index uint64) []byte
GetInt96 gets a _Solidity int96 from the result at the given index
func (ContractFunctionResult) GetResult ¶
func (result ContractFunctionResult) GetResult(types string) (interface{}, error)
GetResult parses the result of a contract call based on the given types string and returns the result as an interface. The "types" string should specify the Ethereum Solidity type of the contract call output. This includes types like "uint256", "address", "bool", "string", "string[]", etc. The type provided must match the actual type of the data returned by the contract call, otherwise the function will fail to unpack and return an error. The method returns the parsed result encapsulated in an interface{}, allowing flexibility to handle various types of contract call results. For correct usage, the caller should perform a type assertion on the returned interface{} to convert it into the appropriate go type.
func (ContractFunctionResult) GetString ¶
func (result ContractFunctionResult) GetString(index uint64) string
GetString gets a string from the result at the given index
func (ContractFunctionResult) GetUint104 ¶
func (result ContractFunctionResult) GetUint104(index uint64) []byte
GetUint104 gets a _Solidity uint104 from the result at the given index
func (ContractFunctionResult) GetUint112 ¶
func (result ContractFunctionResult) GetUint112(index uint64) []byte
GetUint112 gets a _Solidity uint112 from the result at the given index
func (ContractFunctionResult) GetUint120 ¶
func (result ContractFunctionResult) GetUint120(index uint64) []byte
GetUint120 gets a _Solidity uint120 from the result at the given index
func (ContractFunctionResult) GetUint128 ¶
func (result ContractFunctionResult) GetUint128(index uint64) []byte
GetUint128 gets a _Solidity uint128 from the result at the given index
func (ContractFunctionResult) GetUint136 ¶
func (result ContractFunctionResult) GetUint136(index uint64) []byte
GetUint136 gets a _Solidity uint136 from the result at the given index
func (ContractFunctionResult) GetUint144 ¶
func (result ContractFunctionResult) GetUint144(index uint64) []byte
GetUint144 gets a _Solidity uint144 from the result at the given index
func (ContractFunctionResult) GetUint152 ¶
func (result ContractFunctionResult) GetUint152(index uint64) []byte
GetUint152 gets a _Solidity uint152 from the result at the given index
func (ContractFunctionResult) GetUint16 ¶
func (result ContractFunctionResult) GetUint16(index uint64) uint16
GetUint16 gets a _Solidity uint16 from the result at the given index
func (ContractFunctionResult) GetUint160 ¶
func (result ContractFunctionResult) GetUint160(index uint64) []byte
GetUint160 gets a _Solidity uint160 from the result at the given index
func (ContractFunctionResult) GetUint168 ¶
func (result ContractFunctionResult) GetUint168(index uint64) []byte
GetUint168 gets a _Solidity uint168 from the result at the given index
func (ContractFunctionResult) GetUint176 ¶
func (result ContractFunctionResult) GetUint176(index uint64) []byte
GetUint176 gets a _Solidity uint176 from the result at the given index
func (ContractFunctionResult) GetUint184 ¶
func (result ContractFunctionResult) GetUint184(index uint64) []byte
GetUint184 gets a _Solidity uint184 from the result at the given index
func (ContractFunctionResult) GetUint192 ¶
func (result ContractFunctionResult) GetUint192(index uint64) []byte
GetUint192 gets a _Solidity uint192 from the result at the given index
func (ContractFunctionResult) GetUint200 ¶
func (result ContractFunctionResult) GetUint200(index uint64) []byte
GetUint200 gets a _Solidity uint200 from the result at the given index
func (ContractFunctionResult) GetUint208 ¶
func (result ContractFunctionResult) GetUint208(index uint64) []byte
GetUint208 gets a _Solidity uint208 from the result at the given index
func (ContractFunctionResult) GetUint216 ¶
func (result ContractFunctionResult) GetUint216(index uint64) []byte
GetUint216 gets a _Solidity uint216 from the result at the given index
func (ContractFunctionResult) GetUint224 ¶
func (result ContractFunctionResult) GetUint224(index uint64) []byte
GetUint224 gets a _Solidity uint224 from the result at the given index
func (ContractFunctionResult) GetUint232 ¶
func (result ContractFunctionResult) GetUint232(index uint64) []byte
GetUint232 gets a _Solidity uint232 from the result at the given index
func (ContractFunctionResult) GetUint24 ¶
func (result ContractFunctionResult) GetUint24(index uint64) uint32
GetUint24 gets a _Solidity uint24 from the result at the given index
func (ContractFunctionResult) GetUint240 ¶
func (result ContractFunctionResult) GetUint240(index uint64) []byte
GetUint240 gets a _Solidity uint240 from the result at the given index
func (ContractFunctionResult) GetUint248 ¶
func (result ContractFunctionResult) GetUint248(index uint64) []byte
GetUint248 gets a _Solidity uint248 from the result at the given index
func (ContractFunctionResult) GetUint256 ¶
func (result ContractFunctionResult) GetUint256(index uint64) []byte
GetUint256 gets a _Solidity uint256 from the result at the given index
func (ContractFunctionResult) GetUint32 ¶
func (result ContractFunctionResult) GetUint32(index uint64) uint32
GetUint32 gets a _Solidity uint32 from the result at the given index
func (ContractFunctionResult) GetUint40 ¶
func (result ContractFunctionResult) GetUint40(index uint64) uint64
GetUint40 gets a _Solidity uint40 from the result at the given index
func (ContractFunctionResult) GetUint48 ¶
func (result ContractFunctionResult) GetUint48(index uint64) uint64
GetUint48 gets a _Solidity uint48 from the result at the given index
func (ContractFunctionResult) GetUint56 ¶
func (result ContractFunctionResult) GetUint56(index uint64) uint64
GetUint56 gets a _Solidity uint56 from the result at the given index
func (ContractFunctionResult) GetUint64 ¶
func (result ContractFunctionResult) GetUint64(index uint64) uint64
GetUint64 gets a _Solidity uint64 from the result at the given index
func (ContractFunctionResult) GetUint72 ¶
func (result ContractFunctionResult) GetUint72(index uint64) []byte
GetUint72 gets a _Solidity uint72 from the result at the given index
func (ContractFunctionResult) GetUint8 ¶
func (result ContractFunctionResult) GetUint8(index uint64) uint8
GetUint8 gets a _Solidity uint8 from the result at the given index
func (ContractFunctionResult) GetUint80 ¶
func (result ContractFunctionResult) GetUint80(index uint64) []byte
GetUint80 gets a _Solidity uint80 from the result at the given index
func (ContractFunctionResult) GetUint88 ¶
func (result ContractFunctionResult) GetUint88(index uint64) []byte
GetUint88 gets a _Solidity uint88 from the result at the given index
func (ContractFunctionResult) GetUint96 ¶
func (result ContractFunctionResult) GetUint96(index uint64) []byte
GetUint96 gets a _Solidity uint96 from the result at the given index
func (*ContractFunctionResult) ToBytes ¶
func (result *ContractFunctionResult) ToBytes() []byte
ToBytes returns the protobuf encoded bytes of the ContractFunctionResult
type ContractFunctionSelector ¶
type ContractFunctionSelector struct {
// contains filtered or unexported fields
}
A selector for a function with a given name.
func NewContractFunctionSelector ¶
func NewContractFunctionSelector(name string) ContractFunctionSelector
NewContractFunctionSelector starts building a selector for a function with a given name.
func (*ContractFunctionSelector) AddAddress ¶
func (selector *ContractFunctionSelector) AddAddress() *ContractFunctionSelector
AddAddress adds an address parameter to the selector.
func (*ContractFunctionSelector) AddAddressArray ¶
func (selector *ContractFunctionSelector) AddAddressArray() *ContractFunctionSelector
AddAddressArray adds an address[] parameter to the selector.
func (*ContractFunctionSelector) AddBool ¶
func (selector *ContractFunctionSelector) AddBool() *ContractFunctionSelector
AddBool adds a bool parameter to the selector.
func (*ContractFunctionSelector) AddBoolArray ¶
func (selector *ContractFunctionSelector) AddBoolArray() *ContractFunctionSelector
AddBoolArray adds a bool[] parameter to the selector.
func (*ContractFunctionSelector) AddBytes ¶
func (selector *ContractFunctionSelector) AddBytes() *ContractFunctionSelector
AddBytes adds a bytes parameter to the selector.
func (*ContractFunctionSelector) AddBytes32 ¶
func (selector *ContractFunctionSelector) AddBytes32() *ContractFunctionSelector
AddBytes32 adds a bytes32 parameter to the selector.
func (*ContractFunctionSelector) AddBytes32Array ¶
func (selector *ContractFunctionSelector) AddBytes32Array() *ContractFunctionSelector
AddBytes32Array adds a bytes32[] parameter to the selector.
func (*ContractFunctionSelector) AddBytesArray ¶
func (selector *ContractFunctionSelector) AddBytesArray() *ContractFunctionSelector
AddBytesArray adds a bytes[] parameter to the selector.
func (*ContractFunctionSelector) AddFunction ¶
func (selector *ContractFunctionSelector) AddFunction() *ContractFunctionSelector
AddFunction adds a function parameter to the selector.
func (*ContractFunctionSelector) AddInt104 ¶
func (selector *ContractFunctionSelector) AddInt104() *ContractFunctionSelector
AddInt104 adds an int104 parameter to the selector.
func (*ContractFunctionSelector) AddInt112 ¶
func (selector *ContractFunctionSelector) AddInt112() *ContractFunctionSelector
AddInt112 adds an int112 parameter to the selector.
func (*ContractFunctionSelector) AddInt120 ¶
func (selector *ContractFunctionSelector) AddInt120() *ContractFunctionSelector
AddInt120 adds an int120 parameter to the selector.
func (*ContractFunctionSelector) AddInt128 ¶
func (selector *ContractFunctionSelector) AddInt128() *ContractFunctionSelector
AddInt128 adds an int128 parameter to the selector.
func (*ContractFunctionSelector) AddInt136 ¶
func (selector *ContractFunctionSelector) AddInt136() *ContractFunctionSelector
AddInt136 adds an int136 parameter to the selector.
func (*ContractFunctionSelector) AddInt144 ¶
func (selector *ContractFunctionSelector) AddInt144() *ContractFunctionSelector
AddInt144 adds an int144 parameter to the selector.
func (*ContractFunctionSelector) AddInt152 ¶
func (selector *ContractFunctionSelector) AddInt152() *ContractFunctionSelector
AddInt152 adds an int152 parameter to the selector.
func (*ContractFunctionSelector) AddInt16 ¶
func (selector *ContractFunctionSelector) AddInt16() *ContractFunctionSelector
AddInt16 adds an int16 parameter to the selector.
func (*ContractFunctionSelector) AddInt160 ¶
func (selector *ContractFunctionSelector) AddInt160() *ContractFunctionSelector
AddInt160 adds an int160 parameter to the selector.
func (*ContractFunctionSelector) AddInt168 ¶
func (selector *ContractFunctionSelector) AddInt168() *ContractFunctionSelector
AddInt168 adds an int168 parameter to the selector.
func (*ContractFunctionSelector) AddInt176 ¶
func (selector *ContractFunctionSelector) AddInt176() *ContractFunctionSelector
AddInt176 adds an int176 parameter to the selector.
func (*ContractFunctionSelector) AddInt184 ¶
func (selector *ContractFunctionSelector) AddInt184() *ContractFunctionSelector
AddInt184 adds an int184 parameter to the selector.
func (*ContractFunctionSelector) AddInt192 ¶
func (selector *ContractFunctionSelector) AddInt192() *ContractFunctionSelector
AddInt192 adds an int192 parameter to the selector.
func (*ContractFunctionSelector) AddInt200 ¶
func (selector *ContractFunctionSelector) AddInt200() *ContractFunctionSelector
AddInt200 adds an int200 parameter to the selector.
func (*ContractFunctionSelector) AddInt208 ¶
func (selector *ContractFunctionSelector) AddInt208() *ContractFunctionSelector
AddInt208 adds an int208 parameter to the selector.
func (*ContractFunctionSelector) AddInt216 ¶
func (selector *ContractFunctionSelector) AddInt216() *ContractFunctionSelector
AddInt216 adds an int216 parameter to the selector.
func (*ContractFunctionSelector) AddInt224 ¶
func (selector *ContractFunctionSelector) AddInt224() *ContractFunctionSelector
AddInt224 adds an int224 parameter to the selector.
func (*ContractFunctionSelector) AddInt232 ¶
func (selector *ContractFunctionSelector) AddInt232() *ContractFunctionSelector
AddInt232 adds an int232 parameter to the selector.
func (*ContractFunctionSelector) AddInt24 ¶
func (selector *ContractFunctionSelector) AddInt24() *ContractFunctionSelector
AddInt24 adds an int24 parameter to the selector.
func (*ContractFunctionSelector) AddInt240 ¶
func (selector *ContractFunctionSelector) AddInt240() *ContractFunctionSelector
AddInt240 adds an int240 parameter to the selector.
func (*ContractFunctionSelector) AddInt248 ¶
func (selector *ContractFunctionSelector) AddInt248() *ContractFunctionSelector
AddInt248 adds an int248 parameter to the selector.
func (*ContractFunctionSelector) AddInt256 ¶
func (selector *ContractFunctionSelector) AddInt256() *ContractFunctionSelector
AddInt256 adds an int256 parameter to the selector.
func (*ContractFunctionSelector) AddInt256Array ¶
func (selector *ContractFunctionSelector) AddInt256Array() *ContractFunctionSelector
AddInt256Array adds an int256[] parameter to the selector.
func (*ContractFunctionSelector) AddInt32 ¶
func (selector *ContractFunctionSelector) AddInt32() *ContractFunctionSelector
AddInt32 adds an int32 parameter to the selector.
func (*ContractFunctionSelector) AddInt32Array ¶
func (selector *ContractFunctionSelector) AddInt32Array() *ContractFunctionSelector
AddInt32Array adds an int32[] parameter to the selector.
func (*ContractFunctionSelector) AddInt40 ¶
func (selector *ContractFunctionSelector) AddInt40() *ContractFunctionSelector
AddInt40 adds an int40 parameter to the selector.
func (*ContractFunctionSelector) AddInt48 ¶
func (selector *ContractFunctionSelector) AddInt48() *ContractFunctionSelector
AddInt48 adds an int48 parameter to the selector.
func (*ContractFunctionSelector) AddInt56 ¶
func (selector *ContractFunctionSelector) AddInt56() *ContractFunctionSelector
AddInt56 adds an int56 parameter to the selector.
func (*ContractFunctionSelector) AddInt64 ¶
func (selector *ContractFunctionSelector) AddInt64() *ContractFunctionSelector
AddInt64 adds an int64 parameter to the selector.
func (*ContractFunctionSelector) AddInt64Array ¶
func (selector *ContractFunctionSelector) AddInt64Array() *ContractFunctionSelector
AddInt64Array adds an int64[] parameter to the selector.
func (*ContractFunctionSelector) AddInt72 ¶
func (selector *ContractFunctionSelector) AddInt72() *ContractFunctionSelector
AddInt72 adds an int72 parameter to the selector.
func (*ContractFunctionSelector) AddInt8 ¶
func (selector *ContractFunctionSelector) AddInt8() *ContractFunctionSelector
AddInt8 adds an int8 parameter to the selector.
func (*ContractFunctionSelector) AddInt80 ¶
func (selector *ContractFunctionSelector) AddInt80() *ContractFunctionSelector
AddInt80 adds an int80 parameter to the selector.
func (*ContractFunctionSelector) AddInt88 ¶
func (selector *ContractFunctionSelector) AddInt88() *ContractFunctionSelector
AddInt88 adds an int88 parameter to the selector.
func (*ContractFunctionSelector) AddInt8Array ¶
func (selector *ContractFunctionSelector) AddInt8Array() *ContractFunctionSelector
AddInt8Array adds an int8[] parameter to the selector.
func (*ContractFunctionSelector) AddInt96 ¶
func (selector *ContractFunctionSelector) AddInt96() *ContractFunctionSelector
AddInt96 adds an int96 parameter to the selector.
func (*ContractFunctionSelector) AddString ¶
func (selector *ContractFunctionSelector) AddString() *ContractFunctionSelector
AddString adds a string parameter to the selector.
func (*ContractFunctionSelector) AddStringArray ¶
func (selector *ContractFunctionSelector) AddStringArray() *ContractFunctionSelector
AddStringArray adds a string[] parameter to the selector.
func (*ContractFunctionSelector) AddUint104 ¶
func (selector *ContractFunctionSelector) AddUint104() *ContractFunctionSelector
AddUint104 adds a uint104 parameter to the selector.
func (*ContractFunctionSelector) AddUint112 ¶
func (selector *ContractFunctionSelector) AddUint112() *ContractFunctionSelector
AddUint112 adds a uint112 parameter to the selector.
func (*ContractFunctionSelector) AddUint120 ¶
func (selector *ContractFunctionSelector) AddUint120() *ContractFunctionSelector
AddUint120 adds a uint120 parameter to the selector.
func (*ContractFunctionSelector) AddUint128 ¶
func (selector *ContractFunctionSelector) AddUint128() *ContractFunctionSelector
AddUint128 adds a uint128 parameter to the selector.
func (*ContractFunctionSelector) AddUint136 ¶
func (selector *ContractFunctionSelector) AddUint136() *ContractFunctionSelector
AddUint136 adds a uint136 parameter to the selector.
func (*ContractFunctionSelector) AddUint144 ¶
func (selector *ContractFunctionSelector) AddUint144() *ContractFunctionSelector
AddUint144 adds a uint144 parameter to the selector.
func (*ContractFunctionSelector) AddUint152 ¶
func (selector *ContractFunctionSelector) AddUint152() *ContractFunctionSelector
AddUint152 adds a uint152 parameter to the selector.
func (*ContractFunctionSelector) AddUint16 ¶
func (selector *ContractFunctionSelector) AddUint16() *ContractFunctionSelector
AddUint16 adds a uint16 parameter to the selector.
func (*ContractFunctionSelector) AddUint160 ¶
func (selector *ContractFunctionSelector) AddUint160() *ContractFunctionSelector
AddUint160 adds a uint160 parameter to the selector.
func (*ContractFunctionSelector) AddUint168 ¶
func (selector *ContractFunctionSelector) AddUint168() *ContractFunctionSelector
AddUint168 adds a uint168 parameter to the selector.
func (*ContractFunctionSelector) AddUint176 ¶
func (selector *ContractFunctionSelector) AddUint176() *ContractFunctionSelector
AddUint176 adds a uint176 parameter to the selector.
func (*ContractFunctionSelector) AddUint184 ¶
func (selector *ContractFunctionSelector) AddUint184() *ContractFunctionSelector
AddUint184 adds a uint184 parameter to the selector.
func (*ContractFunctionSelector) AddUint192 ¶
func (selector *ContractFunctionSelector) AddUint192() *ContractFunctionSelector
AddUint192 adds a uint192 parameter to the selector.
func (*ContractFunctionSelector) AddUint200 ¶
func (selector *ContractFunctionSelector) AddUint200() *ContractFunctionSelector
AddUint200 adds a uint200 parameter to the selector.
func (*ContractFunctionSelector) AddUint208 ¶
func (selector *ContractFunctionSelector) AddUint208() *ContractFunctionSelector
AddUint208 adds a uint208 parameter to the selector.
func (*ContractFunctionSelector) AddUint216 ¶
func (selector *ContractFunctionSelector) AddUint216() *ContractFunctionSelector
AddUint216 adds a uint216 parameter to the selector.
func (*ContractFunctionSelector) AddUint224 ¶
func (selector *ContractFunctionSelector) AddUint224() *ContractFunctionSelector
AddUint224 adds a uint224 parameter to the selector.
func (*ContractFunctionSelector) AddUint232 ¶
func (selector *ContractFunctionSelector) AddUint232() *ContractFunctionSelector
AddUint232 adds a uint232 parameter to the selector.
func (*ContractFunctionSelector) AddUint24 ¶
func (selector *ContractFunctionSelector) AddUint24() *ContractFunctionSelector
AddUint24 adds a uint24 parameter to the selector.
func (*ContractFunctionSelector) AddUint240 ¶
func (selector *ContractFunctionSelector) AddUint240() *ContractFunctionSelector
AddUint240 adds a uint240 parameter to the selector.
func (*ContractFunctionSelector) AddUint248 ¶
func (selector *ContractFunctionSelector) AddUint248() *ContractFunctionSelector
AddUint248 adds a uint248 parameter to the selector.
func (*ContractFunctionSelector) AddUint256 ¶
func (selector *ContractFunctionSelector) AddUint256() *ContractFunctionSelector
AddUint256 adds a uint256 parameter to the selector.
func (*ContractFunctionSelector) AddUint256Array ¶
func (selector *ContractFunctionSelector) AddUint256Array() *ContractFunctionSelector
AddUint256Array adds a uint256[] parameter to the selector.
func (*ContractFunctionSelector) AddUint32 ¶
func (selector *ContractFunctionSelector) AddUint32() *ContractFunctionSelector
AddUint32 adds a uint32 parameter to the selector.
func (*ContractFunctionSelector) AddUint32Array ¶
func (selector *ContractFunctionSelector) AddUint32Array() *ContractFunctionSelector
AddUint32Array adds a uint32[] parameter to the selector.
func (*ContractFunctionSelector) AddUint40 ¶
func (selector *ContractFunctionSelector) AddUint40() *ContractFunctionSelector
AddUint40 adds a uint40 parameter to the selector.
func (*ContractFunctionSelector) AddUint48 ¶
func (selector *ContractFunctionSelector) AddUint48() *ContractFunctionSelector
AddUint48 adds a uint48 parameter to the selector.
func (*ContractFunctionSelector) AddUint56 ¶
func (selector *ContractFunctionSelector) AddUint56() *ContractFunctionSelector
AddUint56 adds a uint56 parameter to the selector.
func (*ContractFunctionSelector) AddUint64 ¶
func (selector *ContractFunctionSelector) AddUint64() *ContractFunctionSelector
AddUint64 adds a uint64 parameter to the selector.
func (*ContractFunctionSelector) AddUint64Array ¶
func (selector *ContractFunctionSelector) AddUint64Array() *ContractFunctionSelector
AddUint64Array adds a uint64[] parameter to the selector.
func (*ContractFunctionSelector) AddUint72 ¶
func (selector *ContractFunctionSelector) AddUint72() *ContractFunctionSelector
AddUint72 adds a uint72 parameter to the selector.
func (*ContractFunctionSelector) AddUint8 ¶
func (selector *ContractFunctionSelector) AddUint8() *ContractFunctionSelector
AddUint8 adds a uint8 parameter to the selector.
func (*ContractFunctionSelector) AddUint80 ¶
func (selector *ContractFunctionSelector) AddUint80() *ContractFunctionSelector
AddUint80 adds a uint80 parameter to the selector.
func (*ContractFunctionSelector) AddUint88 ¶
func (selector *ContractFunctionSelector) AddUint88() *ContractFunctionSelector
AddUint88 adds a uint88 parameter to the selector.
func (*ContractFunctionSelector) AddUint8Array ¶
func (selector *ContractFunctionSelector) AddUint8Array() *ContractFunctionSelector
AddUint8Array adds a uint8[] parameter to the selector.
func (*ContractFunctionSelector) AddUint96 ¶
func (selector *ContractFunctionSelector) AddUint96() *ContractFunctionSelector
AddUint96 adds a uint96 parameter to the selector.
func (*ContractFunctionSelector) String ¶
func (selector *ContractFunctionSelector) String() string
String returns the string representation of the selector.
type ContractID ¶
type ContractID struct { Shard uint64 Realm uint64 Contract uint64 EvmAddress []byte // contains filtered or unexported fields }
ContractID is the ID for a Hiero smart contract
func ContractIDFromBytes ¶
func ContractIDFromBytes(data []byte) (ContractID, error)
ContractIDFromBytes returns a ContractID generated from a byte array
func ContractIDFromEvmAddress ¶
func ContractIDFromEvmAddress(shard uint64, realm uint64, aliasEvmAddress string) (ContractID, error)
ContractIDFromEvmAddress constructs an ContractID from a string formatted as shard.realm.<evm address>
func ContractIDFromSolidityAddress ¶
func ContractIDFromSolidityAddress(s string) (ContractID, error)
ContractIDFromSolidityAddress constructs a ContractID from a string representation of a _Solidity address Does not populate ContractID.EvmAddress Deprecated
func ContractIDFromString ¶
func ContractIDFromString(data string) (ContractID, error)
ContractIDFromString constructs a ContractID from a string formatted as `Shard.Realm.Contract` (for example "0.0.3")
func (*ContractID) PopulateContract ¶
func (id *ContractID) PopulateContract(client *Client) error
PopulateContract gets the actual `Contract` field of the `ContractId` from the Mirror Node. Should be used after generating `ContractId.FromEvmAddress()` because it sets the `Contract` field to `0` automatically since there is no connection between the `Contract` and the `evmAddress`
func (ContractID) String ¶
func (id ContractID) String() string
String returns the string representation of a ContractID formatted as `Shard.Realm.Contract` (for example "0.0.3")
func (ContractID) ToBytes ¶
func (id ContractID) ToBytes() []byte
ToBytes returns a byte array representation of the ContractID
func (ContractID) ToEvmAddress ¶ added in v2.66.0
func (id ContractID) ToEvmAddress() string
ToEvmAddress returns EVM-compatible address representation of the entity
func (ContractID) ToSolidityAddress ¶
func (id ContractID) ToSolidityAddress() string
ToSolidityAddress returns the string representation of the ContractID as a _Solidity address. Deprecated: Use ToEvmAddress instead
func (ContractID) ToStringWithChecksum ¶
func (id ContractID) ToStringWithChecksum(client Client) (string, error)
ToStringWithChecksum returns the string representation of a ContractID formatted as `Shard.Realm.Contract-Checksum`
func (*ContractID) Validate ¶
func (id *ContractID) Validate(client *Client) error
Deprecated - use ValidateChecksum instead
func (*ContractID) ValidateChecksum ¶
func (id *ContractID) ValidateChecksum(client *Client) error
Verify that the client has a valid checksum.
type ContractInfo ¶
type ContractInfo struct { AccountID AccountID ContractID ContractID ContractAccountID string AdminKey Key ExpirationTime time.Time AutoRenewPeriod time.Duration Storage uint64 ContractMemo string Balance uint64 TokenRelationships []*TokenRelationship LedgerID LedgerID AutoRenewAccountID *AccountID MaxAutomaticTokenAssociations int32 StakingInfo *StakingInfo }
Current information on the smart contract instance, including its balance.
func ContractInfoFromBytes ¶
func ContractInfoFromBytes(data []byte) (ContractInfo, error)
ContractInfoFromBytes returns a ContractInfo object deserialized from bytes
func (ContractInfo) ToBytes ¶
func (contractInfo ContractInfo) ToBytes() []byte
ToBytes returns a serialized version of the ContractInfo object
type ContractInfoQuery ¶
type ContractInfoQuery struct { Query // contains filtered or unexported fields }
ContractInfoQuery retrieves information about a smart contract instance. This includes the account that it uses, the file containing its bytecode, and the time when it will expire.
func NewContractInfoQuery ¶
func NewContractInfoQuery() *ContractInfoQuery
NewContractInfoQuery creates a ContractInfoQuery query which can be used to construct and execute a Contract Get Info Query.
func (*ContractInfoQuery) Execute ¶
func (q *ContractInfoQuery) Execute(client *Client) (ContractInfo, error)
Execute executes the Query with the provided client
func (*ContractInfoQuery) GetContractID ¶
func (q *ContractInfoQuery) GetContractID() ContractID
func (*ContractInfoQuery) GetCost ¶
func (q *ContractInfoQuery) GetCost(client *Client) (Hbar, error)
func (*ContractInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*ContractInfoQuery) GetLogLevel ¶
func (e *ContractInfoQuery) GetLogLevel() *LogLevel
func (*ContractInfoQuery) GetMaxBackoff ¶
func (*ContractInfoQuery) GetMaxRetry ¶
func (e *ContractInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*ContractInfoQuery) GetMinBackoff ¶
func (*ContractInfoQuery) GetNodeAccountIDs ¶
func (e *ContractInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractInfoQuery) SetContractID ¶
func (q *ContractInfoQuery) SetContractID(contractID ContractID) *ContractInfoQuery
SetContractID sets the contract for which information is requested
func (*ContractInfoQuery) SetGrpcDeadline ¶
func (q *ContractInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ContractInfoQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractInfoQuery) SetLogLevel ¶
func (q *ContractInfoQuery) SetLogLevel(level LogLevel) *ContractInfoQuery
func (*ContractInfoQuery) SetMaxBackoff ¶
func (q *ContractInfoQuery) SetMaxBackoff(max time.Duration) *ContractInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*ContractInfoQuery) SetMaxQueryPayment ¶
func (q *ContractInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ContractInfoQuery) SetMaxRetry ¶
func (q *ContractInfoQuery) SetMaxRetry(count int) *ContractInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractInfoQuery) SetMinBackoff ¶
func (q *ContractInfoQuery) SetMinBackoff(min time.Duration) *ContractInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractInfoQuery) SetNodeAccountIDs ¶
func (q *ContractInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ContractInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this ContractInfoQuery.
func (*ContractInfoQuery) SetPaymentTransactionID ¶
func (q *ContractInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractInfoQuery
func (*ContractInfoQuery) SetQueryPayment ¶
func (q *ContractInfoQuery) SetQueryPayment(paymentAmount Hbar) *ContractInfoQuery
SetQueryPayment sets the payment amount for this Query.
type ContractLogInfo ¶
type ContractLogInfo struct { ContractID ContractID Bloom []byte Topics [][]byte Data []byte }
ContractLogInfo is the log info for events returned by a function
type ContractNonceInfo ¶
type ContractNonceInfo struct { ContractID *ContractID Nonce int64 }
ContractID is the ID for a Hiero smart contract
type ContractStateChange ¶
type ContractStateChange struct { ContractID *ContractID StorageChanges []*StorageChange }
type ContractUpdateTransaction ¶
type ContractUpdateTransaction struct { *Transaction[*ContractUpdateTransaction] // contains filtered or unexported fields }
ContractUpdateTransaction is used to modify a smart contract instance to have the given parameter values. Any nil field is ignored (left unchanged). If only the contractInstanceExpirationTime is being modified, then no signature is needed on this transaction other than for the account paying for the transaction itself. But if any of the other fields are being modified, then it must be signed by the adminKey. The use of adminKey is not currently supported in this API, but in the future will be implemented to allow these fields to be modified, and also to make modifications to the state of the instance. If the contract is created with no admin key, then none of the fields can be changed that need an admin signature, and therefore no admin key can ever be added. So if there is no admin key, then things like the bytecode are immutable. But if there is an admin key, then they can be changed.
For example, the admin key might be a threshold key, which requires 3 of 5 binding arbitration judges to agree before the bytecode can be changed. This can be used to add flexibility to the management of smart contract behavior. But this is optional. If the smart contract is created without an admin key, then such a key can never be added, and its bytecode will be immutable.
func NewContractUpdateTransaction ¶
func NewContractUpdateTransaction() *ContractUpdateTransaction
NewContractUpdateTransaction creates a ContractUpdateTransaction transaction which can be used to construct and execute a Contract Update Transaction. ContractUpdateTransaction is used to modify a smart contract instance to have the given parameter values. Any nil field is ignored (left unchanged). If only the contractInstanceExpirationTime is being modified, then no signature is needed on this transaction other than for the account paying for the transaction itself. But if any of the other fields are being modified, then it must be signed by the adminKey. The use of adminKey is not currently supported in this API, but in the future will be implemented to allow these fields to be modified, and also to make modifications to the state of the instance. If the contract is created with no admin key, then none of the fields can be changed that need an admin signature, and therefore no admin key can ever be added. So if there is no admin key, then things like the bytecode are immutable. But if there is an admin key, then they can be changed.
For example, the admin key might be a threshold key, which requires 3 of 5 binding arbitration judges to agree before the bytecode can be changed. This can be used to add flexibility to the management of smart contract behavior. But this is optional. If the smart contract is created without an admin key, then such a key can never be added, and its bytecode will be immutable.
func (*ContractUpdateTransaction) ClearStakedAccountID ¶
func (tx *ContractUpdateTransaction) ClearStakedAccountID() *ContractUpdateTransaction
func (*ContractUpdateTransaction) ClearStakedNodeID ¶
func (tx *ContractUpdateTransaction) ClearStakedNodeID() *ContractUpdateTransaction
func (*ContractUpdateTransaction) GetAdminKey ¶
func (tx *ContractUpdateTransaction) GetAdminKey() (Key, error)
func (*ContractUpdateTransaction) GetAutoRenewAccountID ¶
func (tx *ContractUpdateTransaction) GetAutoRenewAccountID() AccountID
func (*ContractUpdateTransaction) GetAutoRenewPeriod ¶
func (tx *ContractUpdateTransaction) GetAutoRenewPeriod() time.Duration
func (*ContractUpdateTransaction) GetBytecodeFileID ¶
func (tx *ContractUpdateTransaction) GetBytecodeFileID() FileID
Deprecated
func (*ContractUpdateTransaction) GetContractID ¶
func (tx *ContractUpdateTransaction) GetContractID() ContractID
func (*ContractUpdateTransaction) GetContractMemo ¶
func (tx *ContractUpdateTransaction) GetContractMemo() string
func (*ContractUpdateTransaction) GetDeclineStakingReward ¶
func (tx *ContractUpdateTransaction) GetDeclineStakingReward() bool
func (*ContractUpdateTransaction) GetExpirationTime ¶
func (tx *ContractUpdateTransaction) GetExpirationTime() time.Time
func (*ContractUpdateTransaction) GetMaxAutomaticTokenAssociations ¶
func (tx *ContractUpdateTransaction) GetMaxAutomaticTokenAssociations() int32
func (ContractUpdateTransaction) GetNodeAccountIDs ¶
func (e ContractUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ContractUpdateTransaction) GetProxyAccountID ¶
func (tx *ContractUpdateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*ContractUpdateTransaction) GetStakedAccountID ¶
func (tx *ContractUpdateTransaction) GetStakedAccountID() AccountID
func (*ContractUpdateTransaction) GetStakedNodeID ¶
func (tx *ContractUpdateTransaction) GetStakedNodeID() int64
func (*ContractUpdateTransaction) SetAdminKey ¶
func (tx *ContractUpdateTransaction) SetAdminKey(publicKey Key) *ContractUpdateTransaction
SetAdminKey sets the key which can be used to arbitrarily modify the state of the instance by signing a ContractUpdateTransaction to modify it. If the admin key was never set then such modifications are not possible, and there is no administrator that can overrIDe the normal operation of the smart contract instance.
func (*ContractUpdateTransaction) SetAutoRenewAccountID ¶
func (tx *ContractUpdateTransaction) SetAutoRenewAccountID(id AccountID) *ContractUpdateTransaction
SetAutoRenewAccountID An account to charge for auto-renewal of this contract. If not set, or set to an account with zero hbar balance, the contract's own hbar balance will be used to cover auto-renewal fees.
func (*ContractUpdateTransaction) SetAutoRenewPeriod ¶
func (tx *ContractUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractUpdateTransaction
SetAutoRenewPeriod sets the duration for which the contract instance will automatically charge its account to renew for.
func (*ContractUpdateTransaction) SetAutoRenewPeriodSeconds ¶ added in v2.69.0
func (tx *ContractUpdateTransaction) SetAutoRenewPeriodSeconds(autoRenewPeriod int64) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetBytecodeFileID ¶
func (tx *ContractUpdateTransaction) SetBytecodeFileID(bytecodeFileID FileID) *ContractUpdateTransaction
Deprecated
func (*ContractUpdateTransaction) SetContractID ¶
func (tx *ContractUpdateTransaction) SetContractID(contractID ContractID) *ContractUpdateTransaction
SetContractID sets The Contract ID instance to update (this can't be changed on the contract)
func (*ContractUpdateTransaction) SetContractMemo ¶
func (tx *ContractUpdateTransaction) SetContractMemo(memo string) *ContractUpdateTransaction
SetContractMemo sets the memo associated with the contract (max 100 bytes)
func (*ContractUpdateTransaction) SetDeclineStakingReward ¶
func (tx *ContractUpdateTransaction) SetDeclineStakingReward(decline bool) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetExpirationTime ¶
func (tx *ContractUpdateTransaction) SetExpirationTime(expiration time.Time) *ContractUpdateTransaction
SetExpirationTime extends the expiration of the instance and its account to the provIDed time. If the time provIDed is the current or past time, then there will be no effect.
func (*ContractUpdateTransaction) SetMaxAutomaticTokenAssociations ¶
func (tx *ContractUpdateTransaction) SetMaxAutomaticTokenAssociations(max int32) *ContractUpdateTransaction
SetMaxAutomaticTokenAssociations The maximum number of tokens that this contract can be automatically associated with (i.e., receive air-drops from).
func (*ContractUpdateTransaction) SetProxyAccountID ¶
func (tx *ContractUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *ContractUpdateTransaction
Deprecated SetProxyAccountID sets the ID of the account to which this contract is proxy staked. If proxyAccountID is left unset, is an invalID account, or is an account that isn't a _Node, then this contract is automatically proxy staked to a _Node chosen by the _Network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking, or if it is not currently running a _Node, then it will behave as if proxyAccountID was never set.
func (*ContractUpdateTransaction) SetStakedAccountID ¶
func (tx *ContractUpdateTransaction) SetStakedAccountID(id AccountID) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetStakedNodeID ¶
func (tx *ContractUpdateTransaction) SetStakedNodeID(id int64) *ContractUpdateTransaction
type CustomFee ¶
Base struct for all custom fees
func (*CustomFee) GetAllCollectorsAreExempt ¶
GetAllCollectorsAreExempt returns whether or not all collectors are exempt from the custom fee
func (*CustomFee) GetFeeCollectorAccountID ¶
GetFeeCollectorAccountID returns the account ID that will receive the custom fee
func (*CustomFee) SetAllCollectorsAreExempt ¶
SetAllCollectorsAreExempt sets whether or not all collectors are exempt from the custom fee
func (*CustomFee) SetFeeCollectorAccountID ¶
SetFeeCollectorAccountID sets the account ID that will receive the custom fee
type CustomFeeLimit ¶ added in v2.56.0
type CustomFeeLimit struct { PayerId *AccountID CustomFees []*CustomFixedFee }
A maximum custom fee that the user is willing to pay. See HIP-991 for more information hips.hedera.com/hip/hip-991
func NewCustomFeeLimit ¶ added in v2.56.0
func NewCustomFeeLimit() *CustomFeeLimit
func (*CustomFeeLimit) AddCustomFee ¶ added in v2.56.0
func (feeLimit *CustomFeeLimit) AddCustomFee(customFee *CustomFixedFee) *CustomFeeLimit
AddCustomFee adds a custom fee.
func (*CustomFeeLimit) GetCustomFees ¶ added in v2.56.0
func (feeLimit *CustomFeeLimit) GetCustomFees() []*CustomFixedFee
GetCustomFees returns the custom fees.
func (*CustomFeeLimit) GetPayerId ¶ added in v2.56.0
func (feeLimit *CustomFeeLimit) GetPayerId() AccountID
GetPayerId returns the account ID of the payer.
func (*CustomFeeLimit) SetCustomFees ¶ added in v2.56.0
func (feeLimit *CustomFeeLimit) SetCustomFees(customFees []*CustomFixedFee) *CustomFeeLimit
SetCustomFees sets the custom fees.
func (*CustomFeeLimit) SetPayerId ¶ added in v2.56.0
func (feeLimit *CustomFeeLimit) SetPayerId(payerId AccountID) *CustomFeeLimit
SetPayerId sets the account ID of the payer.
func (*CustomFeeLimit) String ¶ added in v2.56.0
func (feeLimit *CustomFeeLimit) String() string
type CustomFixedFee ¶
A fixed fee transfers a specified amount of the token, to the specified collection account(s), each time a token transfer is initiated. The custom token fee does not depend on the amount of the token that is being transferred.
func NewCustomFixedFee ¶
func NewCustomFixedFee() *CustomFixedFee
A fixed fee transfers a specified amount of the token, to the specified collection account(s), each time a token transfer is initiated. The custom token fee does not depend on the amount of the token that is being transferred.
func (*CustomFixedFee) GetAmount ¶
func (fee *CustomFixedFee) GetAmount() Hbar
GetAmount returns the amount of the fixed fee
func (*CustomFixedFee) GetDenominatingTokenID ¶
func (fee *CustomFixedFee) GetDenominatingTokenID() TokenID
GetDenominatingTokenID returns the denomination token ID
func (*CustomFixedFee) GetFeeCollectorAccountID ¶
func (fee *CustomFixedFee) GetFeeCollectorAccountID() AccountID
GetFeeCollectorAccountID returns the account ID that will receive the custom fee
func (*CustomFixedFee) GetHbarAmount ¶
func (fee *CustomFixedFee) GetHbarAmount() Hbar
GetHbarAmount returns the amount of the fixed fee in hbar
func (*CustomFixedFee) SetAllCollectorsAreExempt ¶
func (fee *CustomFixedFee) SetAllCollectorsAreExempt(exempt bool) *CustomFixedFee
SetAllCollectorsAreExempt sets whether all collectors are exempt from the custom fee
func (*CustomFixedFee) SetAmount ¶
func (fee *CustomFixedFee) SetAmount(tinybar int64) *CustomFixedFee
SetAmount sets the amount of the fixed fee in tinybar
func (*CustomFixedFee) SetDenominatingTokenID ¶
func (fee *CustomFixedFee) SetDenominatingTokenID(id TokenID) *CustomFixedFee
SetDenominatingTokenID sets the denomination token ID
func (*CustomFixedFee) SetDenominatingTokenToSameToken ¶
func (fee *CustomFixedFee) SetDenominatingTokenToSameToken() *CustomFixedFee
SetDenominatingTokenToSameToken sets the denomination token ID to the same token as the fee
func (*CustomFixedFee) SetFeeCollectorAccountID ¶
func (fee *CustomFixedFee) SetFeeCollectorAccountID(id AccountID) *CustomFixedFee
SetFeeCollectorAccountID sets the account ID that will receive the custom fee
func (*CustomFixedFee) SetHbarAmount ¶
func (fee *CustomFixedFee) SetHbarAmount(hbar Hbar) *CustomFixedFee
SetHbarAmount sets the amount of the fixed fee in hbar
func (*CustomFixedFee) String ¶
func (fee *CustomFixedFee) String() string
String returns a string representation of the CustomFixedFee
func (*CustomFixedFee) ToBytes ¶
func (fee *CustomFixedFee) ToBytes() []byte
ToBytes returns the byte representation of the CustomFixedFee
type CustomFractionalFee ¶
type CustomFractionalFee struct { CustomFee Numerator int64 Denominator int64 MinimumAmount int64 MaximumAmount int64 AssessmentMethod FeeAssessmentMethod }
A fractional fee transfers the specified fraction of the total value of the tokens that are being transferred to the specified fee-collecting account. Along with setting a custom fractional fee, you can
func NewCustomFractionalFee ¶
func NewCustomFractionalFee() *CustomFractionalFee
A fractional fee transfers the specified fraction of the total value of the tokens that are being transferred to the specified fee-collecting account. Along with setting a custom fractional fee, you can
func (*CustomFractionalFee) GetAssessmentMethod ¶
func (fee *CustomFractionalFee) GetAssessmentMethod() FeeAssessmentMethod
GetAssessmentMethod returns the assessment method of the fractional fee
func (*CustomFractionalFee) GetDenominator ¶
func (fee *CustomFractionalFee) GetDenominator() int64
GetDenominator returns the denominator of the fractional fee
func (*CustomFractionalFee) GetFeeCollectorAccountID ¶
func (fee *CustomFractionalFee) GetFeeCollectorAccountID() AccountID
GetFeeCollectorAccountID returns the account ID that will receive the custom fee
func (*CustomFractionalFee) GetMax ¶
func (fee *CustomFractionalFee) GetMax() int64
GetMax returns the maximum amount of the fractional fee
func (*CustomFractionalFee) GetMin ¶
func (fee *CustomFractionalFee) GetMin() int64
GetMin returns the minimum amount of the fractional fee
func (*CustomFractionalFee) GetNumerator ¶
func (fee *CustomFractionalFee) GetNumerator() int64
GetNumerator returns the numerator of the fractional fee
func (*CustomFractionalFee) SetAllCollectorsAreExempt ¶
func (fee *CustomFractionalFee) SetAllCollectorsAreExempt(exempt bool) *CustomFractionalFee
SetAllCollectorsAreExempt sets the flag that indicates if all collectors are exempt from the custom fee
func (*CustomFractionalFee) SetAssessmentMethod ¶
func (fee *CustomFractionalFee) SetAssessmentMethod(feeAssessmentMethod FeeAssessmentMethod) *CustomFractionalFee
SetAssessmentMethod sets the assessment method of the fractional fee
func (*CustomFractionalFee) SetDenominator ¶
func (fee *CustomFractionalFee) SetDenominator(denominator int64) *CustomFractionalFee
SetDenominator sets the denominator of the fractional fee
func (*CustomFractionalFee) SetFeeCollectorAccountID ¶
func (fee *CustomFractionalFee) SetFeeCollectorAccountID(id AccountID) *CustomFractionalFee
SetFeeCollectorAccountID sets the account ID that will receive the custom fee
func (*CustomFractionalFee) SetMax ¶
func (fee *CustomFractionalFee) SetMax(max int64) *CustomFractionalFee
SetMax sets the maximum amount of the fractional fee
func (*CustomFractionalFee) SetMin ¶
func (fee *CustomFractionalFee) SetMin(min int64) *CustomFractionalFee
SetMin sets the minimum amount of the fractional fee
func (*CustomFractionalFee) SetNumerator ¶
func (fee *CustomFractionalFee) SetNumerator(numerator int64) *CustomFractionalFee
SetNumerator sets the numerator of the fractional fee
func (CustomFractionalFee) String ¶
func (fee CustomFractionalFee) String() string
String returns a string representation of the CustomFractionalFee
func (CustomFractionalFee) ToBytes ¶
func (fee CustomFractionalFee) ToBytes() []byte
ToBytes returns a byte array representation of the CustomFractionalFee
type CustomRoyaltyFee ¶
type CustomRoyaltyFee struct { CustomFee Numerator int64 Denominator int64 FallbackFee *CustomFixedFee }
A royalty fee is a fractional fee that is assessed each time the ownership of an NFT is transferred from person A to person B. The fee collector account ID defined in the royalty fee schedule will receive the royalty fee each time. The royalty fee charged is a fraction of the value exchanged for the NFT.
func NewCustomRoyaltyFee ¶
func NewCustomRoyaltyFee() *CustomRoyaltyFee
A royalty fee is a fractional fee that is assessed each time the ownership of an NFT is transferred from person A to person B. The fee collector account ID defined in the royalty fee schedule will receive the royalty fee each time. The royalty fee charged is a fraction of the value exchanged for the NFT.
func (*CustomRoyaltyFee) GetDenominator ¶
func (fee *CustomRoyaltyFee) GetDenominator() int64
GetDenominator returns the denominator of the fee
func (*CustomRoyaltyFee) GetFallbackFee ¶
func (fee *CustomRoyaltyFee) GetFallbackFee() CustomFixedFee
GetFallbackFee returns the fallback fee
func (*CustomRoyaltyFee) GetFeeCollectorAccountID ¶
func (fee *CustomRoyaltyFee) GetFeeCollectorAccountID() AccountID
GetFeeCollectorAccountID returns the account ID that will receive the custom fee
func (*CustomRoyaltyFee) GetNumerator ¶
func (fee *CustomRoyaltyFee) GetNumerator() int64
GetNumerator returns the numerator of the fee
func (*CustomRoyaltyFee) SetAllCollectorsAreExempt ¶
func (fee *CustomRoyaltyFee) SetAllCollectorsAreExempt(exempt bool) *CustomRoyaltyFee
SetAllCollectorsAreExempt sets whether all collectors are exempt from the fee
func (*CustomRoyaltyFee) SetDenominator ¶
func (fee *CustomRoyaltyFee) SetDenominator(denominator int64) *CustomRoyaltyFee
SetDenominator sets the denominator of the fractional fee
func (*CustomRoyaltyFee) SetFallbackFee ¶
func (fee *CustomRoyaltyFee) SetFallbackFee(fallbackFee *CustomFixedFee) *CustomRoyaltyFee
SetFallbackFee If present, the fixed fee to assess to the NFT receiver when no fungible value is exchanged with the sender
func (*CustomRoyaltyFee) SetFeeCollectorAccountID ¶
func (fee *CustomRoyaltyFee) SetFeeCollectorAccountID(accountID AccountID) *CustomRoyaltyFee
SetFeeCollectorAccountID sets the account ID that will receive the custom fee
func (*CustomRoyaltyFee) SetNumerator ¶
func (fee *CustomRoyaltyFee) SetNumerator(numerator int64) *CustomRoyaltyFee
SetNumerator sets the numerator of the fractional fee
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(component string, level LogLevel) *DefaultLogger
func (*DefaultLogger) Debug ¶
func (l *DefaultLogger) Debug(msg string, keysAndValues ...interface{})
func (*DefaultLogger) Error ¶
func (l *DefaultLogger) Error(msg string, keysAndValues ...interface{})
func (*DefaultLogger) Info ¶
func (l *DefaultLogger) Info(msg string, keysAndValues ...interface{})
func (*DefaultLogger) SetLevel ¶
func (l *DefaultLogger) SetLevel(level LogLevel)
func (*DefaultLogger) SetSilent ¶
func (l *DefaultLogger) SetSilent(isSilent bool)
func (*DefaultLogger) SubLoggerWithLevel ¶
func (l *DefaultLogger) SubLoggerWithLevel(level LogLevel) Logger
func (*DefaultLogger) Trace ¶
func (l *DefaultLogger) Trace(msg string, keysAndValues ...interface{})
func (*DefaultLogger) Warn ¶
func (l *DefaultLogger) Warn(msg string, keysAndValues ...interface{})
type DelegatableContractID ¶
type DelegatableContractID struct { Shard uint64 Realm uint64 Contract uint64 EvmAddress []byte // contains filtered or unexported fields }
ContractID is the ID for a Hiero smart contract
func DelegatableContractIDFromBytes ¶
func DelegatableContractIDFromBytes(data []byte) (DelegatableContractID, error)
DelegatableContractIDFromBytes returns a DelegatableContractID generated from a byte array
func DelegatableContractIDFromEvmAddress ¶
func DelegatableContractIDFromEvmAddress(shard uint64, realm uint64, aliasEvmAddress string) (DelegatableContractID, error)
DelegatableContractIDFromEvmAddress constructs an DelegatableContractID from a string formatted as shard.realm.<evm address>
func DelegatableContractIDFromSolidityAddress ¶
func DelegatableContractIDFromSolidityAddress(s string) (DelegatableContractID, error)
DelegatableContractIDFromSolidityAddress constructs a DelegatableContractID from a string representation of a _Solidity address Does not populate DelegatableContractID.EvmAddress Deprecated: use DelegatableContractIDFromEvmAddress instead
func DelegatableContractIDFromString ¶
func DelegatableContractIDFromString(data string) (DelegatableContractID, error)
DelegatableContractIDFromString constructs a DelegatableContractID from a string formatted as `Shard.Realm.Contract` (for example "0.0.3")
func (DelegatableContractID) String ¶
func (id DelegatableContractID) String() string
String returns the string representation of a DelegatableContractID formatted as `Shard.Realm.Contract` (for example "0.0.3")
func (DelegatableContractID) ToBytes ¶
func (id DelegatableContractID) ToBytes() []byte
ToBytes returns a byte array representation of the DelegatableContractID
func (DelegatableContractID) ToEvmAddress ¶ added in v2.66.0
func (id DelegatableContractID) ToEvmAddress() string
ToEvmAddress returns EVM-compatible address representation of the entity
func (DelegatableContractID) ToSolidityAddress ¶
func (id DelegatableContractID) ToSolidityAddress() string
ToSolidityAddress returns the string representation of the DelegatableContractID as a _Solidity address. Deprecated: Use ToEvmAddress instead
func (DelegatableContractID) ToStringWithChecksum ¶
func (id DelegatableContractID) ToStringWithChecksum(client Client) (string, error)
ToStringWithChecksum returns the string representation of a DelegatableContractID formatted as `Shard.Realm.Contract-Checksum` (for example "0.0.3-abcde")
func (*DelegatableContractID) ValidateChecksum ¶
func (id *DelegatableContractID) ValidateChecksum(client *Client) error
Verify that the client has a valid checksum.
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func EndpointFromProtobuf ¶
func EndpointFromProtobuf(serviceEndpoint *services.ServiceEndpoint) Endpoint
func (*Endpoint) GetAddress ¶
func (*Endpoint) GetDomainName ¶
func (*Endpoint) SetAddress ¶
func (*Endpoint) SetDomainName ¶
type EntityID ¶
type EntityID interface {
// contains filtered or unexported methods
}
EntityID is an interface for various IDs of entities (Account, Contract, File, etc)
type ErrBadKey ¶
type ErrBadKey struct {
// contains filtered or unexported fields
}
ErrBadKey is returned if a key is provided in an invalid format or structure
type ErrHederaNetwork ¶
type ErrHederaNetwork struct { // GRPC Status Code StatusCode *codes.Code // contains filtered or unexported fields }
ErrHederaNetwork is returned in cases where the Hiero _Network cannot be reached or a _Network-side error occurs.
func (ErrHederaNetwork) Error ¶
func (e ErrHederaNetwork) Error() string
Error() implements the Error interface
type ErrHederaPreCheckStatus ¶
type ErrHederaPreCheckStatus struct { TxID TransactionID Status Status }
ErrHederaPreCheckStatus is returned by Transaction.Execute and QueryBuilder.Execute if an exceptional status is returned during _Network side validation of the sent transaction.
func (ErrHederaPreCheckStatus) Error ¶
func (e ErrHederaPreCheckStatus) Error() string
Error() implements the Error interface
type ErrHederaReceiptStatus ¶
type ErrHederaReceiptStatus struct { TxID TransactionID Status Status Receipt TransactionReceipt }
ErrHederaReceiptStatus is returned by TransactionID.GetReceipt if the status of the receipt is exceptional.
func (ErrHederaReceiptStatus) Error ¶
func (e ErrHederaReceiptStatus) Error() string
Error() implements the Error interface
type ErrHederaRecordStatus ¶
type ErrHederaRecordStatus struct { TxID TransactionID Status Status }
ErrHederaRecordStatus is returned by TransactionID.GetRecord if the status of the record is exceptional.
func (ErrHederaRecordStatus) Error ¶
func (e ErrHederaRecordStatus) Error() string
Error() implements the Error interface
type ErrInvalidNodeAccountIDSet ¶
type ErrInvalidNodeAccountIDSet struct {
NodeAccountID AccountID
}
func (ErrInvalidNodeAccountIDSet) Error ¶
func (err ErrInvalidNodeAccountIDSet) Error() string
type ErrLocalValidation ¶
type ErrLocalValidation struct {
// contains filtered or unexported fields
}
ErrLocalValidation is returned by TransactionBuilder.Build(*Client) and QueryBuilder.Execute(*Client) if the constructed transaction or query fails local sanity checks.
func (ErrLocalValidation) Error ¶
func (e ErrLocalValidation) Error() string
Error() implements the Error interface
type ErrMaxChunksExceeded ¶
func (ErrMaxChunksExceeded) Error ¶
func (err ErrMaxChunksExceeded) Error() string
type ErrMaxQueryPaymentExceeded ¶
type ErrMaxQueryPaymentExceeded struct { // The cost of the query that was attempted as returned by QueryBuilder.GetCost QueryCost Hbar // The limit for a single automatic query payment, set by // Client.SetMaxQueryPayment(int64) or QueryBuilder.SetMaxQueryPayment(uint64). MaxQueryPayment Hbar // contains filtered or unexported fields }
ErrMaxQueryPaymentExceeded is returned during query execution if the total cost of the query + estimated fees exceeds the max query payment threshold set on the client or QueryBuilder.
func (ErrMaxQueryPaymentExceeded) Error ¶
func (e ErrMaxQueryPaymentExceeded) Error() string
Error() implements the Error interface
type EthereumEIP1559Transaction ¶
type EthereumEIP1559Transaction struct { ChainId []byte Nonce []byte MaxPriorityGas []byte MaxGas []byte GasLimit []byte To []byte Value []byte CallData []byte AccessList [][]byte RecoveryId []byte R []byte S []byte }
EthereumEIP1559Transaction represents the EIP-1559 Ethereum transaction data.
func EthereumEIP1559TransactionFromBytes ¶
func EthereumEIP1559TransactionFromBytes(bytes []byte) (*EthereumEIP1559Transaction, error)
FromBytes decodes the RLP encoded bytes into an EthereumEIP1559Transaction.
func NewEthereumEIP1559Transaction ¶
func NewEthereumEIP1559Transaction( chainId, nonce, maxPriorityGas, maxGas, gasLimit, to, value, callData, recoveryId, r, s []byte, accessList [][]byte) *EthereumEIP1559Transaction
nolint NewEthereumEIP1559Transaction creates a new EthereumEIP1559Transaction with the provided fields.
func (*EthereumEIP1559Transaction) String ¶
func (txn *EthereumEIP1559Transaction) String() string
String returns a string representation of the EthereumEIP1559Transaction.
func (*EthereumEIP1559Transaction) ToBytes ¶
func (txn *EthereumEIP1559Transaction) ToBytes() ([]byte, error)
ToBytes encodes the EthereumEIP1559Transaction into RLP format.
type EthereumEIP2930Transaction ¶ added in v2.59.0
type EthereumEIP2930Transaction struct { ChainId []byte Nonce []byte GasPrice []byte GasLimit []byte To []byte Value []byte CallData []byte AccessList [][]byte RecoveryId []byte R []byte S []byte }
EthereumEIP2930Transaction represents the EIP-2930 Ethereum transaction data.
func EthereumEIP2930TransactionFromBytes ¶ added in v2.59.0
func EthereumEIP2930TransactionFromBytes(bytes []byte) (*EthereumEIP2930Transaction, error)
EthereumEIP2930TransactionFromBytes decodes the RLP encoded bytes into an EthereumEIP2930Transaction.
func NewEthereumEIP2930Transaction ¶ added in v2.59.0
func NewEthereumEIP2930Transaction( chainId, nonce, gasPrice, gasLimit, to, value, callData, recoveryId, r, s []byte, accessList [][]byte) *EthereumEIP2930Transaction
NewEthereumEIP2930Transaction creates a new EthereumEIP2930Transaction with the provided fields.
func (*EthereumEIP2930Transaction) String ¶ added in v2.59.0
func (txn *EthereumEIP2930Transaction) String() string
String returns a string representation of the EthereumEIP2930Transaction.
func (*EthereumEIP2930Transaction) ToBytes ¶ added in v2.59.0
func (txn *EthereumEIP2930Transaction) ToBytes() ([]byte, error)
ToBytes encodes the EthereumEIP2930Transaction into RLP format.
type EthereumFlow ¶
type EthereumFlow struct {
// contains filtered or unexported fields
}
Execute an Ethereum transaction on Hiero Deprecated: use EthereumTransaction instead. With the introduction of jumbo transactions, it should always be less cost and more efficient to use EthereumTransaction instead.
func NewEthereumFlow ¶
func NewEthereumFlow() *EthereumFlow
Execute an Ethereum transaction on Hiero
func (*EthereumFlow) Execute ¶
func (transaction *EthereumFlow) Execute(client *Client) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*EthereumFlow) GetCallDataFileID ¶
func (transaction *EthereumFlow) GetCallDataFileID() FileID
GetCallDataFileID returns the file ID containing the call data.
func (*EthereumFlow) GetEthereumData ¶
func (transaction *EthereumFlow) GetEthereumData() *EthereumTransactionData
GetEthreumData returns the data of the Ethereum transaction
func (*EthereumFlow) GetMaxGasAllowance ¶
func (transaction *EthereumFlow) GetMaxGasAllowance() Hbar
GetMaxGasAllowance returns the maximum gas allowance for the transaction.
func (*EthereumFlow) GetNodeAccountIDs ¶
func (transaction *EthereumFlow) GetNodeAccountIDs() []AccountID
GetNodeAccountIDs returns the node account IDs for this Ethereum transaction.
func (*EthereumFlow) SetCallDataFileID ¶
func (transaction *EthereumFlow) SetCallDataFileID(callData FileID) *EthereumFlow
SetCallDataFileID sets the file ID containing the call data.
func (*EthereumFlow) SetEthereumData ¶
func (transaction *EthereumFlow) SetEthereumData(data *EthereumTransactionData) *EthereumFlow
SetEthereumData sets the raw Ethereum transaction.
func (*EthereumFlow) SetEthereumDataBytes ¶
func (transaction *EthereumFlow) SetEthereumDataBytes(data []byte) *EthereumFlow
SetEthereumDataBytes sets the raw Ethereum transaction.
func (*EthereumFlow) SetMaxGasAllowance ¶
func (transaction *EthereumFlow) SetMaxGasAllowance(max Hbar) *EthereumFlow
SetMaxGasAllowance sets the maximum gas allowance for the transaction.
func (*EthereumFlow) SetNodeAccountIDs ¶
func (transaction *EthereumFlow) SetNodeAccountIDs(nodes []AccountID) *EthereumFlow
SetNodeAccountIDs sets the node account IDs for this Ethereum transaction.
type EthereumLegacyTransaction ¶
type EthereumLegacyTransaction struct { Nonce []byte GasPrice []byte GasLimit []byte To []byte Value []byte CallData []byte V []byte R []byte S []byte }
EthereumLegacyTransaction represents the legacy Ethereum transaction data.
func EthereumLegacyTransactionFromBytes ¶
func EthereumLegacyTransactionFromBytes(bytes []byte) (*EthereumLegacyTransaction, error)
FromBytes decodes the RLP encoded bytes into an EthereumLegacyTransaction.
func NewEthereumLegacyTransaction ¶
func NewEthereumLegacyTransaction(nonce, gasPrice, gasLimit, to, value, callData, v, r, s []byte) *EthereumLegacyTransaction
nolint NewEthereumLegacyTransaction creates a new EthereumLegacyTransaction with the provided fields.
func (*EthereumLegacyTransaction) String ¶
func (txn *EthereumLegacyTransaction) String() string
String returns a string representation of the EthereumLegacyTransaction.
func (*EthereumLegacyTransaction) ToBytes ¶
func (txn *EthereumLegacyTransaction) ToBytes() ([]byte, error)
ToBytes encodes the EthereumLegacyTransaction into RLP format.
type EthereumTransaction ¶
type EthereumTransaction struct { *Transaction[*EthereumTransaction] MaxGasAllowed int64 // contains filtered or unexported fields }
EthereumTransaction is used to create a EthereumTransaction transaction which can be used to construct and execute a Ethereum Transaction.
func NewEthereumTransaction ¶
func NewEthereumTransaction() *EthereumTransaction
NewEthereumTransaction creates a EthereumTransaction transaction which can be used to construct and execute a Ethereum Transaction.
func (*EthereumTransaction) GetCallData ¶
func (tx *EthereumTransaction) GetCallData() FileID
GetCallData For large transactions (for example contract create) this is the callData of the ethereumData. The data in the ethereumData will be re-written with the callData element as a zero length string with the original contents in the referenced file at time of execution. The ethereumData will need to be "rehydrated" with the callData for signature validation to pass.
func (*EthereumTransaction) GetEthereumData ¶
func (tx *EthereumTransaction) GetEthereumData() []byte
GetEthereumData returns the raw Ethereum transaction (RLP encoded type 0, 1, and 2).
func (*EthereumTransaction) GetMaxGasAllowed ¶
func (tx *EthereumTransaction) GetMaxGasAllowed() int64
GetMaxGasAllowed returns the maximum amount, that the payer of the hiero transaction is willing to pay to complete the transaction.
func (EthereumTransaction) GetNodeAccountIDs ¶
func (e EthereumTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*EthereumTransaction) SetCallData ¶
func (tx *EthereumTransaction) SetCallData(file FileID) *EthereumTransaction
Deprecated
func (*EthereumTransaction) SetCallDataFileID ¶
func (tx *EthereumTransaction) SetCallDataFileID(file FileID) *EthereumTransaction
SetCallDataFileID sets the file ID containing the call data.
func (*EthereumTransaction) SetEthereumData ¶
func (tx *EthereumTransaction) SetEthereumData(data []byte) *EthereumTransaction
SetEthereumData The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete unless the callData field is set.
func (*EthereumTransaction) SetMaxGasAllowanceHbar ¶
func (tx *EthereumTransaction) SetMaxGasAllowanceHbar(gas Hbar) *EthereumTransaction
SetMaxGasAllowanceHbar sets the maximum amount, that the payer of the hiero transaction is willing to pay to complete the transaction.
func (*EthereumTransaction) SetMaxGasAllowed ¶
func (tx *EthereumTransaction) SetMaxGasAllowed(gas int64) *EthereumTransaction
SetMaxGasAllowed The maximum amount, in tinybars, that the payer of the hiero transaction is willing to pay to complete the transaction.
type EthereumTransactionData ¶
type EthereumTransactionData struct {
// contains filtered or unexported fields
}
EthereumTransactionData represents the data of an Ethereum transaction.
func EthereumTransactionDataFromBytes ¶
func EthereumTransactionDataFromBytes(b []byte) (*EthereumTransactionData, error)
EthereumTransactionDataFromBytes constructs an EthereumTransactionData from a raw byte array.
func (*EthereumTransactionData) GetData ¶ added in v2.62.0
func (ethereumTxData *EthereumTransactionData) GetData() []byte
GetData retrieves the CallData from the transaction.
func (*EthereumTransactionData) SetData ¶ added in v2.62.0
func (ethereumTxData *EthereumTransactionData) SetData(data []byte) *EthereumTransactionData
SetData sets the CallData for the transaction.
func (*EthereumTransactionData) ToBytes ¶
func (ethereumTxData *EthereumTransactionData) ToBytes() ([]byte, error)
ToBytes returns the raw bytes of the Ethereum transaction.
type Event ¶
Event is a triggered log mechanism
func NewEventFromType ¶
NewEventFromType creates a new solidity event object using the name and type
type ExchangeRate ¶
type ExchangeRate struct { Hbars int32 // contains filtered or unexported fields }
ExchangeRate is the exchange rate between HBAR and USD
func ExchangeRateFromBytes ¶
func ExchangeRateFromBytes(data []byte) (ExchangeRate, error)
ExchangeRateFromString returns an ExchangeRate from a string representation of the exchange rate
func (*ExchangeRate) String ¶
func (exchange *ExchangeRate) String() string
String returns a string representation of the ExchangeRate
func (*ExchangeRate) ToBytes ¶
func (exchange *ExchangeRate) ToBytes() []byte
ToBytes returns the byte representation of the ExchangeRate
type Executable ¶
type Fee ¶
type Fee interface {
// contains filtered or unexported methods
}
func CustomFeeFromBytes ¶
CustomFeeFromBytes returns a CustomFee from a raw protobuf byte array
type FeeAssessmentMethod ¶
type FeeAssessmentMethod bool
const ( FeeAssessmentMethodInclusive FeeAssessmentMethod = false FeeAssessmentMethodExclusive FeeAssessmentMethod = true )
func (FeeAssessmentMethod) String ¶
func (assessment FeeAssessmentMethod) String() string
String returns a string representation of the FeeAssessmentMethod
type FeeComponents ¶
type FeeComponents struct { Min int64 Max int64 Constant int64 TransactionBandwidthByte int64 TransactionVerification int64 TransactionRamByteHour int64 TransactionStorageByteHour int64 ContractTransactionGas int64 TransferVolumeHbar int64 ResponseMemoryByte int64 ResponseDiscByte int64 }
nolint
func FeeComponentsFromBytes ¶
func FeeComponentsFromBytes(data []byte) (FeeComponents, error)
FeeComponentsFromBytes returns the FeeComponents from a byte array representation
func (FeeComponents) String ¶
func (feeComponents FeeComponents) String() string
String returns a string representation of the FeeComponents
func (FeeComponents) ToBytes ¶
func (feeComponents FeeComponents) ToBytes() []byte
ToBytes returns the byte representation of the FeeComponents
type FeeData ¶
type FeeData struct { NodeData *FeeComponents NetworkData *FeeComponents ServiceData *FeeComponents }
func FeeDataFromBytes ¶
FeeDataFromBytes returns a FeeData struct from a raw byte array
type FeeSchedule ¶
type FeeSchedule struct { TransactionFeeSchedules []TransactionFeeSchedule ExpirationTime *time.Time }
func FeeScheduleFromBytes ¶
func FeeScheduleFromBytes(data []byte) (FeeSchedule, error)
FeeScheduleFromBytes returns a FeeSchedule from a raw protobuf byte array
func (FeeSchedule) String ¶
func (feeSchedule FeeSchedule) String() string
String returns a string representation of the FeeSchedule
func (FeeSchedule) ToBytes ¶
func (feeSchedule FeeSchedule) ToBytes() []byte
ToBytes returns the byte representation of the FeeSchedule
type FeeSchedules ¶
type FeeSchedules struct {
// contains filtered or unexported fields
}
func FeeSchedulesFromBytes ¶
func FeeSchedulesFromBytes(data []byte) (FeeSchedules, error)
FeeSchedulesFromBytes returns a FeeSchedules object from a raw byte array
func (FeeSchedules) String ¶
func (feeSchedules FeeSchedules) String() string
String returns a string representation of the FeeSchedules
func (FeeSchedules) ToBytes ¶
func (feeSchedules FeeSchedules) ToBytes() []byte
ToBytes returns the byte representation of the FeeSchedules
type FileAppendTransaction ¶
type FileAppendTransaction struct { *Transaction[*FileAppendTransaction] // contains filtered or unexported fields }
FileAppendTransaction appends the given contents to the end of the file. If a file is too big to create with a single FileCreateTransaction, then it can be created with the first part of its contents, and then appended multiple times to create the entire file.
func NewFileAppendTransaction ¶
func NewFileAppendTransaction() *FileAppendTransaction
NewFileAppendTransaction creates a FileAppendTransaction transaction which can be used to construct and execute a File Append Transaction.
func (*FileAppendTransaction) Execute ¶
func (tx *FileAppendTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*FileAppendTransaction) ExecuteAll ¶
func (tx *FileAppendTransaction) ExecuteAll( client *Client, ) ([]TransactionResponse, error)
ExecuteAll executes the all the Transactions with the provided client
func (*FileAppendTransaction) FreezeWith ¶
func (tx *FileAppendTransaction) FreezeWith(client *Client) (*FileAppendTransaction, error)
func (*FileAppendTransaction) GetContents ¶
func (tx *FileAppendTransaction) GetContents() []byte
GetContents returns the bytes to append to the contents of the file.
func (*FileAppendTransaction) GetFileID ¶
func (tx *FileAppendTransaction) GetFileID() FileID
GetFileID returns the FileID of the file to which the bytes are appended to.
func (*FileAppendTransaction) GetMaxChunkSize ¶
func (tx *FileAppendTransaction) GetMaxChunkSize() int
GetMaxChunkSize returns maximum amount of chunks append function can create
func (*FileAppendTransaction) GetMaxChunks ¶
func (tx *FileAppendTransaction) GetMaxChunks() uint64
GetMaxChunks returns the maximum number of chunks that can be created
func (FileAppendTransaction) GetNodeAccountIDs ¶
func (e FileAppendTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FileAppendTransaction) Schedule ¶
func (tx *FileAppendTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*FileAppendTransaction) SetContents ¶
func (tx *FileAppendTransaction) SetContents(contents []byte) *FileAppendTransaction
SetContents sets the bytes to append to the contents of the file.
func (*FileAppendTransaction) SetFileID ¶
func (tx *FileAppendTransaction) SetFileID(fileID FileID) *FileAppendTransaction
SetFileID sets the FileID of the file to which the bytes are appended to.
func (*FileAppendTransaction) SetMaxChunkSize ¶
func (tx *FileAppendTransaction) SetMaxChunkSize(size int) *FileAppendTransaction
SetMaxChunkSize Sets maximum amount of chunks append function can create
func (*FileAppendTransaction) SetMaxChunks ¶
func (tx *FileAppendTransaction) SetMaxChunks(size uint64) *FileAppendTransaction
SetMaxChunks sets the maximum number of chunks that can be created
type FileContentsQuery ¶
type FileContentsQuery struct { Query // contains filtered or unexported fields }
FileContentsQuery retrieves the contents of a file.
func NewFileContentsQuery ¶
func NewFileContentsQuery() *FileContentsQuery
NewFileContentsQuery creates a FileContentsQuery which retrieves the contents of a file.
func (*FileContentsQuery) Execute ¶
func (q *FileContentsQuery) Execute(client *Client) ([]byte, error)
Execute executes the Query with the provided client
func (*FileContentsQuery) GetCost ¶
func (q *FileContentsQuery) GetCost(client *Client) (Hbar, error)
func (*FileContentsQuery) GetFileID ¶
func (q *FileContentsQuery) GetFileID() FileID
GetFileID returns the FileID of the file whose contents are requested.
func (*FileContentsQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*FileContentsQuery) GetLogLevel ¶
func (e *FileContentsQuery) GetLogLevel() *LogLevel
func (*FileContentsQuery) GetMaxBackoff ¶
func (*FileContentsQuery) GetMaxRetry ¶
func (e *FileContentsQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*FileContentsQuery) GetMinBackoff ¶
func (*FileContentsQuery) GetNodeAccountIDs ¶
func (e *FileContentsQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FileContentsQuery) SetFileID ¶
func (q *FileContentsQuery) SetFileID(fileID FileID) *FileContentsQuery
SetFileID sets the FileID of the file whose contents are requested.
func (*FileContentsQuery) SetGrpcDeadline ¶
func (q *FileContentsQuery) SetGrpcDeadline(deadline *time.Duration) *FileContentsQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*FileContentsQuery) SetLogLevel ¶
func (q *FileContentsQuery) SetLogLevel(level LogLevel) *FileContentsQuery
func (*FileContentsQuery) SetMaxBackoff ¶
func (q *FileContentsQuery) SetMaxBackoff(max time.Duration) *FileContentsQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*FileContentsQuery) SetMaxQueryPayment ¶
func (q *FileContentsQuery) SetMaxQueryPayment(maxPayment Hbar) *FileContentsQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*FileContentsQuery) SetMaxRetry ¶
func (q *FileContentsQuery) SetMaxRetry(count int) *FileContentsQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileContentsQuery) SetMinBackoff ¶
func (q *FileContentsQuery) SetMinBackoff(min time.Duration) *FileContentsQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileContentsQuery) SetNodeAccountIDs ¶
func (q *FileContentsQuery) SetNodeAccountIDs(accountID []AccountID) *FileContentsQuery
SetNodeAccountIDs sets the _Node AccountID for this FileContentsQuery.
func (*FileContentsQuery) SetPaymentTransactionID ¶
func (q *FileContentsQuery) SetPaymentTransactionID(transactionID TransactionID) *FileContentsQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*FileContentsQuery) SetQueryPayment ¶
func (q *FileContentsQuery) SetQueryPayment(paymentAmount Hbar) *FileContentsQuery
SetQueryPayment sets the payment amount for this Query.
type FileCreateTransaction ¶
type FileCreateTransaction struct { *Transaction[*FileCreateTransaction] // contains filtered or unexported fields }
FileCreateTransaction creates a new file, containing the given contents. It is referenced by its FileID, and does not have a filename, so it is important to get and hold onto the FileID. After the file is created, the FileID for it can be found in the receipt, or retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that.
See FileInfoQuery for more information about files.
The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0 and realm 0, with a null key. Future versions of the API will support multiple realms and multiple shards.
func NewFileCreateTransaction ¶
func NewFileCreateTransaction() *FileCreateTransaction
NewFileCreateTransaction creates a FileCreateTransaction which creates a new file, containing the given contents. It is referenced by its FileID, and does not have a filename, so it is important to get and hold onto the FileID. After the file is created, the FileID for it can be found in the receipt, or retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that.
See FileInfoQuery for more information about files.
The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0 and realm 0, with a null key. Future versions of the API will support multiple realms and multiple shards.
func (*FileCreateTransaction) GetContents ¶
func (tx *FileCreateTransaction) GetContents() []byte
GetContents returns the bytes that are the contents of the file (which can be empty).
func (*FileCreateTransaction) GetExpirationTime ¶
func (tx *FileCreateTransaction) GetExpirationTime() time.Time
func (*FileCreateTransaction) GetKeys ¶
func (tx *FileCreateTransaction) GetKeys() KeyList
func (*FileCreateTransaction) GetMemo ¶
func (tx *FileCreateTransaction) GetMemo() string
GetMemo returns the memo associated with the file (UTF-8 encoding max 100 bytes)
func (FileCreateTransaction) GetNodeAccountIDs ¶
func (e FileCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FileCreateTransaction) SetContents ¶
func (tx *FileCreateTransaction) SetContents(contents []byte) *FileCreateTransaction
SetContents sets the bytes that are the contents of the file (which can be empty). If the size of the file and other fields in the transaction exceed the max transaction size then FileCreateTransaction can be used to continue uploading the file.
func (*FileCreateTransaction) SetExpirationTime ¶
func (tx *FileCreateTransaction) SetExpirationTime(expiration time.Time) *FileCreateTransaction
SetExpirationTime sets the time at which this file should expire (unless FileUpdateTransaction is used before then to extend its life). The file will automatically disappear at the fileExpirationTime, unless its expiration is extended by another transaction before that time. If the file is deleted, then its contents will become empty and it will be marked as deleted until it expires, and then it will cease to exist.
func (*FileCreateTransaction) SetKeys ¶
func (tx *FileCreateTransaction) SetKeys(keys ...Key) *FileCreateTransaction
AddKey adds a key to the internal list of keys associated with the file. All of the keys on the list must sign to create or modify a file, but only one of them needs to sign in order to delete the file. Each of those "keys" may itself be threshold key containing other keys (including other threshold keys). In other words, the behavior is an AND for create/modify, OR for delete. This is useful for acting as a revocation server. If it is desired to have the behavior be AND for all 3 operations (or OR for all 3), then the list should have only a single Key, which is a threshold key, with N=1 for OR, N=M for AND.
If a file is created without adding ANY keys, the file is immutable and ONLY the expirationTime of the file can be changed using FileUpdateTransaction. The file contents or its keys will not be mutable.
func (*FileCreateTransaction) SetMemo ¶
func (tx *FileCreateTransaction) SetMemo(memo string) *FileCreateTransaction
SetMemo Sets the memo associated with the file (UTF-8 encoding max 100 bytes)
type FileDeleteTransaction ¶
type FileDeleteTransaction struct { *Transaction[*FileDeleteTransaction] // contains filtered or unexported fields }
FileDeleteTransaction Deletes the given file. After deletion, it will be marked as deleted and will have no contents. But information about it will continue to exist until it expires. A list of keys was given when the file was created. All the top level keys on that list must sign transactions to create or modify the file, but any single one of the top level keys can be used to delete the file. This transaction must be signed by 1-of-M KeyList keys. If keys contains additional KeyList or ThresholdKey then 1-of-M secondary KeyList or ThresholdKey signing requirements must be meet.
func NewFileDeleteTransaction ¶
func NewFileDeleteTransaction() *FileDeleteTransaction
NewFileDeleteTransaction creates a FileDeleteTransaction which deletes the given file. After deletion, it will be marked as deleted and will have no contents. But information about it will continue to exist until it expires. A list of keys was given when the file was created. All the top level keys on that list must sign transactions to create or modify the file, but any single one of the top level keys can be used to delete the file. This transaction must be signed by 1-of-M KeyList keys. If keys contains additional KeyList or ThresholdKey then 1-of-M secondary KeyList or ThresholdKey signing requirements must be meet.
func (*FileDeleteTransaction) GetFileID ¶
func (tx *FileDeleteTransaction) GetFileID() FileID
GetFileID returns the FileID of the file to be deleted
func (FileDeleteTransaction) GetNodeAccountIDs ¶
func (e FileDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FileDeleteTransaction) SetFileID ¶
func (tx *FileDeleteTransaction) SetFileID(fileID FileID) *FileDeleteTransaction
SetFileID Sets the FileID of the file to be deleted
type FileID ¶
type FileID struct { Shard uint64 Realm uint64 File uint64 // contains filtered or unexported fields }
A FileID is the ID for a file on the _Network.
func FileIDForAddressBook ¶
func FileIDForAddressBook() FileID
FileIDForAddressBook returns the public node address book for the current network.
func FileIDForExchangeRate ¶
func FileIDForExchangeRate() FileID
FileIDForExchangeRate returns the current exchange rates of HBAR to USD.
func FileIDForFeeSchedule ¶
func FileIDForFeeSchedule() FileID
FileIDForFeeSchedule returns the current fee schedule for the network.
func FileIDFromBytes ¶
FileIDFromBytes returns a FileID from a byte array
func FileIDFromEvmAddress ¶ added in v2.66.0
FileIDFromEvmAddress constructs an FileID from a string formatted as shard.realm.<evm address>
func FileIDFromSolidityAddress ¶
FileIDFromSolidityAddress returns a FileID parsed from the given solidity address. Deprecated: use FileIDFromEvmAddress instead
func FileIDFromString ¶
FileIDFromString returns a FileID parsed from the given string. A malformatted string will cause this to return an error instead.
func GetAddressBookFileIDFor ¶ added in v2.61.0
GetAddressBookFileIDFor returns the public node address book FileID for the given realm and shard.
func GetExchangeRatesFileIDFor ¶ added in v2.61.0
GetExchangeRatesFileIDFor returns the exchange rates FileID for the given realm and shard.
func GetFeeScheduleFileIDFor ¶ added in v2.61.0
GetFeeScheduleFileIDFor returns the fee schedule FileID for the given realm and shard.
func (FileID) String ¶
String returns the string representation of a FileID in the format used within protobuf.
func (FileID) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of a FileID in the format used by Solidity. Deprecated: use ToEvmAddress instead
func (FileID) ToStringWithChecksum ¶
ToStringWithChecksum returns the string representation of a FileId with checksum.
func (*FileID) ValidateChecksum ¶
Verify that the client has a valid checksum.
type FileInfo ¶
type FileInfo struct { FileID FileID Size int64 ExpirationTime time.Time IsDeleted bool Keys KeyList FileMemo string LedgerID LedgerID }
FileInfo contains the details about a file stored on Hiero
func FileInfoFromBytes ¶
FileInfoFromBytes returns a FileInfo object from a raw byte array
type FileInfoQuery ¶
type FileInfoQuery struct { Query // contains filtered or unexported fields }
FileInfoQuery is a query which can be used to get all of the information about a file, except for its contents. When a file expires, it no longer exists, and there will be no info about it, and the fileInfo field will be blank. If a transaction or smart contract deletes the file, but it has not yet expired, then the fileInfo field will be non-empty, the deleted field will be true, its size will be 0, and its contents will be empty. Note that each file has a FileID, but does not have a filename.
func NewFileInfoQuery ¶
func NewFileInfoQuery() *FileInfoQuery
NewFileInfoQuery creates a FileInfoQuery which can be used to get all of the information about a file, except for its contents.
func (*FileInfoQuery) Execute ¶
func (q *FileInfoQuery) Execute(client *Client) (FileInfo, error)
Execute executes the Query with the provided client
func (*FileInfoQuery) GetFileID ¶
func (q *FileInfoQuery) GetFileID() FileID
GetFileID returns the FileID of the file whose info is requested.
func (*FileInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*FileInfoQuery) GetLogLevel ¶
func (e *FileInfoQuery) GetLogLevel() *LogLevel
func (*FileInfoQuery) GetMaxBackoff ¶
func (*FileInfoQuery) GetMaxRetry ¶
func (e *FileInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*FileInfoQuery) GetMinBackoff ¶
func (*FileInfoQuery) GetNodeAccountIDs ¶
func (e *FileInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FileInfoQuery) SetFileID ¶
func (q *FileInfoQuery) SetFileID(fileID FileID) *FileInfoQuery
SetFileID sets the FileID of the file whose info is requested.
func (*FileInfoQuery) SetGrpcDeadline ¶
func (q *FileInfoQuery) SetGrpcDeadline(deadline *time.Duration) *FileInfoQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*FileInfoQuery) SetLogLevel ¶
func (q *FileInfoQuery) SetLogLevel(level LogLevel) *FileInfoQuery
func (*FileInfoQuery) SetMaxBackoff ¶
func (q *FileInfoQuery) SetMaxBackoff(max time.Duration) *FileInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*FileInfoQuery) SetMaxQueryPayment ¶
func (q *FileInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *FileInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*FileInfoQuery) SetMaxRetry ¶
func (q *FileInfoQuery) SetMaxRetry(count int) *FileInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileInfoQuery) SetMinBackoff ¶
func (q *FileInfoQuery) SetMinBackoff(min time.Duration) *FileInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileInfoQuery) SetNodeAccountIDs ¶
func (q *FileInfoQuery) SetNodeAccountIDs(accountID []AccountID) *FileInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this FileInfoQuery.
func (*FileInfoQuery) SetPaymentTransactionID ¶
func (q *FileInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *FileInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*FileInfoQuery) SetQueryPayment ¶
func (q *FileInfoQuery) SetQueryPayment(paymentAmount Hbar) *FileInfoQuery
SetQueryPayment sets the payment amount for this Query.
type FileUpdateTransaction ¶
type FileUpdateTransaction struct { *Transaction[*FileUpdateTransaction] // contains filtered or unexported fields }
FileUpdateTransaction Modify the metadata and/or contents of a file. If a field is not set in the transaction body, the corresponding file attribute will be unchanged. This transaction must be signed by all the keys in the top level of a key list (M-of-M) of the file being updated. If the keys themselves are being updated, then the transaction must also be signed by all the new keys. If the keys contain additional KeyList or ThresholdKey then M-of-M secondary KeyList or ThresholdKey signing requirements must be meet
func NewFileUpdateTransaction ¶
func NewFileUpdateTransaction() *FileUpdateTransaction
NewFileUpdateTransaction creates a FileUpdateTransaction which modifies the metadata and/or contents of a file. If a field is not set in the transaction body, the corresponding file attribute will be unchanged. tx transaction must be signed by all the keys in the top level of a key list (M-of-M) of the file being updated. If the keys themselves are being updated, then the transaction must also be signed by all the new keys. If the keys contain additional KeyList or ThresholdKey then M-of-M secondary KeyList or ThresholdKey signing requirements must be meet
func (*FileUpdateTransaction) GeFileMemo ¶
func (tx *FileUpdateTransaction) GeFileMemo() string
GeFileMemo Deprecated: use GetFileMemo()
func (*FileUpdateTransaction) GetContents ¶
func (tx *FileUpdateTransaction) GetContents() []byte
GetContents returns the new contents that should overwrite the file's current contents
func (*FileUpdateTransaction) GetExpirationTime ¶
func (tx *FileUpdateTransaction) GetExpirationTime() time.Time
GetExpirationTime returns the new expiry time
func (*FileUpdateTransaction) GetFileID ¶
func (tx *FileUpdateTransaction) GetFileID() FileID
GetFileID returns the FileID to be updated
func (*FileUpdateTransaction) GetFileMemo ¶
func (tx *FileUpdateTransaction) GetFileMemo() string
func (*FileUpdateTransaction) GetKeys ¶
func (tx *FileUpdateTransaction) GetKeys() KeyList
func (FileUpdateTransaction) GetNodeAccountIDs ¶
func (e FileUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FileUpdateTransaction) SetContents ¶
func (tx *FileUpdateTransaction) SetContents(contents []byte) *FileUpdateTransaction
SetContents Sets the new contents that should overwrite the file's current contents
func (*FileUpdateTransaction) SetExpirationTime ¶
func (tx *FileUpdateTransaction) SetExpirationTime(expiration time.Time) *FileUpdateTransaction
SetExpirationTime Sets the new expiry time
func (*FileUpdateTransaction) SetFileID ¶
func (tx *FileUpdateTransaction) SetFileID(fileID FileID) *FileUpdateTransaction
SetFileID Sets the FileID to be updated
func (*FileUpdateTransaction) SetFileMemo ¶
func (tx *FileUpdateTransaction) SetFileMemo(memo string) *FileUpdateTransaction
SetFileMemo Sets the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
func (*FileUpdateTransaction) SetKeys ¶
func (tx *FileUpdateTransaction) SetKeys(keys ...Key) *FileUpdateTransaction
SetKeys Sets the new list of keys that can modify or delete the file
type FreezeTransaction ¶
type FreezeTransaction struct { *Transaction[*FreezeTransaction] // contains filtered or unexported fields }
func NewFreezeTransaction ¶
func NewFreezeTransaction() *FreezeTransaction
func (*FreezeTransaction) GetEndTime ¶
func (tx *FreezeTransaction) GetEndTime() time.Time
Deprecated
func (*FreezeTransaction) GetFileHash ¶
func (tx *FreezeTransaction) GetFileHash() []byte
func (*FreezeTransaction) GetFileID ¶
func (tx *FreezeTransaction) GetFileID() *FileID
func (*FreezeTransaction) GetFreezeType ¶
func (tx *FreezeTransaction) GetFreezeType() FreezeType
func (FreezeTransaction) GetNodeAccountIDs ¶
func (e FreezeTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*FreezeTransaction) GetStartTime ¶
func (tx *FreezeTransaction) GetStartTime() time.Time
func (*FreezeTransaction) SetEndTime ¶
func (tx *FreezeTransaction) SetEndTime(endTime time.Time) *FreezeTransaction
Deprecated
func (*FreezeTransaction) SetFileHash ¶
func (tx *FreezeTransaction) SetFileHash(hash []byte) *FreezeTransaction
func (*FreezeTransaction) SetFileID ¶
func (tx *FreezeTransaction) SetFileID(id FileID) *FreezeTransaction
func (*FreezeTransaction) SetFreezeType ¶
func (tx *FreezeTransaction) SetFreezeType(freezeType FreezeType) *FreezeTransaction
func (*FreezeTransaction) SetStartTime ¶
func (tx *FreezeTransaction) SetStartTime(startTime time.Time) *FreezeTransaction
type FreezeType ¶
type FreezeType int32
const ( FreezeTypeUnknown FreezeType = 0 FreezeTypeFreezeOnly FreezeType = 1 FreezeTypePrepareUpgrade FreezeType = 2 FreezeTypeFreezeUpgrade FreezeType = 3 FreezeTypeFreezeAbort FreezeType = 4 FreezeTypeTelemetryUpgrade FreezeType = 5 )
func (FreezeType) String ¶
func (freezeType FreezeType) String() string
type Hash ¶
type Hash [32]byte
Hash represents the 32 byte Keccak256 hash of arbitrary data.
func Keccak256Hash ¶
type Hbar ¶
type Hbar struct {
// contains filtered or unexported fields
}
Hbar is a typesafe wrapper around values of HBAR providing foolproof conversions to other denominations.
func HbarFromString ¶
HbarFromString returns a Hbar representation of the string provided.
func HbarFromTinybar ¶
HbarFromTinybar creates a representation of Hbar in tinybars
func TransactionGetMaxTransactionFee ¶
func TransactionGetMaxTransactionFee(tx TransactionInterface) (Hbar, error)
type HbarAllowance ¶
An approved allowance of hbar transfers for a spender.
func NewHbarAllowance ¶
func NewHbarAllowance(ownerAccountID AccountID, spenderAccountID AccountID, amount int64) HbarAllowance
NewHbarAllowance creates a new HbarAllowance with the given owner, spender, and amount.
func (*HbarAllowance) String ¶
func (approval *HbarAllowance) String() string
String returns a string representation of the HbarAllowance
type HbarUnit ¶
type HbarUnit string
type Key ¶
type Key interface { String() string // contains filtered or unexported methods }
func KeyFromBytes ¶
type KeyList ¶
type KeyList struct {
// contains filtered or unexported fields
}
KeyList is a list of keys
func KeyListWithThreshold ¶
NewKeyListWithThreshold creates a new KeyList with the given threshold
func (*KeyList) AddAllPublicKeys ¶
AddAllPublicKeys adds all the public keys to the KeyList
func (KeyList) GetThreshold ¶
GetThreshold returns the threshold value set on the KeyList. A value of -1 means that there is no threshold set.
func (*KeyList) SetThreshold ¶
SetThreshold sets the threshold of the KeyList
type LedgerID ¶
type LedgerID struct {
// contains filtered or unexported fields
}
func LedgerIDFromBytes ¶
LedgerIDFromBytes returns a LedgerID from a byte representation of a ledger ID.
func LedgerIDFromNetworkName ¶
func LedgerIDFromNetworkName(network NetworkName) (*LedgerID, error)
LedgerIDFromNetworkName returns a LedgerID from a NetworkName.
func LedgerIDFromString ¶
LedgerIDFromString returns a LedgerID from a string representation of a ledger ID.
func NewLedgerIDMainnet ¶
func NewLedgerIDMainnet() *LedgerID
LedgerIDMainnet returns a LedgerID for mainnet.
func NewLedgerIDPreviewnet ¶
func NewLedgerIDPreviewnet() *LedgerID
LedgerIDPreviewnet returns a LedgerID for previewnet.
func NewLedgerIDTestnet ¶
func NewLedgerIDTestnet() *LedgerID
LedgerIDTestnet returns a LedgerID for testnet.
func (*LedgerID) IsPreviewnet ¶
IsPreviewnet returns true if the LedgerID is for previewnet.
func (*LedgerID) ToNetworkName ¶
func (id *LedgerID) ToNetworkName() (NetworkName, error)
ToNetworkName returns a NetworkName from the LedgerID.
type LiveHash ¶
type LiveHash struct { AccountID AccountID Hash []byte Keys KeyList // Deprecated Duration time.Time LiveHashDuration time.Duration }
LiveHash is a hash that is live on the Hiero network
func LiveHashFromBytes ¶
LiveHashFromBytes returns a LiveHash object from a raw byte array
type LiveHashAddTransaction
deprecated
type LiveHashAddTransaction struct { *Transaction[*LiveHashAddTransaction] // contains filtered or unexported fields }
Deprecated: Do not use. LiveHashAddTransaction At consensus, attaches the given livehash to the given account. The hash can be deleted by the key controlling the account, or by any of the keys associated to the livehash. Hence livehashes provide a revocation service for their implied credentials; for example, when an authority grants a credential to the account, the account owner will cosign with the authority (or authorities) to attach a hash of the credential to the account---hence proving the grant. If the credential is revoked, then any of the authorities may delete it (or the account owner). In this way, the livehash mechanism acts as a revocation service. An account cannot have two identical livehashes associated. To modify the list of keys in a livehash, the livehash should first be deleted, then recreated with a new list of keys.
func NewLiveHashAddTransaction
deprecated
func NewLiveHashAddTransaction() *LiveHashAddTransaction
Deprecated: Do not use. NewLiveHashAddTransaction creates LiveHashAddTransaction which at consensus, attaches the given livehash to the given account. The hash can be deleted by the key controlling the account, or by any of the keys associated to the livehash. Hence livehashes provide a revocation service for their implied credentials; for example, when an authority grants a credential to the account, the account owner will cosign with the authority (or authorities) to attach a hash of the credential to the account---hence proving the grant. If the credential is revoked, then any of the authorities may delete it (or the account owner). In this way, the livehash mechanism acts as a revocation service. An account cannot have two identical livehashes associated. To modify the list of keys in a livehash, the livehash should first be deleted, then recreated with a new list of keys. This transaction is obsolete, not supported, and SHALL fail with a pre-check result of `NOT_SUPPORTED`.`
func (*LiveHashAddTransaction) GetAccountID ¶
func (tx *LiveHashAddTransaction) GetAccountID() AccountID
GetAccountID returns the account to which the livehash is attached
func (*LiveHashAddTransaction) GetDuration ¶
func (tx *LiveHashAddTransaction) GetDuration() time.Duration
GetDuration returns the duration for which the livehash will remain valid
func (*LiveHashAddTransaction) GetHash ¶
func (tx *LiveHashAddTransaction) GetHash() []byte
func (*LiveHashAddTransaction) GetKeys ¶
func (tx *LiveHashAddTransaction) GetKeys() KeyList
func (LiveHashAddTransaction) GetNodeAccountIDs ¶
func (e LiveHashAddTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*LiveHashAddTransaction) SetAccountID ¶
func (tx *LiveHashAddTransaction) SetAccountID(accountID AccountID) *LiveHashAddTransaction
SetAccountID Sets the account to which the livehash is attached
func (*LiveHashAddTransaction) SetDuration ¶
func (tx *LiveHashAddTransaction) SetDuration(duration time.Duration) *LiveHashAddTransaction
SetDuration Set the duration for which the livehash will remain valid
func (*LiveHashAddTransaction) SetGrpcDeadline ¶
func (tx *LiveHashAddTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashAddTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*LiveHashAddTransaction) SetHash ¶
func (tx *LiveHashAddTransaction) SetHash(hash []byte) *LiveHashAddTransaction
SetHash Sets the SHA-384 hash of a credential or certificate
func (*LiveHashAddTransaction) SetKeys ¶
func (tx *LiveHashAddTransaction) SetKeys(keys ...Key) *LiveHashAddTransaction
SetKeys Sets a list of keys (primitive or threshold), all of which must sign to attach the livehash to an account. Any one of which can later delete it.
type LiveHashDeleteTransaction
deprecated
type LiveHashDeleteTransaction struct { *Transaction[*LiveHashDeleteTransaction] // contains filtered or unexported fields }
Deprecated: Do not use. LiveHashDeleteTransaction At consensus, deletes a livehash associated to the given account. The transaction must be signed by either the key of the owning account, or at least one of the keys associated to the livehash.
func NewLiveHashDeleteTransaction
deprecated
func NewLiveHashDeleteTransaction() *LiveHashDeleteTransaction
Deprecated: Do not use. NewLiveHashDeleteTransaction creates LiveHashDeleteTransaction which at consensus, deletes a livehash associated to the given account. The transaction must be signed by either the key of the owning account, or at least one of the keys associated to the livehash. This transaction is obsolete, not supported, and SHALL fail with a pre-check result of `NOT_SUPPORTED`.`
func (*LiveHashDeleteTransaction) GetAccountID ¶
func (tx *LiveHashDeleteTransaction) GetAccountID() AccountID
GetAccountID returns the account owning the livehash
func (*LiveHashDeleteTransaction) GetHash ¶
func (tx *LiveHashDeleteTransaction) GetHash() []byte
GetHash returns the SHA-384 livehash to delete from the account
func (LiveHashDeleteTransaction) GetNodeAccountIDs ¶
func (e LiveHashDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*LiveHashDeleteTransaction) SetAccountID ¶
func (tx *LiveHashDeleteTransaction) SetAccountID(accountID AccountID) *LiveHashDeleteTransaction
SetAccountID Sets the account owning the livehash
func (*LiveHashDeleteTransaction) SetHash ¶
func (tx *LiveHashDeleteTransaction) SetHash(hash []byte) *LiveHashDeleteTransaction
SetHash Set the SHA-384 livehash to delete from the account
type LiveHashQuery
deprecated
type LiveHashQuery struct { Query // contains filtered or unexported fields }
Deprecated: Do not use. LiveHashQuery Requests a livehash associated to an account.
func NewLiveHashQuery
deprecated
func NewLiveHashQuery() *LiveHashQuery
Deprecated: Do not use. This transaction is obsolete, not supported, and SHALL fail with a pre-check result of `NOT_SUPPORTED`.
func (*LiveHashQuery) Execute ¶
func (q *LiveHashQuery) Execute(client *Client) (LiveHash, error)
Execute executes the Query with the provided client
func (*LiveHashQuery) GetAccountID ¶
func (q *LiveHashQuery) GetAccountID() AccountID
GetAccountID returns the AccountID to which the livehash is associated
func (*LiveHashQuery) GetGetHash ¶
func (q *LiveHashQuery) GetGetHash() []byte
GetHash returns the SHA-384 data in the livehash
func (*LiveHashQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*LiveHashQuery) GetLogLevel ¶
func (e *LiveHashQuery) GetLogLevel() *LogLevel
func (*LiveHashQuery) GetMaxBackoff ¶
func (*LiveHashQuery) GetMaxRetry ¶
func (e *LiveHashQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*LiveHashQuery) GetMinBackoff ¶
func (*LiveHashQuery) GetNodeAccountIDs ¶
func (e *LiveHashQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*LiveHashQuery) SetAccountID ¶
func (q *LiveHashQuery) SetAccountID(accountID AccountID) *LiveHashQuery
SetAccountID Sets the AccountID to which the livehash is associated
func (*LiveHashQuery) SetGrpcDeadline ¶
func (q *LiveHashQuery) SetGrpcDeadline(deadline *time.Duration) *LiveHashQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*LiveHashQuery) SetHash ¶
func (q *LiveHashQuery) SetHash(hash []byte) *LiveHashQuery
SetHash Sets the SHA-384 data in the livehash
func (*LiveHashQuery) SetLogLevel ¶
func (q *LiveHashQuery) SetLogLevel(level LogLevel) *LiveHashQuery
func (*LiveHashQuery) SetMaxBackoff ¶
func (q *LiveHashQuery) SetMaxBackoff(max time.Duration) *LiveHashQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*LiveHashQuery) SetMaxQueryPayment ¶
func (q *LiveHashQuery) SetMaxQueryPayment(maxPayment Hbar) *LiveHashQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*LiveHashQuery) SetMaxRetry ¶
func (q *LiveHashQuery) SetMaxRetry(count int) *LiveHashQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*LiveHashQuery) SetMinBackoff ¶
func (q *LiveHashQuery) SetMinBackoff(min time.Duration) *LiveHashQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*LiveHashQuery) SetNodeAccountIDs ¶
func (q *LiveHashQuery) SetNodeAccountIDs(accountID []AccountID) *LiveHashQuery
SetNodeAccountIDs sets the _Node AccountID for this LiveHashQuery.
func (*LiveHashQuery) SetPaymentTransactionID ¶
func (q *LiveHashQuery) SetPaymentTransactionID(transactionID TransactionID) *LiveHashQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*LiveHashQuery) SetQueryPayment ¶
func (q *LiveHashQuery) SetQueryPayment(paymentAmount Hbar) *LiveHashQuery
SetQueryPayment sets the payment amount for this Query.
type Logger ¶
type Logger interface { SetSilent(isSilent bool) SetLevel(level LogLevel) SubLoggerWithLevel(level LogLevel) Logger Error(msg string, keysAndValues ...interface{}) Warn(msg string, keysAndValues ...interface{}) Info(msg string, keysAndValues ...interface{}) Debug(msg string, keysAndValues ...interface{}) Trace(msg string, keysAndValues ...interface{}) }
type Method ¶
Method is a callable function in the contract
type MirrorNodeContractCallQuery ¶
type MirrorNodeContractCallQuery struct {
// contains filtered or unexported fields
}
MirrorNodeContractCallQuery returns a result from EVM transient simulation of read-write operations.
func NewMirrorNodeContractCallQuery ¶
func NewMirrorNodeContractCallQuery() *MirrorNodeContractCallQuery
func (*MirrorNodeContractCallQuery) Execute ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) Execute(client *Client) (string, error)
Does transient simulation of read-write operations and returns the result in hexadecimal string format.
func (*MirrorNodeContractCallQuery) GetBlockNumber ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetBlockNumber() int64
GetBlockNumber returns the block number for the simulation of the contract call. The block number determines the context of the contract call simulation within the blockchain.
func (*MirrorNodeContractCallQuery) GetCallData ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetCallData() []byte
GetCallData returns the calldata
func (*MirrorNodeContractCallQuery) GetContractEvmAddress ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetContractEvmAddress() string
GetContractEvmAddress returns the 20-byte EVM address of the contract to call.
func (*MirrorNodeContractCallQuery) GetContractID ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetContractID() ContractID
GetContractID returns the contract instance to call
func (*MirrorNodeContractCallQuery) GetGasLimit ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetGasLimit() int64
GetGasLimit returns the gas limit for the contract call. This specifies the maximum amount of gas that the transaction can consume.
func (*MirrorNodeContractCallQuery) GetGasPrice ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetGasPrice() int64
GetGasPrice returns the gas price to be used for the contract call. This specifies the price of each unit of gas used in the transaction.
func (*MirrorNodeContractCallQuery) GetSender ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetSender() AccountID
GetSender returns the sender of the transaction simulation.
func (*MirrorNodeContractCallQuery) GetSenderEvmAddress ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetSenderEvmAddress() string
GetSenderEvmAddress returns the 20-byte EVM address of the sender of the transaction simulation.
func (*MirrorNodeContractCallQuery) GetValue ¶
func (mirrorNodeContractQuery *MirrorNodeContractCallQuery) GetValue() int64
GetValue returns the amount of value (in tinybars or wei) to be sent to the contract in the transaction.
func (*MirrorNodeContractCallQuery) SetBlockNumber ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetBlockNumber(blockNumber int64) *MirrorNodeContractCallQuery
SetBlockNumber sets the block number for the simulation of the contract call. The block number determines the context of the contract call simulation within the blockchain.
func (*MirrorNodeContractCallQuery) SetContractEvmAddress ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetContractEvmAddress(contractEvmAddress string) *MirrorNodeContractCallQuery
SetContractEvmAddress sets the 20-byte EVM address of the contract to call.
func (*MirrorNodeContractCallQuery) SetContractID ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetContractID(contractID ContractID) *MirrorNodeContractCallQuery
SetContractID sets the contract instance to call.
func (*MirrorNodeContractCallQuery) SetFunction ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetFunction(name string, params *ContractFunctionParameters) *MirrorNodeContractCallQuery
SetFunction sets the function parameters as their raw bytes.
func (*MirrorNodeContractCallQuery) SetFunctionParameters ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetFunctionParameters(byteArray []byte) *MirrorNodeContractCallQuery
SetFunction sets the function parameters as their raw bytes.
func (*MirrorNodeContractCallQuery) SetGasLimit ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetGasLimit(gasLimit int64) *MirrorNodeContractCallQuery
SetGasLimit sets the gas limit for the contract call. This specifies the maximum amount of gas that the transaction can consume.
func (*MirrorNodeContractCallQuery) SetGasPrice ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetGasPrice(gasPrice int64) *MirrorNodeContractCallQuery
SetGasPrice sets the gas price to be used for the contract call. This specifies the price of each unit of gas used in the transaction.
func (*MirrorNodeContractCallQuery) SetSender ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetSender(sender AccountID) *MirrorNodeContractCallQuery
SetSender sets the sender of the transaction simulation.
func (*MirrorNodeContractCallQuery) SetSenderEvmAddress ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetSenderEvmAddress(senderEvmAddress string) *MirrorNodeContractCallQuery
SetSenderEvmAddress sets the 20-byte EVM address of the sender of the transaction simulation.
func (*MirrorNodeContractCallQuery) SetValue ¶
func (mirrorNodeContractCallQuery *MirrorNodeContractCallQuery) SetValue(value int64) *MirrorNodeContractCallQuery
SetValue sets the amount of value (in tinybars or wei) to be sent to the contract in the transaction.
type MirrorNodeContractEstimateGasQuery ¶
type MirrorNodeContractEstimateGasQuery struct {
// contains filtered or unexported fields
}
MirrorNodeContractEstimateGasQuery returns a result from EVM gas estimation of read-write operations.
func NewMirrorNodeContractEstimateGasQuery ¶
func NewMirrorNodeContractEstimateGasQuery() *MirrorNodeContractEstimateGasQuery
func (*MirrorNodeContractEstimateGasQuery) Execute ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) Execute(client *Client) (uint64, error)
Returns gas estimation for the EVM execution
func (*MirrorNodeContractEstimateGasQuery) GetBlockNumber ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetBlockNumber() int64
GetBlockNumber returns the block number for the simulation of the contract call. The block number determines the context of the contract call simulation within the blockchain.
func (*MirrorNodeContractEstimateGasQuery) GetCallData ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetCallData() []byte
GetCallData returns the calldata
func (*MirrorNodeContractEstimateGasQuery) GetContractEvmAddress ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetContractEvmAddress() string
GetContractEvmAddress returns the 20-byte EVM address of the contract to call.
func (*MirrorNodeContractEstimateGasQuery) GetContractID ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetContractID() ContractID
GetContractID returns the contract instance to call
func (*MirrorNodeContractEstimateGasQuery) GetGasLimit ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetGasLimit() int64
GetGasLimit returns the gas limit for the contract call. This specifies the maximum amount of gas that the transaction can consume.
func (*MirrorNodeContractEstimateGasQuery) GetGasPrice ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetGasPrice() int64
GetGasPrice returns the gas price to be used for the contract call. This specifies the price of each unit of gas used in the transaction.
func (*MirrorNodeContractEstimateGasQuery) GetSender ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetSender() AccountID
GetSender returns the sender of the transaction simulation.
func (*MirrorNodeContractEstimateGasQuery) GetSenderEvmAddress ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetSenderEvmAddress() string
GetSenderEvmAddress returns the 20-byte EVM address of the sender of the transaction simulation.
func (*MirrorNodeContractEstimateGasQuery) GetValue ¶
func (mirrorNodeContractQuery *MirrorNodeContractEstimateGasQuery) GetValue() int64
GetValue returns the amount of value (in tinybars or wei) to be sent to the contract in the transaction.
func (*MirrorNodeContractEstimateGasQuery) SetContractEvmAddress ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetContractEvmAddress(contractEvmAddress string) *MirrorNodeContractEstimateGasQuery
SetContractEvmAddress sets the 20-byte EVM address of the contract to call.
func (*MirrorNodeContractEstimateGasQuery) SetContractID ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetContractID(contractID ContractID) *MirrorNodeContractEstimateGasQuery
SetContractID sets the contract instance to call.
func (*MirrorNodeContractEstimateGasQuery) SetFunction ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetFunction(name string, params *ContractFunctionParameters) *MirrorNodeContractEstimateGasQuery
SetFunction sets the function parameters as their raw bytes.
func (*MirrorNodeContractEstimateGasQuery) SetFunctionParameters ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetFunctionParameters(byteArray []byte) *MirrorNodeContractEstimateGasQuery
SetFunction sets the function parameters as their raw bytes.
func (*MirrorNodeContractEstimateGasQuery) SetGasLimit ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetGasLimit(gasLimit int64) *MirrorNodeContractEstimateGasQuery
SetGasLimit sets the gas limit for the contract call. This specifies the maximum amount of gas that the transaction can consume.
func (*MirrorNodeContractEstimateGasQuery) SetGasPrice ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetGasPrice(gasPrice int64) *MirrorNodeContractEstimateGasQuery
SetGasPrice sets the gas price to be used for the contract call. This specifies the price of each unit of gas used in the transaction.
func (*MirrorNodeContractEstimateGasQuery) SetSender ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetSender(sender AccountID) *MirrorNodeContractEstimateGasQuery
SetSender sets the sender of the transaction simulation.
func (*MirrorNodeContractEstimateGasQuery) SetSenderEvmAddress ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetSenderEvmAddress(senderEvmAddress string) *MirrorNodeContractEstimateGasQuery
SetSenderEvmAddress sets the 20-byte EVM address of the sender of the transaction simulation.
func (*MirrorNodeContractEstimateGasQuery) SetValue ¶
func (mirrorNodeEstimateGasQuery *MirrorNodeContractEstimateGasQuery) SetValue(value int64) *MirrorNodeContractEstimateGasQuery
SetValue sets the amount of value (in tinybars or wei) to be sent to the contract in the transaction.
type Mnemonic ¶
type Mnemonic struct {
// contains filtered or unexported fields
}
func GenerateMnemonic12 ¶
GenerateMnemonic12 generates a random 12-word mnemonic
func GenerateMnemonic24 ¶
GenerateMnemonic generates a random 24-word mnemonic
func MnemonicFromString ¶
MnemonicFromString creates a mnemonic from a string of 24 words separated by spaces
Keys are lazily generated
func NewMnemonic ¶
NewMnemonic Creates a mnemonic from a slice of 24 strings
Keys are lazily generated
func (Mnemonic) ToLegacyPrivateKey ¶
func (m Mnemonic) ToLegacyPrivateKey() (PrivateKey, error)
ToLegacyPrivateKey converts a mnemonic to a legacy private key
func (Mnemonic) ToPrivateKey ¶
func (m Mnemonic) ToPrivateKey(passPhrase string) (PrivateKey, error)
Deprecated
func (Mnemonic) ToStandardECDSAsecp256k1PrivateKey ¶
func (m Mnemonic) ToStandardECDSAsecp256k1PrivateKey(passPhrase string, index uint32) (PrivateKey, error)
ToStandardECDSAsecp256k1PrivateKey converts a mnemonic to a standard ecdsa secp256k1 private key Uses the default derivation path of `m/44'/3030'/0'/0/${index}`
func (Mnemonic) ToStandardECDSAsecp256k1PrivateKeyCustomDerivationPath ¶
func (m Mnemonic) ToStandardECDSAsecp256k1PrivateKeyCustomDerivationPath(passPhrase string, derivationPath string) (PrivateKey, error)
ToStandardECDSAsecp256k1PrivateKey converts a mnemonic to a standard ecdsa secp256k1 private key
func (Mnemonic) ToStandardEd25519PrivateKey ¶
func (m Mnemonic) ToStandardEd25519PrivateKey(passPhrase string, index uint32) (PrivateKey, error)
ToStandardEd25519PrivateKey converts a mnemonic to a standard ed25519 private key
type NetworkName ¶
type NetworkName string
const ( NetworkNameMainnet NetworkName = "mainnet" NetworkNameTestnet NetworkName = "testnet" NetworkNamePreviewnet NetworkName = "previewnet" NetworkNameOther NetworkName = "other" )
func GetNetworkName
deprecated
added in
v2.59.0
func GetNetworkName(client Client) *NetworkName
Deprecated: Use GetLedgerID instead
type NetworkVersionInfo ¶
type NetworkVersionInfo struct { ProtobufVersion SemanticVersion ServicesVersion SemanticVersion }
NetworkVersionInfo is the version info for the Hiero network protobuf and services
func NetworkVersionInfoFromBytes ¶
func NetworkVersionInfoFromBytes(data []byte) (NetworkVersionInfo, error)
NetworkVersionInfoFromBytes returns the NetworkVersionInfo from a raw byte array
func (*NetworkVersionInfo) ToBytes ¶
func (version *NetworkVersionInfo) ToBytes() []byte
ToBytes returns the byte representation of the NetworkVersionInfo
type NetworkVersionInfoQuery ¶
type NetworkVersionInfoQuery struct {
Query
}
NetworkVersionInfoQuery is the query to be executed that would return the current version of the network's protobuf and services.
func NewNetworkVersionQuery ¶
func NewNetworkVersionQuery() *NetworkVersionInfoQuery
NewNetworkVersionQuery creates a NetworkVersionInfoQuery builder which can be used to construct and execute a Network Get Version Info Query containing the current version of the network's protobuf and services.
func (*NetworkVersionInfoQuery) Execute ¶
func (q *NetworkVersionInfoQuery) Execute(client *Client) (NetworkVersionInfo, error)
Execute executes the Query with the provided client
func (*NetworkVersionInfoQuery) GetCost ¶
func (q *NetworkVersionInfoQuery) GetCost(client *Client) (Hbar, error)
func (*NetworkVersionInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*NetworkVersionInfoQuery) GetLogLevel ¶
func (e *NetworkVersionInfoQuery) GetLogLevel() *LogLevel
func (*NetworkVersionInfoQuery) GetMaxBackoff ¶
func (*NetworkVersionInfoQuery) GetMaxRetry ¶
func (e *NetworkVersionInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*NetworkVersionInfoQuery) GetMinBackoff ¶
func (*NetworkVersionInfoQuery) GetNodeAccountIDs ¶
func (e *NetworkVersionInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*NetworkVersionInfoQuery) SetGrpcDeadline ¶
func (q *NetworkVersionInfoQuery) SetGrpcDeadline(deadline *time.Duration) *NetworkVersionInfoQuery
SetGrpcDeadline When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*NetworkVersionInfoQuery) SetLogLevel ¶
func (q *NetworkVersionInfoQuery) SetLogLevel(level LogLevel) *NetworkVersionInfoQuery
func (*NetworkVersionInfoQuery) SetMaxBackoff ¶
func (q *NetworkVersionInfoQuery) SetMaxBackoff(max time.Duration) *NetworkVersionInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*NetworkVersionInfoQuery) SetMaxQueryPayment ¶
func (q *NetworkVersionInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *NetworkVersionInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*NetworkVersionInfoQuery) SetMaxRetry ¶
func (q *NetworkVersionInfoQuery) SetMaxRetry(count int) *NetworkVersionInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*NetworkVersionInfoQuery) SetMinBackoff ¶
func (q *NetworkVersionInfoQuery) SetMinBackoff(min time.Duration) *NetworkVersionInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*NetworkVersionInfoQuery) SetNodeAccountIDs ¶
func (q *NetworkVersionInfoQuery) SetNodeAccountIDs(accountID []AccountID) *NetworkVersionInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this NetworkVersionInfoQuery.
func (*NetworkVersionInfoQuery) SetPaymentTransactionID ¶
func (q *NetworkVersionInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *NetworkVersionInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*NetworkVersionInfoQuery) SetQueryPayment ¶
func (q *NetworkVersionInfoQuery) SetQueryPayment(paymentAmount Hbar) *NetworkVersionInfoQuery
SetQueryPayment sets the payment amount for this Query.
type NftID ¶
NftID is the ID for a non-fungible token
func NftIDFromBytes ¶
NftIDFromBytes returns the NftID from a raw byte array
func NftIDFromString ¶
NewNftID constructs a new NftID from a TokenID and a serial number
func (NftID) ToStringWithChecksum ¶
ToStringWithChecksum returns a string representation of the NftID with a checksum
type NodeAddress ¶
type NodeAddress struct { PublicKey string AccountID *AccountID NodeID int64 CertHash []byte Addresses []Endpoint Description string }
NodeAddress is the address of a node on the Hiero network
func (NodeAddress) String ¶
func (nodeAdd NodeAddress) String() string
String returns a string representation of the NodeAddress
type NodeAddressBook ¶
type NodeAddressBook struct {
NodeAddresses []NodeAddress
}
NodeAddressBook is the address book for the nodes on the Hiero network
func NodeAddressBookFromBytes ¶
func NodeAddressBookFromBytes(data []byte) (NodeAddressBook, error)
NodeAddressBookFromBytes returns the NodeAddressBook from a raw byte array
func (NodeAddressBook) ToBytes ¶
func (book NodeAddressBook) ToBytes() []byte
ToBytes returns the byte representation of the NodeAddressBook
type NodeCreateTransaction ¶
type NodeCreateTransaction struct { *Transaction[*NodeCreateTransaction] // contains filtered or unexported fields }
*
- A transaction to create a new node in the network address book.
- The transaction, once complete, enables a new consensus node
- to join the network, and requires governing council authorization.
- <p>
- This transaction body SHALL be considered a "privileged transaction".
- <p> *
- - MUST be signed by the governing council.
- - MUST be signed by the `Key` assigned to the
- `admin_key` field.
- - The newly created node information SHALL be added to the network address
- book information in the network state.
- - The new entry SHALL be created in "state" but SHALL NOT participate in
- network consensus and SHALL NOT be present in network "configuration"
- until the next "upgrade" transaction (as noted below).
- - All new address book entries SHALL be added to the active network
- configuration during the next `freeze` transaction with the field
- `freeze_type` set to `PREPARE_UPGRADE`. *
- ### Record Stream Effects
- Upon completion the newly assigned `node_id` SHALL be in the transaction
- receipt.
func NewNodeCreateTransaction ¶
func NewNodeCreateTransaction() *NodeCreateTransaction
func (*NodeCreateTransaction) AddGossipEndpoint ¶
func (tx *NodeCreateTransaction) AddGossipEndpoint(endpoint Endpoint) *NodeCreateTransaction
AddGossipEndpoint add an endpoint for gossip to the list of service endpoints for gossip.
func (*NodeCreateTransaction) AddServiceEndpoint ¶
func (tx *NodeCreateTransaction) AddServiceEndpoint(endpoint Endpoint) *NodeCreateTransaction
AddServiceEndpoint the list of service endpoints for gRPC calls.
func (*NodeCreateTransaction) GetAccountID ¶
func (tx *NodeCreateTransaction) GetAccountID() AccountID
GetAccountID AccountID of the node
func (*NodeCreateTransaction) GetAdminKey ¶
func (tx *NodeCreateTransaction) GetAdminKey() Key
GetAdminKey an administrative key controlled by the node operator.
func (*NodeCreateTransaction) GetDeclineReward ¶ added in v2.63.0
func (tx *NodeCreateTransaction) GetDeclineReward() bool
GetDeclineReward Gets whether this node declines rewards.
func (*NodeCreateTransaction) GetDescription ¶
func (tx *NodeCreateTransaction) GetDescription() string
GetDescription get the description of the node
func (*NodeCreateTransaction) GetGossipCaCertificate ¶
func (tx *NodeCreateTransaction) GetGossipCaCertificate() []byte
GetGossipCaCertificate the certificate used to sign gossip events.
func (*NodeCreateTransaction) GetGossipEndpoints ¶
func (tx *NodeCreateTransaction) GetGossipEndpoints() []Endpoint
GetServiceEndpoints the list of service endpoints for gossip.
func (*NodeCreateTransaction) GetGrpcCertificateHash ¶
func (tx *NodeCreateTransaction) GetGrpcCertificateHash() []byte
GetGrpcCertificateHash the hash of the node gRPC TLS certificate.
func (*NodeCreateTransaction) GetGrpcWebProxyEndpoint ¶ added in v2.63.0
func (tx *NodeCreateTransaction) GetGrpcWebProxyEndpoint() Endpoint
GetGrpcWebProxyEndpoint Gets the gRPC proxy endpoint.
func (NodeCreateTransaction) GetNodeAccountIDs ¶
func (e NodeCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*NodeCreateTransaction) GetServiceEndpoints ¶
func (tx *NodeCreateTransaction) GetServiceEndpoints() []Endpoint
GetServiceEndpoints the list of service endpoints for gRPC calls.
func (*NodeCreateTransaction) SetAccountID ¶
func (tx *NodeCreateTransaction) SetAccountID(accountID AccountID) *NodeCreateTransaction
SetAccountID get the AccountID of the node
func (*NodeCreateTransaction) SetAdminKey ¶
func (tx *NodeCreateTransaction) SetAdminKey(adminKey Key) *NodeCreateTransaction
SetAdminKey an administrative key controlled by the node operator.
func (*NodeCreateTransaction) SetDeclineReward ¶ added in v2.63.0
func (tx *NodeCreateTransaction) SetDeclineReward(declineReward bool) *NodeCreateTransaction
SetDeclineReward Sets whether this node declines rewards, true to decline rewards, false to accept.
func (*NodeCreateTransaction) SetDescription ¶
func (tx *NodeCreateTransaction) SetDescription(description string) *NodeCreateTransaction
SetDescription set the description of the node
func (*NodeCreateTransaction) SetGossipCaCertificate ¶
func (tx *NodeCreateTransaction) SetGossipCaCertificate(gossipCaCertificate []byte) *NodeCreateTransaction
SetGossipCaCertificate the certificate used to sign gossip events. This value MUST be the DER encoding of the certificate presented.
func (*NodeCreateTransaction) SetGossipEndpoints ¶
func (tx *NodeCreateTransaction) SetGossipEndpoints(gossipEndpoints []Endpoint) *NodeCreateTransaction
SetServiceEndpoints the list of service endpoints for gossip.
func (*NodeCreateTransaction) SetGrpcCertificateHash ¶
func (tx *NodeCreateTransaction) SetGrpcCertificateHash(grpcCertificateHash []byte) *NodeCreateTransaction
SetGrpcCertificateHash the hash of the node gRPC TLS certificate. This value MUST be a SHA-384 hash.
func (*NodeCreateTransaction) SetGrpcWebProxyEndpoint ¶ added in v2.63.0
func (tx *NodeCreateTransaction) SetGrpcWebProxyEndpoint(grpcWebProxyEndpoint Endpoint) *NodeCreateTransaction
SetGrpcWebProxyEndpoint Sets the gRPC proxy endpoint.
func (*NodeCreateTransaction) SetServiceEndpoints ¶
func (tx *NodeCreateTransaction) SetServiceEndpoints(serviceEndpoints []Endpoint) *NodeCreateTransaction
SetServiceEndpoints the list of service endpoints for gRPC calls.
type NodeDeleteTransaction ¶
type NodeDeleteTransaction struct { *Transaction[*NodeDeleteTransaction] // contains filtered or unexported fields }
*
- A transaction to delete a node from the network address book. *
- This transaction body SHALL be considered a "privileged transaction". *
- - A transaction MUST be signed by the governing council.
- - Upon success, the address book entry SHALL enter a "pending delete"
- state.
- - All address book entries pending deletion SHALL be removed from the
- active network configuration during the next `freeze` transaction with
- the field `freeze_type` set to `PREPARE_UPGRADE`.<br/>
- - A deleted address book node SHALL be removed entirely from network state.
- - A deleted address book node identifier SHALL NOT be reused. *
- ### Record Stream Effects
- Upon completion the "deleted" `node_id` SHALL be in the transaction
- receipt.
func NewNodeDeleteTransaction ¶
func NewNodeDeleteTransaction() *NodeDeleteTransaction
func (NodeDeleteTransaction) GetNodeAccountIDs ¶
func (e NodeDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*NodeDeleteTransaction) GetNodeID ¶
func (tx *NodeDeleteTransaction) GetNodeID() uint64
GetNodeID he consensus node identifier in the network state.
func (*NodeDeleteTransaction) SetNodeID ¶
func (tx *NodeDeleteTransaction) SetNodeID(nodeID uint64) *NodeDeleteTransaction
SetNodeID the consensus node identifier in the network state.
type NodeUpdateTransaction ¶
type NodeUpdateTransaction struct { *Transaction[*NodeUpdateTransaction] // contains filtered or unexported fields }
*
- A transaction to modify address book node attributes. *
- - This transaction SHALL enable the node operator, as identified by the
- `admin_key`, to modify operational attributes of the node.
- - This transaction MUST be signed by the active `admin_key` for the node.
- - If this transaction sets a new value for the `admin_key`, then both the
- current `admin_key`, and the new `admin_key` MUST sign this transaction.
- - This transaction SHALL NOT change any field that is not set (is null) in
- this transaction body.
- - This SHALL create a pending update to the node, but the change SHALL NOT
- be immediately applied to the active configuration.
- - All pending node updates SHALL be applied to the active network
- configuration during the next `freeze` transaction with the field
- `freeze_type` set to `PREPARE_UPGRADE`. *
- ### Record Stream Effects
- Upon completion the `node_id` for the updated entry SHALL be in the
- transaction receipt.
func NewNodeUpdateTransaction ¶
func NewNodeUpdateTransaction() *NodeUpdateTransaction
func (*NodeUpdateTransaction) AddGossipEndpoint ¶
func (tx *NodeUpdateTransaction) AddGossipEndpoint(endpoint Endpoint) *NodeUpdateTransaction
AddGossipEndpoint add an endpoint for gossip to the list of service endpoints for gossip.
func (*NodeUpdateTransaction) AddServiceEndpoint ¶
func (tx *NodeUpdateTransaction) AddServiceEndpoint(endpoint Endpoint) *NodeUpdateTransaction
AddServiceEndpoint the list of service endpoints for gRPC calls.
func (*NodeUpdateTransaction) ClearDescription ¶
func (tx *NodeUpdateTransaction) ClearDescription(description string) *NodeUpdateTransaction
SetDescription remove the description contents.
func (*NodeUpdateTransaction) DeleteGrpcWebProxyEndpoint ¶ added in v2.68.0
func (tx *NodeUpdateTransaction) DeleteGrpcWebProxyEndpoint() *NodeUpdateTransaction
DeleteGrpcWebProxyEndpoint Deletes the gRPC proxy endpoint and sets it to null in the mirror node.
func (*NodeUpdateTransaction) GetAccountID ¶
func (tx *NodeUpdateTransaction) GetAccountID() AccountID
GetAccountID AccountID of the node
func (*NodeUpdateTransaction) GetAdminKey ¶
func (tx *NodeUpdateTransaction) GetAdminKey() Key
GetAdminKey an administrative key controlled by the node operator.
func (*NodeUpdateTransaction) GetDeclineReward ¶ added in v2.63.0
func (tx *NodeUpdateTransaction) GetDeclineReward() *bool
GetDeclineReward Gets whether this node declines rewards.
func (*NodeUpdateTransaction) GetDescription ¶
func (tx *NodeUpdateTransaction) GetDescription() string
GetDescription get the description of the node
func (*NodeUpdateTransaction) GetGossipCaCertificate ¶
func (tx *NodeUpdateTransaction) GetGossipCaCertificate() []byte
GetGossipCaCertificate the certificate used to sign gossip events.
func (*NodeUpdateTransaction) GetGossipEndpoints ¶
func (tx *NodeUpdateTransaction) GetGossipEndpoints() []Endpoint
GetServiceEndpoints the list of service endpoints for gossip.
func (*NodeUpdateTransaction) GetGrpcCertificateHash ¶
func (tx *NodeUpdateTransaction) GetGrpcCertificateHash() []byte
GetGrpcCertificateHash the hash of the node gRPC TLS certificate.
func (*NodeUpdateTransaction) GetGrpcWebProxyEndpoint ¶ added in v2.63.0
func (tx *NodeUpdateTransaction) GetGrpcWebProxyEndpoint() *Endpoint
GetGrpcWebProxyEndpoint Gets the gRPC proxy endpoint.
func (NodeUpdateTransaction) GetNodeAccountIDs ¶
func (e NodeUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*NodeUpdateTransaction) GetNodeID ¶
func (tx *NodeUpdateTransaction) GetNodeID() uint64
GetNodeID he consensus node identifier in the network state.
func (*NodeUpdateTransaction) GetServiceEndpoints ¶
func (tx *NodeUpdateTransaction) GetServiceEndpoints() []Endpoint
GetServiceEndpoints the list of service endpoints for gRPC calls.
func (*NodeUpdateTransaction) SetAccountID ¶
func (tx *NodeUpdateTransaction) SetAccountID(accountID AccountID) *NodeUpdateTransaction
SetAccountID get the AccountID of the node
func (*NodeUpdateTransaction) SetAdminKey ¶
func (tx *NodeUpdateTransaction) SetAdminKey(adminKey Key) *NodeUpdateTransaction
SetAdminKey an administrative key controlled by the node operator.
func (*NodeUpdateTransaction) SetDeclineReward ¶ added in v2.63.0
func (tx *NodeUpdateTransaction) SetDeclineReward(declineReward bool) *NodeUpdateTransaction
SetDeclineReward Sets whether this node declines rewards, true to decline rewards, false to accept. if not set - no change will be made
func (*NodeUpdateTransaction) SetDescription ¶
func (tx *NodeUpdateTransaction) SetDescription(description string) *NodeUpdateTransaction
SetDescription set the description of the node
func (*NodeUpdateTransaction) SetGossipCaCertificate ¶
func (tx *NodeUpdateTransaction) SetGossipCaCertificate(gossipCaCertificate []byte) *NodeUpdateTransaction
SetGossipCaCertificate the certificate used to sign gossip events. This value MUST be the DER encoding of the certificate presented.
func (*NodeUpdateTransaction) SetGossipEndpoints ¶
func (tx *NodeUpdateTransaction) SetGossipEndpoints(gossipEndpoints []Endpoint) *NodeUpdateTransaction
SetServiceEndpoints the list of service endpoints for gossip.
func (*NodeUpdateTransaction) SetGrpcCertificateHash ¶
func (tx *NodeUpdateTransaction) SetGrpcCertificateHash(grpcCertificateHash []byte) *NodeUpdateTransaction
SetGrpcCertificateHash the hash of the node gRPC TLS certificate. This value MUST be a SHA-384 hash.
func (*NodeUpdateTransaction) SetGrpcWebProxyEndpoint ¶ added in v2.63.0
func (tx *NodeUpdateTransaction) SetGrpcWebProxyEndpoint(grpcWebProxyEndpoint Endpoint) *NodeUpdateTransaction
SetGrpcWebProxyEndpoint Sets the gRPC proxy endpoint. if not set - no change will be made
func (*NodeUpdateTransaction) SetNodeID ¶
func (tx *NodeUpdateTransaction) SetNodeID(nodeID uint64) *NodeUpdateTransaction
SetNodeID the consensus node identifier in the network state.
func (*NodeUpdateTransaction) SetServiceEndpoints ¶
func (tx *NodeUpdateTransaction) SetServiceEndpoints(serviceEndpoints []Endpoint) *NodeUpdateTransaction
SetServiceEndpoints the list of service endpoints for gRPC calls.
type PendingAirdropId ¶
type PendingAirdropId struct {
// contains filtered or unexported fields
}
*
- A unique, composite, identifier for a pending airdrop. *
- Each pending airdrop SHALL be uniquely identified by a PendingAirdropId.
- A PendingAirdropId SHALL be recorded when created and MUST be provided in any transaction
- that would modify that pending airdrop (such as a `claimAirdrop` or `cancelAirdrop`).
func (*PendingAirdropId) GetNftID ¶
func (pendingAirdropId *PendingAirdropId) GetNftID() *NftID
GetNftID returns the NftID of the pending airdrop
func (*PendingAirdropId) GetReceiver ¶
func (pendingAirdropId *PendingAirdropId) GetReceiver() *AccountID
GetReceiver returns the AccountID of the receiver
func (*PendingAirdropId) GetSender ¶
func (pendingAirdropId *PendingAirdropId) GetSender() *AccountID
GetSender returns the AccountID of the sender
func (*PendingAirdropId) GetTokenID ¶
func (pendingAirdropId *PendingAirdropId) GetTokenID() *TokenID
GetTokenID returns the TokenID of the pending airdrop
func (*PendingAirdropId) NewPendingAirdropId ¶
func (pendingAirdropId *PendingAirdropId) NewPendingAirdropId() *PendingAirdropId
func (*PendingAirdropId) SetNftID ¶
func (pendingAirdropId *PendingAirdropId) SetNftID(nftID NftID) *PendingAirdropId
SetNftID sets the NftID of the pending airdrop
func (*PendingAirdropId) SetReceiver ¶
func (pendingAirdropId *PendingAirdropId) SetReceiver(receiver AccountID) *PendingAirdropId
SetReceiver sets the AccountID of the receiver
func (*PendingAirdropId) SetSender ¶
func (pendingAirdropId *PendingAirdropId) SetSender(sender AccountID) *PendingAirdropId
SetSender sets the AccountID of the sender
func (*PendingAirdropId) SetTokenID ¶
func (pendingAirdropId *PendingAirdropId) SetTokenID(tokenID TokenID) *PendingAirdropId
SetTokenID sets the TokenID of the pending airdrop
func (*PendingAirdropId) String ¶
func (pendingAirdropId *PendingAirdropId) String() string
type PendingAirdropRecord ¶
type PendingAirdropRecord struct {
// contains filtered or unexported fields
}
func (*PendingAirdropRecord) GetPendingAirdropAmount ¶
func (pendingAirdropRecord *PendingAirdropRecord) GetPendingAirdropAmount() uint64
func (*PendingAirdropRecord) GetPendingAirdropId ¶
func (pendingAirdropRecord *PendingAirdropRecord) GetPendingAirdropId() PendingAirdropId
func (*PendingAirdropRecord) String ¶
func (pendingAirdropRecord *PendingAirdropRecord) String() string
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(bytes []byte) (PrivateKey, error)
Deprecated pending review, PrivateKeyFromBytesEd25519, PrivateKeyFromBytesECDSA or PrivateKeyFromBytesDer are recommended instead.
func PrivateKeyFromBytesDer ¶
func PrivateKeyFromBytesDer(bytes []byte) (PrivateKey, error)
func PrivateKeyFromBytesECDSA ¶
func PrivateKeyFromBytesECDSA(bytes []byte) (PrivateKey, error)
func PrivateKeyFromBytesEd25519 ¶
func PrivateKeyFromBytesEd25519(bytes []byte) (PrivateKey, error)
func PrivateKeyFromKeystore ¶
func PrivateKeyFromKeystore(ks []byte, passphrase string) (PrivateKey, error)
func PrivateKeyFromMnemonic
deprecated
func PrivateKeyFromMnemonic(mnemonic Mnemonic, passPhrase string) (PrivateKey, error)
PrivateKeyFromMnemonic recovers an _Ed25519PrivateKey from a valid 24 word length mnemonic phrase and a passphrase.
An empty string can be passed for passPhrase If the mnemonic phrase wasn't generated with a passphrase. This is required to recover a private key from a mnemonic generated by the Android and iOS wallets.
Deprecated: Use Mnemonic.ToStandardEd25519PrivateKey or Mnemonic.ToStandardECDSAsecp256k1PrivateKey instead
func PrivateKeyFromPem ¶
func PrivateKeyFromPem(bytes []byte, passphrase string) (PrivateKey, error)
func PrivateKeyFromSeedECDSAsecp256k1 ¶
func PrivateKeyFromSeedECDSAsecp256k1(seed []byte) (PrivateKey, error)
func PrivateKeyFromSeedEd25519 ¶
func PrivateKeyFromSeedEd25519(seed []byte) (PrivateKey, error)
func PrivateKeyFromString ¶
func PrivateKeyFromString(s string) (PrivateKey, error)
Deprecated pending review, PrivateKeyFromStringEd25519, PrivateKeyFromStringECDSA or PrivateKeyFromStringDer are recommended instead.
func PrivateKeyFromStringDer ¶
func PrivateKeyFromStringDer(s string) (PrivateKey, error)
PrivateKeyFromStringDer Creates PrivateKey from hex string with a der prefix
func PrivateKeyFromStringECDSA ¶
func PrivateKeyFromStringECDSA(s string) (PrivateKey, error)
func PrivateKeyFromStringECSDA
deprecated
func PrivateKeyFromStringECSDA(s string) (PrivateKey, error)
Deprecated: use PrivateKeyFromStringECDSA instead
func PrivateKeyFromStringEd25519 ¶
func PrivateKeyFromStringEd25519(s string) (PrivateKey, error)
func PrivateKeyGenerate
deprecated
func PrivateKeyGenerate() (PrivateKey, error)
Deprecated: use PrivateKeyGenerateEd25519 or PrivateKeyGenerateEcdsa instead
func PrivateKeyGenerateEcdsa ¶
func PrivateKeyGenerateEcdsa() (PrivateKey, error)
PrivateKeyGenerateEcdsa Generates a new ECDSASecp256K1 key
func PrivateKeyGenerateEd25519 ¶
func PrivateKeyGenerateEd25519() (PrivateKey, error)
PrivateKeyGenerateEd25519 Generates a new Ed25519 key
func PrivateKeyReadKeystore ¶
func PrivateKeyReadKeystore(source io.Reader, passphrase string) (PrivateKey, error)
PrivateKeyReadKeystore recovers an _Ed25519PrivateKey from an encrypted _Keystore file.
func PrivateKeyReadPem ¶
func PrivateKeyReadPem(source io.Reader, passphrase string) (PrivateKey, error)
func (PrivateKey) Bytes ¶
func (sk PrivateKey) Bytes() []byte
* For `Ed25519` the result of this method call is identical to `toBytesRaw()` while for `ECDSA` * this method is identical to `toBytesDer()`. * * We strongly recommend using `toBytesRaw()` or `toBytesDer()` instead.
func (PrivateKey) BytesDer ¶
func (sk PrivateKey) BytesDer() []byte
func (PrivateKey) BytesRaw ¶
func (sk PrivateKey) BytesRaw() []byte
func (PrivateKey) Derive ¶
func (sk PrivateKey) Derive(index uint32) (PrivateKey, error)
func (PrivateKey) GetRecoveryId ¶ added in v2.59.0
func (sk PrivateKey) GetRecoveryId(r []byte, s []byte, message []byte) int
GetRecoveryId returns the recovery id of the signature for the given message. The recovery id is used to recover the public key. It is only available for ECDSA keys and returns -1 if the key is not ECDSA or if the signature is not valid.
func (PrivateKey) LegacyDerive ¶
func (sk PrivateKey) LegacyDerive(index int64) (PrivateKey, error)
func (PrivateKey) PublicKey ¶
func (sk PrivateKey) PublicKey() PublicKey
func (PrivateKey) Sign ¶
func (sk PrivateKey) Sign(message []byte) []byte
Sign signs the provided message with the Ed25519PrivateKey.
func (PrivateKey) SignTransaction ¶
func (sk PrivateKey) SignTransaction(tx TransactionInterface) ([]byte, error)
SignTransaction signes the transaction and adds the signature to the transaction
func (PrivateKey) String ¶
func (sk PrivateKey) String() string
String returns the text-encoded representation of the PrivateKey.
func (PrivateKey) StringDer ¶
func (sk PrivateKey) StringDer() string
func (PrivateKey) StringRaw ¶
func (sk PrivateKey) StringRaw() string
func (PrivateKey) SupportsDerivation ¶
func (sk PrivateKey) SupportsDerivation() bool
func (PrivateKey) ToAccountID ¶
func (sk PrivateKey) ToAccountID(shard uint64, realm uint64) *AccountID
func (PrivateKey) WriteKeystore ¶
func (sk PrivateKey) WriteKeystore(destination io.Writer, passphrase string) error
type PrngTransaction ¶
type PrngTransaction struct { *Transaction[*PrngTransaction] // contains filtered or unexported fields }
PrngTransaction is used to generate a random number in a given range
func NewPrngTransaction ¶
func NewPrngTransaction() *PrngTransaction
NewPrngTransaction creates a PrngTransaction transaction which can be used to construct and execute a Prng Transaction.
func (PrngTransaction) GetNodeAccountIDs ¶
func (e PrngTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*PrngTransaction) GetRange ¶
func (tx *PrngTransaction) GetRange() uint32
GetRange returns the range of the prng
func (*PrngTransaction) SetRange ¶
func (tx *PrngTransaction) SetRange(r uint32) *PrngTransaction
SetPayerAccountID Sets an optional id of the account to be charged the service fee for the scheduled transaction at the consensus time that it executes (if ever); defaults to the ScheduleCreate payer if not given
type ProxyStaker ¶
ProxyStaker is an information about a single account that is proxy staking
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func PublicKeyFromBytes ¶
Deprecated pending review, PublicKeyFromBytesEd25519 or PublicKeyFromBytesECDSA are recommended instead.
func PublicKeyFromBytesDer ¶
func PublicKeyFromBytesECDSA ¶
func PublicKeyFromString ¶
Deprecated pending review, PublicKeyFromStringEd25519 or PublicKeyFromStringECDSA are recommended instead.
func ZeroKey ¶
*
- SDK needs to provide a way to set an unusable key such as an Ed25519 all-zeros
- key, since it is (presumably) impossible to find the 32-byte string whose SHA-512 hash begins with 32 bytes
- of zeros. We recommend using all-zeros to clearly advertise any unusable keys.
func (PublicKey) Bytes ¶
* For `Ed25519` the result of this method call is identical to `toBytesRaw()` while for `ECDSA` * this method is identical to `toBytesDer()`. * * We strongly recommend using `toBytesRaw()` or `toBytesDer()` instead.
func (PublicKey) ToAccountID ¶
func (PublicKey) ToEthereumAddress
deprecated
Deprecated: Use PublicKey.ToEvmAddress instead
func (PublicKey) ToEvmAddress ¶
func (PublicKey) Verify
deprecated
Deprecated: Use PublicKey.VerifySignedMessage instead. Verify is not keytype agnostic and has different behavior for ed25519 and ecdsa keys, the latter requiring a Keccak256Hash bytes as the message.
func (PublicKey) VerifySignedMessage ¶ added in v2.59.0
VerifySignedMessage reports whether signature is valid for the given message
func (PublicKey) VerifyTransaction ¶
func (pk PublicKey) VerifyTransaction(tx TransactionInterface) bool
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query is the struct used to build queries.
func (*Query) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*Query) GetLogLevel ¶
func (e *Query) GetLogLevel() *LogLevel
func (*Query) GetMaxBackoff ¶
func (*Query) GetMaxQueryPayment ¶
GetMaxQueryPayment returns the maximum payment allowed for this query.
func (*Query) GetMaxRetry ¶
func (e *Query) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*Query) GetMaxRetryCount ¶
GetMaxRetryCount returns the max number of errors before execution will fail.
func (*Query) GetMinBackoff ¶
func (*Query) GetNodeAccountIDs ¶
func (e *Query) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*Query) GetPaymentTransactionID ¶
func (q *Query) GetPaymentTransactionID() TransactionID
GetPaymentTransactionID returns the payment transaction id.
func (*Query) GetQueryPayment ¶
GetQueryPayment returns the payment amount for this query.
func (*Query) SetGrpcDeadline ¶
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*Query) SetLogLevel ¶
func (e *Query) SetLogLevel(level LogLevel) *executable
func (*Query) SetMaxBackoff ¶
func (*Query) SetMaxQueryPayment ¶
SetMaxQueryPayment sets the maximum payment allowed for this query.
func (*Query) SetMaxRetry ¶
func (e *Query) SetMaxRetry(max int) *executable
func (*Query) SetMinBackoff ¶
func (*Query) SetNodeAccountIDs ¶
func (e *Query) SetNodeAccountIDs(nodeAccountIDs []AccountID) *executable
func (*Query) SetPaymentTransactionID ¶
func (q *Query) SetPaymentTransactionID(transactionID TransactionID) *Query
SetPaymentTransactionID assigns the payment transaction id.
func (*Query) SetQueryPayment ¶
SetQueryPayment sets the payment amount for this query.
type QueryInterface ¶
type QueryInterface interface { Executable // contains filtered or unexported methods }
type RLPItem ¶
type RLPItem struct {
// contains filtered or unexported fields
}
RLPItem represents a single RLP item.
func (*RLPItem) AssignBytes ¶
func (*RLPItem) AssignList ¶
func (item *RLPItem) AssignList()
func (*RLPItem) AssignString ¶
func (*RLPItem) AssignValue ¶
Assign methods to set values for the RLPItem
func (*RLPItem) GetChildItems ¶
Gets Child items for RLPItem
func (*RLPItem) GetItemValue ¶
Gets the item value for RLPItem
type RequestType ¶
type RequestType uint32
const ( // UNSPECIFIED - Need to keep first value as unspecified because first element is ignored and not parsed (0 is ignored by parser) RequestTypeNone RequestType = 0 // crypto transfe RequestTypeCryptoTransfer RequestType = 1 // crypto update account RequestTypeCryptoUpdate RequestType = 2 // crypto delete account RequestTypeCryptoDelete RequestType = 3 // Add a livehash to a crypto account RequestTypeCryptoAddLiveHash RequestType = 4 // Delete a livehash from a crypto account RequestTypeCryptoDeleteLiveHash RequestType = 5 // Smart Contract Call RequestTypeContractCall RequestType = 6 // Smart Contract Create Contract RequestTypeContractCreate RequestType = 7 // Smart Contract update contract RequestTypeContractUpdate RequestType = 8 // File Operation create file RequestTypeFileCreate RequestType = 9 // File Operation append file RequestTypeFileAppend RequestType = 10 // File Operation update file RequestTypeFileUpdate RequestType = 11 // File Operation delete file RequestTypeFileDelete RequestType = 12 // crypto get account balance RequestTypeCryptoGetAccountBalance RequestType = 13 // crypto get account record RequestTypeCryptoGetAccountRecords RequestType = 14 // Crypto get info RequestTypeCryptoGetInfo RequestType = 15 // Smart Contract Call RequestTypeContractCallLocal RequestType = 16 // Smart Contract get info RequestTypeContractGetInfo RequestType = 17 // Smart Contract, get the byte code RequestTypeContractGetBytecode RequestType = 18 // Smart Contract, get by _Solidity ID RequestTypeGetBySolidityID RequestType = 19 // Smart Contract, get by key RequestTypeGetByKey RequestType = 20 // Get a live hash from a crypto account RequestTypeCryptoGetLiveHash RequestType = 21 // Crypto, get the stakers for the _Node RequestTypeCryptoGetStakers RequestType = 22 // File Operations get file contents RequestTypeFileGetContents RequestType = 23 // File Operations get the info of the file RequestTypeFileGetInfo RequestType = 24 // Crypto get the transaction records RequestTypeTransactionGetRecord RequestType = 25 // Contract get the transaction records RequestTypeContractGetRecords RequestType = 26 // crypto create account RequestTypeCryptoCreate RequestType = 27 // system delete file RequestTypeSystemDelete RequestType = 28 // system undelete file RequestTypeSystemUndelete RequestType = 29 // delete contract RequestTypeContractDelete RequestType = 30 // freeze RequestTypeFreeze RequestType = 31 // Create Tx Record RequestTypeCreateTransactionRecord RequestType = 32 // Crypto Auto Renew RequestTypeCryptoAccountAutoRenew RequestType = 33 // Contract Auto Renew RequestTypeContractAutoRenew RequestType = 34 // Get Version RequestTypeGetVersionInfo RequestType = 35 // Transaction Get Receipt RequestTypeTransactionGetReceipt RequestType = 36 // Create Topic RequestTypeConsensusCreateTopic RequestType = 50 // Update Topic RequestTypeConsensusUpdateTopic RequestType = 51 // Delete Topic RequestTypeConsensusDeleteTopic RequestType = 52 // Get Topic information RequestTypeConsensusGetTopicInfo RequestType = 53 // Submit message to topic RequestTypeConsensusSubmitMessage RequestType = 54 RequestTypeUncheckedSubmit RequestType = 55 // Create Token RequestTypeTokenCreate RequestType = 56 // Get Token information RequestTypeTokenGetInfo RequestType = 58 // Freeze Account RequestTypeTokenFreezeAccount RequestType = 59 // Unfreeze Account RequestTypeTokenUnfreezeAccount RequestType = 60 // Grant KYC to Account RequestTypeTokenGrantKycToAccount RequestType = 61 // Revoke KYC from Account RequestTypeTokenRevokeKycFromAccount RequestType = 62 // Delete Token RequestTypeTokenDelete RequestType = 63 // Update Token RequestTypeTokenUpdate RequestType = 64 // Mint tokens to treasury RequestTypeTokenMint RequestType = 65 // Burn tokens from treasury RequestTypeTokenBurn RequestType = 66 // Wipe token amount from Account holder RequestTypeTokenAccountWipe RequestType = 67 // Associate tokens to an account RequestTypeTokenAssociateToAccount RequestType = 68 // Dissociate tokens from an account RequestTypeTokenDissociateFromAccount RequestType = 69 // Create Scheduled Transaction RequestTypeScheduleCreate RequestType = 70 // Delete Scheduled Transaction RequestTypeScheduleDelete RequestType = 71 // Sign Scheduled Transaction RequestTypeScheduleSign RequestType = 72 // Get Scheduled Transaction Information RequestTypeScheduleGetInfo RequestType = 73 // Get Token Account Nft Information RequestTypeTokenGetAccountNftInfos RequestType = 74 // Get Token Nft Information RequestTypeTokenGetNftInfo RequestType = 75 // Get Token Nft List Information RequestTypeTokenGetNftInfos RequestType = 76 // Update a token's custom fee schedule, if permissible RequestTypeTokenFeeScheduleUpdate RequestType = 77 // Get execution time(s) by TransactionID, if available RequestTypeNetworkGetExecutionTime RequestType = 78 // Pause the Token RequestTypeTokenPause RequestType = 79 // Unpause the Token RequestTypeTokenUnpause RequestType = 80 // Approve allowance for a spender relative to the owner account RequestTypeCryptoApproveAllowance RequestType = 81 // Deletes granted allowances on owner account RequestTypeCryptoDeleteAllowance RequestType = 82 // Gets all the information about an account, including balance and allowances RequestTypeGetAccountDetails RequestType = 83 // Ethereum Transaction RequestTypeEthereumTransaction RequestType = 84 // Updates the staking info at the end of staking period RequestTypeNodeStakeUpdate RequestType = 85 // Generates a pseudorandom number RequestTypePrng RequestType = 86 // Get a record for a transaction (lasts 180 seconds) RequestTypeTransactionGetFastRecord RequestType = 87 // Update the metadata of one or more NFT's of a specific token type RequestTypeTokenUpdateNfts RequestType = 88 // Create a new node RequestTypeNodeCreate RequestType = 89 // Update an existing node RequestTypeNodeUpdate RequestType = 90 // Delete a node RequestTypeNodeDelete RequestType = 91 // Transfer token balances to treasury RequestTypeTokenReject RequestType = 92 // Airdrop tokens to accounts RequestTypeTokenAirdrop RequestType = 93 // Remove pending airdrops from state RequestTypeTokenCancelAirdrop RequestType = 94 // Claim pending airdrops RequestTypeTokenClaimAirdrop RequestType = 95 // TSS Messages for a candidate roster RequestTypeTssMessage RequestType = 96 // Vote on TSS validity RequestTypeTssVote RequestType = 97 RequestTypeTssShareSignature RequestType = 98 // Submit node public TSS encryption key RequestTypeTssEncryptionKey RequestType = 99 // Submit signature of state root hash RequestTypeStateSignatureTransaction RequestType = 100 RequestTypeHintsKeyPublication RequestType = 101 RequestTypeHintsPreprocessingVote RequestType = 102 RequestTypeHintsPartialSignature RequestType = 103 RequestTypeHistoryAssemblySignature RequestType = 104 RequestTypeHistoryProofKeyPublication RequestType = 105 RequestTypeHistoryProofVote RequestType = 106 RequestTypeCrsPublication RequestType = 107 RequestTypeAtomicBatch RequestType = 108 )
func (RequestType) String ¶
func (requestType RequestType) String() string
String() returns a string representation of the status
type ScheduleCreateTransaction ¶
type ScheduleCreateTransaction struct { *Transaction[*ScheduleCreateTransaction] // contains filtered or unexported fields }
ScheduleCreateTransaction Creates a new schedule entity (or simply, schedule) in the network's action queue. Upon SUCCESS, the receipt contains the `ScheduleID` of the created schedule. A schedule entity includes a scheduledTransactionBody to be executed. When the schedule has collected enough signing Ed25519 keys to satisfy the schedule's signing requirements, the schedule can be executed.
func NewScheduleCreateTransaction ¶
func NewScheduleCreateTransaction() *ScheduleCreateTransaction
NewScheduleCreateTransaction creates ScheduleCreateTransaction which creates a new schedule entity (or simply, schedule) in the network's action queue. Upon SUCCESS, the receipt contains the `ScheduleID` of the created schedule. A schedule entity includes a scheduledTransactionBody to be executed. When the schedule has collected enough signing Ed25519 keys to satisfy the schedule's signing requirements, the schedule can be executed.
func (*ScheduleCreateTransaction) GetAdminKey ¶
func (tx *ScheduleCreateTransaction) GetAdminKey() *Key
GetAdminKey returns the optional Hiero key which can be used to sign a ScheduleDelete and remove the schedule
func (*ScheduleCreateTransaction) GetExpirationTime ¶
func (tx *ScheduleCreateTransaction) GetExpirationTime() time.Time
GetExpirationTime returns the optional timestamp for specifying when the transaction should be evaluated for execution and then expire.
func (ScheduleCreateTransaction) GetNodeAccountIDs ¶
func (e ScheduleCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ScheduleCreateTransaction) GetPayerAccountID ¶
func (tx *ScheduleCreateTransaction) GetPayerAccountID() AccountID
GetPayerAccountID returns the optional id of the account to be charged the service fee for the scheduled transaction
func (*ScheduleCreateTransaction) GetScheduleMemo ¶
func (tx *ScheduleCreateTransaction) GetScheduleMemo() string
GetScheduleMemo returns the optional memo with a UTF-8 encoding of no more than 100 bytes which does not contain the zero byte.
func (*ScheduleCreateTransaction) GetWaitForExpiry ¶
func (tx *ScheduleCreateTransaction) GetWaitForExpiry() bool
GetWaitForExpiry returns true if the transaction will be evaluated for execution at expiration_time instead of when all required signatures are received.
func (*ScheduleCreateTransaction) SetAdminKey ¶
func (tx *ScheduleCreateTransaction) SetAdminKey(key Key) *ScheduleCreateTransaction
SetAdminKey Sets an optional Hiero key which can be used to sign a ScheduleDelete and remove the schedule
func (*ScheduleCreateTransaction) SetExpirationTime ¶
func (tx *ScheduleCreateTransaction) SetExpirationTime(time time.Time) *ScheduleCreateTransaction
SetExpirationTime Sets an optional timestamp for specifying when the transaction should be evaluated for execution and then expire. Defaults to 30 minutes after the transaction's consensus timestamp.
func (*ScheduleCreateTransaction) SetPayerAccountID ¶
func (tx *ScheduleCreateTransaction) SetPayerAccountID(payerAccountID AccountID) *ScheduleCreateTransaction
SetPayerAccountID Sets an optional id of the account to be charged the service fee for the scheduled transaction at the consensus time that it executes (if ever); defaults to the ScheduleCreate payer if not given
func (*ScheduleCreateTransaction) SetScheduleMemo ¶
func (tx *ScheduleCreateTransaction) SetScheduleMemo(memo string) *ScheduleCreateTransaction
SetScheduleMemo Sets an optional memo with a UTF-8 encoding of no more than 100 bytes which does not contain the zero byte.
func (*ScheduleCreateTransaction) SetScheduledTransaction ¶
func (tx *ScheduleCreateTransaction) SetScheduledTransaction(scheduledTx TransactionInterface) (*ScheduleCreateTransaction, error)
SetScheduledTransaction Sets the scheduled transaction
func (*ScheduleCreateTransaction) SetWaitForExpiry ¶
func (tx *ScheduleCreateTransaction) SetWaitForExpiry(wait bool) *ScheduleCreateTransaction
SetWaitForExpiry When set to true, the transaction will be evaluated for execution at expiration_time instead of when all required signatures are received. When set to false, the transaction will execute immediately after sufficient signatures are received to sign the contained transaction. During the initial ScheduleCreate transaction or via ScheduleSign transactions. Defaults to false.
type ScheduleDeleteTransaction ¶
type ScheduleDeleteTransaction struct { *Transaction[*ScheduleDeleteTransaction] // contains filtered or unexported fields }
ScheduleDeleteTransaction 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.
func NewScheduleDeleteTransaction ¶
func NewScheduleDeleteTransaction() *ScheduleDeleteTransaction
NewScheduleDeleteTransaction creates ScheduleDeleteTransaction which 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.
func (ScheduleDeleteTransaction) GetNodeAccountIDs ¶
func (e ScheduleDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ScheduleDeleteTransaction) GetScheduleID ¶
func (tx *ScheduleDeleteTransaction) GetScheduleID() ScheduleID
func (*ScheduleDeleteTransaction) SetScheduleID ¶
func (tx *ScheduleDeleteTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleDeleteTransaction
SetScheduleID Sets the ScheduleID of the scheduled transaction to be deleted
type ScheduleID ¶
type ScheduleID struct { Shard uint64 Realm uint64 Schedule uint64 // contains filtered or unexported fields }
ScheduleID is the ID for a Hiero account
func ScheduleIDFromString ¶
func ScheduleIDFromString(data string) (ScheduleID, error)
ScheduleIDFromString constructs an ScheduleID from a string formatted as `Shard.Realm.Account` (for example "0.0.3")
func (ScheduleID) String ¶
func (id ScheduleID) String() string
String returns the string representation of an ScheduleID in `Shard.Realm.Account` (for example "0.0.3")
func (ScheduleID) ToStringWithChecksum ¶
func (id ScheduleID) ToStringWithChecksum(client Client) (string, error)
ToStringWithChecksum returns the string representation of an ScheduleID in `Shard.Realm.Account-checksum` (for example "0.0.3-laujm")
func (*ScheduleID) UnmarshalJSON ¶
func (id *ScheduleID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the encoding.JSON interface.
func (*ScheduleID) Validate ¶
func (id *ScheduleID) Validate(client *Client) error
Deprecated - use ValidateChecksum instead
func (*ScheduleID) ValidateChecksum ¶
func (id *ScheduleID) ValidateChecksum(client *Client) error
ValidateChecksum validates the checksum of the account ID
type ScheduleInfo ¶
type ScheduleInfo struct { ScheduleID ScheduleID CreatorAccountID AccountID PayerAccountID AccountID ExecutedAt *time.Time DeletedAt *time.Time ExpirationTime time.Time Signatories *KeyList // Deprecated: Use ScheduleInfo.Signatories instead Signers *KeyList AdminKey Key Memo string ScheduledTransactionID *TransactionID LedgerID LedgerID WaitForExpiry bool // contains filtered or unexported fields }
func (*ScheduleInfo) GetScheduledTransaction ¶
func (scheduleInfo *ScheduleInfo) GetScheduledTransaction() (TransactionInterface, error)
GetScheduledTransaction returns the scheduled transaction associated with this schedule
type ScheduleInfoQuery ¶
type ScheduleInfoQuery struct { Query // contains filtered or unexported fields }
ScheduleInfoQuery Gets information about a schedule in the network's action queue.
func NewScheduleInfoQuery ¶
func NewScheduleInfoQuery() *ScheduleInfoQuery
NewScheduleInfoQuery creates ScheduleInfoQuery which gets information about a schedule in the network's action queue.
func (*ScheduleInfoQuery) Execute ¶
func (q *ScheduleInfoQuery) Execute(client *Client) (ScheduleInfo, error)
Execute executes the Query with the provided client
func (*ScheduleInfoQuery) GetCost ¶
func (q *ScheduleInfoQuery) GetCost(client *Client) (Hbar, error)
func (*ScheduleInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*ScheduleInfoQuery) GetLogLevel ¶
func (e *ScheduleInfoQuery) GetLogLevel() *LogLevel
func (*ScheduleInfoQuery) GetMaxBackoff ¶
func (*ScheduleInfoQuery) GetMaxRetry ¶
func (e *ScheduleInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*ScheduleInfoQuery) GetMinBackoff ¶
func (*ScheduleInfoQuery) GetNodeAccountIDs ¶
func (e *ScheduleInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ScheduleInfoQuery) GetScheduleID ¶
func (q *ScheduleInfoQuery) GetScheduleID() ScheduleID
GetScheduleID returns the id of the schedule to interrogate
func (*ScheduleInfoQuery) SetGrpcDeadline ¶
func (q *ScheduleInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ScheduleInfoQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ScheduleInfoQuery) SetLogLevel ¶
func (q *ScheduleInfoQuery) SetLogLevel(level LogLevel) *ScheduleInfoQuery
func (*ScheduleInfoQuery) SetMaxBackoff ¶
func (q *ScheduleInfoQuery) SetMaxBackoff(max time.Duration) *ScheduleInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*ScheduleInfoQuery) SetMaxQueryPayment ¶
func (q *ScheduleInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ScheduleInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ScheduleInfoQuery) SetMaxRetry ¶
func (q *ScheduleInfoQuery) SetMaxRetry(count int) *ScheduleInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ScheduleInfoQuery) SetMinBackoff ¶
func (q *ScheduleInfoQuery) SetMinBackoff(min time.Duration) *ScheduleInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ScheduleInfoQuery) SetNodeAccountIDs ¶
func (q *ScheduleInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ScheduleInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this ScheduleInfoQuery.
func (*ScheduleInfoQuery) SetPaymentTransactionID ¶
func (q *ScheduleInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ScheduleInfoQuery
func (*ScheduleInfoQuery) SetQueryPayment ¶
func (q *ScheduleInfoQuery) SetQueryPayment(paymentAmount Hbar) *ScheduleInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*ScheduleInfoQuery) SetScheduleID ¶
func (q *ScheduleInfoQuery) SetScheduleID(scheduleID ScheduleID) *ScheduleInfoQuery
SetScheduleID Sets the id of the schedule to interrogate
type ScheduleSignTransaction ¶
type ScheduleSignTransaction struct { *Transaction[*ScheduleSignTransaction] // contains filtered or unexported fields }
ScheduleSignTransaction Adds zero or more signing keys to a schedule. If Long Term Scheduled Transactions are enabled and wait for expiry was set to true on the ScheduleCreate then the transaction will always wait till it's `expiration_time` to execute. Otherwise, if the resulting set of signing keys satisfy the scheduled transaction's signing requirements, it will be executed immediately after the triggering ScheduleSign. Upon SUCCESS, the receipt includes the scheduledTransactionID to use to query for the record of the scheduled transaction's execution (if it occurs).
func NewScheduleSignTransaction ¶
func NewScheduleSignTransaction() *ScheduleSignTransaction
NewScheduleSignTransaction creates ScheduleSignTransaction which adds zero or more signing keys to a schedule. If Long Term Scheduled Transactions are enabled and wait for expiry was set to true on the ScheduleCreate then the transaction will always wait till it's `expiration_time` to execute. Otherwise, if the resulting set of signing keys satisfy the scheduled transaction's signing requirements, it will be executed immediately after the triggering ScheduleSign. Upon SUCCESS, the receipt includes the scheduledTransactionID to use to query for the record of the scheduled transaction's execution (if it occurs).
func (ScheduleSignTransaction) GetNodeAccountIDs ¶
func (e ScheduleSignTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*ScheduleSignTransaction) GetScheduleID ¶
func (tx *ScheduleSignTransaction) GetScheduleID() ScheduleID
GetScheduleID returns the id of the schedule to add signing keys to
func (*ScheduleSignTransaction) SetScheduleID ¶
func (tx *ScheduleSignTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleSignTransaction
SetScheduleID Sets the id of the schedule to add signing keys to
type SemanticVersion ¶
type SignableNodeTransactionBodyBytes ¶ added in v2.63.0
type SignableNodeTransactionBodyBytes struct { NodeID AccountID Body []byte TransactionID TransactionID }
type StakingInfo ¶
type StakingInfo struct { DeclineStakingReward bool StakePeriodStart *time.Time PendingReward int64 PendingHbarReward Hbar StakedToMe Hbar StakedAccountID *AccountID StakedNodeID *int64 }
func StakingInfoFromBytes ¶
func StakingInfoFromBytes(data []byte) (StakingInfo, error)
StakingInfoFromBytes returns a StakingInfo object from a raw byte array
func (*StakingInfo) ToBytes ¶
func (stakingInfo *StakingInfo) ToBytes() []byte
ToBytes returns the byte representation of the StakingInfo
type Status ¶
type Status uint32
const ( StatusOk Status = 0 StatusInvalidTransaction Status = 1 StatusPayerAccountNotFound Status = 2 StatusInvalidNodeAccount Status = 3 StatusTransactionExpired Status = 4 StatusInvalidTransactionStart Status = 5 StatusInvalidTransactionDuration Status = 6 StatusInvalidSignature Status = 7 StatusMemoTooLong Status = 8 StatusInsufficientTxFee Status = 9 StatusInsufficientPayerBalance Status = 10 StatusDuplicateTransaction Status = 11 StatusBusy Status = 12 StatusNotSupported Status = 13 StatusInvalidFileID Status = 14 StatusInvalidAccountID Status = 15 StatusInvalidContractID Status = 16 StatusInvalidTransactionID Status = 17 StatusReceiptNotFound Status = 18 StatusRecordNotFound Status = 19 StatusInvalidSolidityID Status = 20 StatusUnknown Status = 21 StatusSuccess Status = 22 StatusFailInvalid Status = 23 StatusFailFee Status = 24 StatusFailBalance Status = 25 StatusKeyRequired Status = 26 StatusBadEncoding Status = 27 StatusInsufficientAccountBalance Status = 28 StatusInvalidSolidityAddress Status = 29 StatusInsufficientGas Status = 30 StatusContractSizeLimitExceeded Status = 31 StatusLocalCallModificationException Status = 32 StatusContractRevertExecuted Status = 33 StatusContractExecutionException Status = 34 StatusInvalidReceivingNodeAccount Status = 35 StatusMissingQueryHeader Status = 36 StatusAccountUpdateFailed Status = 37 StatusInvalidKeyEncoding Status = 38 StatusNullSolidityAddress Status = 39 StatusContractUpdateFailed Status = 40 StatusInvalidQueryHeader Status = 41 StatusInvalidFeeSubmitted Status = 42 StatusInvalidPayerSignature Status = 43 StatusKeyNotProvided Status = 44 StatusInvalidExpirationTime Status = 45 StatusNoWaclKey Status = 46 StatusFileContentEmpty Status = 47 StatusInvalidAccountAmounts Status = 48 StatusEmptyTransactionBody Status = 49 StatusInvalidTransactionBody Status = 50 StatusInvalidSignatureTypeMismatchingKey Status = 51 StatusInvalidSignatureCountMismatchingKey Status = 52 StatusEmptyLiveHashBody Status = 53 StatusEmptyLiveHash Status = 54 StatusEmptyLiveHashKeys Status = 55 StatusInvalidLiveHashSize Status = 56 StatusEmptyQueryBody Status = 57 StatusEmptyLiveHashQuery Status = 58 StatusLiveHashNotFound Status = 59 StatusAccountIDDoesNotExist Status = 60 StatusLiveHashAlreadyExists Status = 61 StatusInvalidFileWacl Status = 62 StatusSerializationFailed Status = 63 StatusTransactionOversize Status = 64 StatusTransactionTooManyLayers Status = 65 StatusContractDeleted Status = 66 StatusPlatformNotActive Status = 67 StatusKeyPrefixMismatch Status = 68 StatusPlatformTransactionNotCreated Status = 69 StatusInvalidRenewalPeriod Status = 70 StatusInvalidPayerAccountID Status = 71 StatusAccountDeleted Status = 72 StatusFileDeleted Status = 73 StatusAccountRepeatedInAccountAmounts Status = 74 StatusSettingNegativeAccountBalance Status = 75 StatusObtainerRequired Status = 76 StatusObtainerSameContractID Status = 77 StatusObtainerDoesNotExist Status = 78 StatusModifyingImmutableContract Status = 79 StatusFileSystemException Status = 80 StatusAutorenewDurationNotInRange Status = 81 StatusErrorDecodingBytestring Status = 82 StatusContractFileEmpty Status = 83 StatusContractBytecodeEmpty Status = 84 StatusInvalidInitialBalance Status = 85 StatusInvalidReceiveRecordThreshold Status = 86 StatusInvalidSendRecordThreshold Status = 87 StatusAccountIsNotGenesisAccount Status = 88 StatusInvalidFreezeTransactionBody Status = 90 StatusFreezeTransactionBodyNotFound Status = 91 StatusTransferListSizeLimitExceeded Status = 92 StatusResultSizeLimitExceeded Status = 93 StatusNotSpecialAccount Status = 94 StatusContractNegativeGas Status = 95 StatusContractNegativeValue Status = 96 StatusInvalidFeeFile Status = 97 StatusInvalidExchangeRateFile Status = 98 StatusInsufficientLocalCallGas Status = 99 StatusEntityNotAllowedToDelete Status = 100 StatusAuthorizationFailed Status = 101 StatusFileUploadedProtoInvalid Status = 102 StatusFileUploadedProtoNotSavedToDisk Status = 103 StatusFeeScheduleFilePartUploaded Status = 104 StatusExchangeRateChangeLimitExceeded Status = 105 StatusMaxContractStorageExceeded Status = 106 StatusTransferAccountSameAsDeleteAccount Status = 107 StatusTotalLedgerBalanceInvalid Status = 108 StatusExpirationReductionNotAllowed Status = 110 StatusMaxGasLimitExceeded Status = 111 StatusMaxFileSizeExceeded Status = 112 StatusReceiverSigRequired Status = 113 StatusInvalidTopicID Status = 150 StatusInvalidAdminKey Status = 155 StatusInvalidSubmitKey Status = 156 StatusInvalidTopicMessage Status = 158 StatusInvalidAutorenewAccount Status = 159 StatusAutorenewAccountNotAllowed Status = 160 StatusTopicExpired Status = 162 StatusInvalidChunkNumber Status = 163 StatusInvalidChunkTransactionID Status = 164 StatusAccountFrozenForToken Status = 165 StatusTokensPerAccountLimitExceeded Status = 166 StatusInvalidTokenID Status = 167 StatusInvalidTokenDecimals Status = 168 StatusInvalidTokenInitialSupply Status = 169 StatusInvalidTreasuryAccountForToken Status = 170 StatusInvalidTokenSymbol Status = 171 StatusTokenHasNoFreezeKey Status = 172 StatusTransfersNotZeroSumForToken Status = 173 StatusMissingTokenSymbol Status = 174 StatusTokenSymbolTooLong Status = 175 StatusAccountKycNotGrantedForToken Status = 176 StatusTokenHasNoKycKey Status = 177 StatusInsufficientTokenBalance Status = 178 StatusTokenWasDeleted Status = 179 StatusTokenHasNoSupplyKey Status = 180 StatusTokenHasNoWipeKey Status = 181 StatusInvalidTokenMintAmount Status = 182 StatusInvalidTokenBurnAmount Status = 183 StatusTokenNotAssociatedToAccount Status = 184 StatusCannotWipeTokenTreasuryAccount Status = 185 StatusInvalidKycKey Status = 186 StatusInvalidWipeKey Status = 187 StatusInvalidFreezeKey Status = 188 StatusInvalidSupplyKey Status = 189 StatusMissingTokenName Status = 190 StatusTokenNameTooLong Status = 191 StatusInvalidWipingAmount Status = 192 StatusTokenIsImmutable Status = 193 StatusTokenAlreadyAssociatedToAccount Status = 194 StatusTransactionRequiresZeroTokenBalances Status = 195 StatusAccountIsTreasury Status = 196 StatusTokenIDRepeatedInTokenList Status = 197 StatusTokenTransferListSizeLimitExceeded Status = 198 StatusEmptyTokenTransferBody Status = 199 StatusEmptyTokenTransferAccountAmounts Status = 200 StatusInvalidScheduleID Status = 201 StatusScheduleIsImmutable Status = 202 StatusInvalidSchedulePayerID Status = 203 StatusInvalidScheduleAccountID Status = 204 StatusNoNewValidSignatures Status = 205 StatusUnresolvableRequiredSigners Status = 206 StatusScheduledTransactionNotInWhitelist Status = 207 StatusSomeSignaturesWereInvalid Status = 208 StatusTransactionIDFieldNotAllowed Status = 209 StatusIdenticalScheduleAlreadyCreated Status = 210 StatusInvalidZeroByteInString Status = 211 StatusScheduleAlreadyDeleted Status = 212 StatusScheduleAlreadyExecuted Status = 213 StatusMessageSizeTooLarge Status = 214 StatusOperationRepeatedInBucketGroups Status = 215 StatusBucketCapacityOverflow Status = 216 StatusNodeCapacityNotSufficientForOperation Status = 217 StatusBucketHasNoThrottleGroups Status = 218 StatusThrottleGroupHasZeroOpsPerSec Status = 219 StatusSuccessButMissingExpectedOperation Status = 220 StatusUnparseableThrottleDefinitions Status = 221 StatusInvalidThrottleDefinitions Status = 222 StatusAccountExpiredAndPendingRemoval Status = 223 StatusInvalidTokenMaxSupply Status = 224 StatusInvalidTokenNftSerialNumber Status = 225 StatusInvalidNftID Status = 226 StatusMetadataTooLong Status = 227 StatusBatchSizeLimitExceeded Status = 228 StatusInvalidQueryRange Status = 229 StatusFractionDividesByZero Status = 230 StatusInsufficientPayerBalanceForCustomFee Status = 231 StatusCustomFeesListTooLong Status = 232 StatusInvalidCustomFeeCollector Status = 233 StatusInvalidTokenIDInCustomFees Status = 234 StatusTokenNotAssociatedToFeeCollector Status = 235 StatusTokenMaxSupplyReached Status = 236 StatusSenderDoesNotOwnNftSerialNo Status = 237 StatusCustomFeeNotFullySpecified Status = 238 StatusCustomFeeMustBePositive Status = 239 StatusTokenHasNoFeeScheduleKey Status = 240 StatusCustomFeeOutsideNumericRange Status = 241 StatusRoyaltyFractionCannotExceedOne Status = 242 StatusFractionalFeeMaxAmountLessThanMinAmount Status = 243 StatusCustomScheduleAlreadyHasNoFees Status = 244 StatusCustomFeeDenominationMustBeFungibleCommon Status = 245 StatusCustomFractionalFeeOnlyAllowedForFungibleCommon Status = 246 StatusInvalidCustomFeeScheduleKey Status = 247 StatusInvalidTokenMintMetadata Status = 248 StatusInvalidTokenBurnMetadata Status = 249 StatusCurrentTreasuryStillOwnsNfts Status = 250 StatusAccountStillOwnsNfts Status = 251 StatusTreasuryMustOwnBurnedNft Status = 252 StatusAccountDoesNotOwnWipedNft Status = 253 StatusAccountAmountTransfersOnlyAllowedForFungibleCommon Status = 254 StatusMaxNftsInPriceRegimeHaveBeenMinted Status = 255 StatusPayerAccountDeleted Status = 256 StatusCustomFeeChargingExceededMaxRecursionDepth Status = 257 StatusCustomFeeChargingExceededMaxAccountAmounts Status = 258 StatusInsufficientSenderAccountBalanceForCustomFee Status = 259 StatusSerialNumberLimitReached Status = 260 StatusCustomRoyaltyFeeOnlyAllowedForNonFungibleUnique Status = 261 StatusNoRemainingAutomaticAssociations Status = 262 StatusExistingAutomaticAssociationsExceedGivenLimit Status = 263 StatusRequestedNumAutomaticAssociationsExceedsAssociationLimit Status = 264 StatusTokenIsPaused Status = 265 StatusTokenHasNoPauseKey Status = 266 StatusInvalidPauseKey Status = 267 StatusFreezeUpdateFileDoesNotExist Status = 268 StatusFreezeUpdateFileHashDoesNotMatch Status = 269 StatusNoUpgradeHasBeenPrepared Status = 270 StatusNoFreezeIsScheduled Status = 271 StatusUpdateFileHashChangedSincePrepareUpgrade Status = 272 StatusFreezeStartTimeMustBeFuture Status = 273 StatusPreparedUpdateFileIsImmutable Status = 274 StatusFreezeAlreadyScheduled Status = 275 StatusFreezeUpgradeInProgress Status = 276 StatusUpdateFileIDDoesNotMatchPrepared Status = 277 StatusUpdateFileHashDoesNotMatchPrepared Status = 278 StatusConsensusGasExhausted Status = 279 StatusRevertedSuccess Status = 280 StatusMaxStorageInPriceRegimeHasBeenUsed Status = 281 StatusInvalidAliasKey Status = 282 StatusUnexpectedTokenDecimals Status = 283 StatusInvalidProxyAccountID Status = 284 StatusInvalidTransferAccountID Status = 285 StatusInvalidFeeCollectorAccountID Status = 286 StatusAliasIsImmutable Status = 287 StatusSpenderAccountSameAsOwner Status = 288 StatusAmountExceedsTokenMaxSupply Status = 289 StatusNegativeAllowanceAmount Status = 290 StatusCannotApproveForAllFungibleCommon Status = 291 StatusSpenderDoesNotHaveAllowance Status = 292 StatusAmountExceedsAllowance Status = 293 StatusMaxAllowancesExceeded Status = 294 StatusEmptyAllowances Status = 295 StatusSpenderAccountRepeatedInAllowance Status = 296 StatusRepeatedSerialNumsInNftAllowances Status = 297 StatusFungibleTokenInNftAllowances Status = 298 StatusNftInFungibleTokenAllowances Status = 299 StatusInvalidAllowanceOwnerID Status = 300 StatusInvalidAllowanceSpenderID Status = 301 StatusRepeatedAllowancesToDelete Status = 302 StatusInvalidDelegatingSpender Status = 303 StatusDelegatingSpenderCannotGrantApproveForAll Status = 304 StatusDelegatingSpenderDoesNotHaveApproveForAll Status = 305 StatusScheduleExpirationTimeTooFarInFuture Status = 306 StatusScheduleExpirationTimeMustBeHigherThanConsensusTime Status = 307 StatusScheduleFutureThrottleExceeded Status = 308 StatusScheduleFutureGasLimitExceeded Status = 309 StatusInvalidEthereumTransaction Status = 310 StatusWrongChanID Status = 311 StatusWrongNonce Status = 312 StatusAccessListUnsupported Status = 313 StatusSchedulePendingExpiration Status = 314 StatusContractIsTokenTreasury Status = 315 StatusContractHasNonZeroTokenBalances Status = 316 StatusContractExpiredAndPendingRemoval Status = 317 StatusContractHasNoAutoRenewAccount Status = 318 StatusPermanentRemovalRequiresSystemInitiation Status = 319 StatusProxyAccountIDFieldIsDeprecated Status = 320 StatusSelfStakingIsNotAllowed Status = 321 StatusInvalidStakingID Status = 322 StatusStakingNotEnabled Status = 323 StatusInvalidRandomGenerateRange Status = 324 StatusMaxEntitiesInPriceRegimeHaveBeenCreated Status = 325 StatusInvalidFullPrefixSignatureForPrecompile Status = 326 StatusInsufficientBalancesForStorageRent Status = 327 StatusMaxChildRecordsExceeded Status = 328 StatusInsufficientBalancesForRenewalFees Status = 329 StatusTransactionHasUnknownFields Status = 330 StatusAccountIsImmutable Status = 331 StatusAliasAlreadyAssigned Status = 332 StatusInvalidMetadataKey Status = 333 StatusTokenHasNoMetadataKey Status = 334 StatusMissingTokenMetadata Status = 335 StatusMissingSerialNumbers Status = 336 StatusTokenHasNoAdminKey Status = 337 StatusNodeDeleted Status = 338 StatusInvalidNodeId Status = 339 StatusInvalidGossipEndpoint Status = 340 StatusInvalidNodeAccountId Status = 341 StatusInvalidNodeDescription Status = 342 StatusInvalidServiceEndpoint Status = 343 StatusInvalidGossipCaCertificate Status = 344 StatusInvalidGrpcCertificate Status = 345 StatusInvalidMaxAutoAssociations Status = 346 StatusMaxNodesCreated Status = 347 StatusIpFQDNCannotBeSetForSameEndpoint Status = 348 StatusGossipEndpointCannotHaveFQDN Status = 349 StatusFQDNSizeTooLarge Status = 350 StatusInvalidEndpoint Status = 351 StatusGossipEndpointsExceededLimit Status = 352 StatusTokenReferenceRepeated Status = 353 StatusInvalidOwnerID Status = 354 StatusTokenReferenceListSizeLimitExceeded Status = 355 StatusServiceEndpointsExceededLimit Status = 356 StatusInvalidIPV4Address Status = 357 StatusEmptyTokenReferenceList Status = 358 StatusUpdateNodeAccountNotAllowed Status = 359 StatusTokenHasNoMetadataOrSupplyKey Status = 360 StatusEmptyPendingAirdropIdList Status = 361 StatusPendingAirdropIdRepeated Status = 362 StatusMaxPendingAirdropIdExceeded Status = 363 StatusPendingNftAirdropAlreadyExists Status = 364 StatusAccountHasPendingAirdrops Status = 365 StatusThrottledAtConsensus Status = 366 StatusInvalidPendingAirdropId Status = 367 StatusTokenAirdropWithFallbackRoyalty Status = 368 StatusInvalidTokenIdPendingAirdrop Status = 369 StatusScheduleExpiryIsBusy Status = 370 StatusInvalidGrpcCertificateHash Status = 371 StatusMissingExpiryTime Status = 372 NO_SCHEDULING_ALLOWED_AFTER_SCHEDULED_RECURSION Status = 373 RECURSIVE_SCHEDULING_LIMIT_REACHED Status = 374 WAITING_FOR_LEDGER_ID Status = 375 MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST_EXCEEDED Status = 376 FEE_EXEMPT_KEY_LIST_CONTAINS_DUPLICATED_KEYS Status = 377 INVALID_KEY_IN_FEE_EXEMPT_KEY_LIST Status = 378 INVALID_FEE_SCHEDULE_KEY Status = 379 FEE_SCHEDULE_KEY_CANNOT_BE_UPDATED Status = 380 FEE_SCHEDULE_KEY_NOT_SET Status = 381 MAX_CUSTOM_FEE_LIMIT_EXCEEDED Status = 382 NO_VALID_MAX_CUSTOM_FEE Status = 383 INVALID_MAX_CUSTOM_FEES Status = 384 DUPLICATE_DENOMINATION_IN_MAX_CUSTOM_FEE_LIST Status = 385 DUPLICATE_ACCOUNT_ID_IN_MAX_CUSTOM_FEE_LIST Status = 386 MAX_CUSTOM_FEES_IS_NOT_SUPPORTED Status = 387 BATCH_LIST_EMPTY Status = 388 BATCH_LIST_CONTAINS_DUPLICATES Status = 389 BATCH_TRANSACTION_IN_BLACKLIST Status = 390 INNER_TRANSACTION_FAILED Status = 391 MISSING_BATCH_KEY Status = 392 BATCH_KEY_SET_ON_NON_INNER_TRANSACTION Status = 393 INVALID_BATCH_KEY Status = 394 SCHEDULE_EXPIRY_NOT_CONFIGURABLE Status = 395 CREATING_SYSTEM_ENTITIES Status = 396 THROTTLE_GROUP_LCM_OVERFLOW Status = 397 AIRDROP_CONTAINS_MULTIPLE_SENDERS_FOR_A_TOKEN Status = 398 GRPC_WEB_PROXY_NOT_SUPPORTED Status = 399 NFT_TRANSFERS_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE Status = 400 )
type StorageChange ¶
func StorageChangeFromBytes ¶
func StorageChangeFromBytes(data []byte) (StorageChange, error)
StorageChangeFromBytes returns a StorageChange from a byte array
func (*StorageChange) ToBytes ¶
func (storageChange *StorageChange) ToBytes() []byte
ToBytes returns the byte representation of the StorageChange
type SubscriptionHandle ¶
type SubscriptionHandle struct {
// contains filtered or unexported fields
}
func (SubscriptionHandle) Unsubscribe ¶
func (handle SubscriptionHandle) Unsubscribe()
Unsubscribe removes the subscription from the client
type SystemDeleteTransaction
deprecated
type SystemDeleteTransaction struct { *Transaction[*SystemDeleteTransaction] // contains filtered or unexported fields }
Deprecated: Do not use. Delete a file or smart contract - can only be done with a Hiero admin. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hiero admin. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here.
func NewSystemDeleteTransaction
deprecated
func NewSystemDeleteTransaction() *SystemDeleteTransaction
Deprecated: Do not use. * Delete a smart contract, as a system-initiated deletion, this SHALL NOT transfer balances. <blockquote> This call is an administrative function of the Hedera network, and SHALL require network administration authorization.<br/> This transaction MUST be signed by one of the network administration accounts (typically `0.0.2` through `0.0.59`, as defined in the `api-permission.properties` file). </blockquote> If this call succeeds then all subsequent calls to that smart contract SHALL fail.<br/>
func (*SystemDeleteTransaction) GetContractID ¶
func (tx *SystemDeleteTransaction) GetContractID() ContractID
GetContractID returns the ContractID of the contract which will be deleted.
func (*SystemDeleteTransaction) GetExpirationTime ¶
func (tx *SystemDeleteTransaction) GetExpirationTime() int64
GetExpirationTime returns the time at which this transaction will expire.
func (*SystemDeleteTransaction) GetFileID ¶
func (tx *SystemDeleteTransaction) GetFileID() FileID
GetFileID returns the FileID of the file which will be deleted.
func (SystemDeleteTransaction) GetNodeAccountIDs ¶
func (e SystemDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*SystemDeleteTransaction) SetContractID ¶
func (tx *SystemDeleteTransaction) SetContractID(contractID ContractID) *SystemDeleteTransaction
SetContractID sets the ContractID of the contract which will be deleted.
func (*SystemDeleteTransaction) SetExpirationTime ¶
func (tx *SystemDeleteTransaction) SetExpirationTime(expiration time.Time) *SystemDeleteTransaction
SetExpirationTime sets the time at which this transaction will expire.
func (*SystemDeleteTransaction) SetFileID ¶
func (tx *SystemDeleteTransaction) SetFileID(fileID FileID) *SystemDeleteTransaction
SetFileID sets the FileID of the file which will be deleted.
type SystemUndeleteTransaction
deprecated
type SystemUndeleteTransaction struct { *Transaction[*SystemUndeleteTransaction] // contains filtered or unexported fields }
Deprecated: Do not use. Undelete a file or smart contract that was deleted by AdminDelete. Can only be done with a Hiero admin.
func NewSystemUndeleteTransaction
deprecated
func NewSystemUndeleteTransaction() *SystemUndeleteTransaction
Deprecated: Do not use. * Un-Delete a smart contract, returning it (mostly) to its state prior to deletion. <p> The contract to be restored MUST have been deleted via `systemDelete`. If the contract was deleted via `deleteContract`, it SHALL NOT be recoverable. <blockquote> This call is an administrative function of the Hedera network, and SHALL require network administration authorization.<br/> This transaction MUST be signed by one of the network administration accounts (typically `0.0.2` through `0.0.59`, as defined in the `api-permission.properties` file). </blockquote> If this call succeeds then subsequent calls to that smart contract MAY succeed.<br/>
func (*SystemUndeleteTransaction) GetContractID ¶
func (tx *SystemUndeleteTransaction) GetContractID() ContractID
GetContractID returns the ContractID of the contract whose deletion is being undone.
func (*SystemUndeleteTransaction) GetFileID ¶
func (tx *SystemUndeleteTransaction) GetFileID() FileID
GetFileID returns the FileID of the file whose deletion is being undone.
func (SystemUndeleteTransaction) GetNodeAccountIDs ¶
func (e SystemUndeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*SystemUndeleteTransaction) SetContractID ¶
func (tx *SystemUndeleteTransaction) SetContractID(contractID ContractID) *SystemUndeleteTransaction
SetContractID sets the ContractID of the contract whose deletion is being undone.
func (*SystemUndeleteTransaction) SetFileID ¶
func (tx *SystemUndeleteTransaction) SetFileID(fileID FileID) *SystemUndeleteTransaction
SetFileID sets the FileID of the file whose deletion is being undone.
type TokenAirdropTransaction ¶
type TokenAirdropTransaction struct { *Transaction[*TokenAirdropTransaction] // contains filtered or unexported fields }
func NewTokenAirdropTransaction ¶
func NewTokenAirdropTransaction() *TokenAirdropTransaction
func (*TokenAirdropTransaction) AddApprovedNftTransfer ¶
func (tx *TokenAirdropTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TokenAirdropTransaction
AddApprovedNftTransfer adds an approved nft transfer
func (*TokenAirdropTransaction) AddApprovedTokenTransfer ¶
func (tx *TokenAirdropTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TokenAirdropTransaction
AddApprovedTokenTransfer adds an approved token transfer
func (*TokenAirdropTransaction) AddApprovedTokenTransferWithDecimals ¶
func (tx *TokenAirdropTransaction) AddApprovedTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32, approve bool) *TokenAirdropTransaction
AddApprovedTokenTransferWithDecimals adds an approved token transfer with decimals
func (*TokenAirdropTransaction) AddNftTransfer ¶
func (tx *TokenAirdropTransaction) AddNftTransfer(nftID NftID, sender AccountID, receiver AccountID) *TokenAirdropTransaction
AddNftTransfer Sets the desired nft token unit balance adjustments Applicable to tokens of type NON_FUNGIBLE_UNIQUE.
func (*TokenAirdropTransaction) AddTokenTransfer ¶
func (tx *TokenAirdropTransaction) AddTokenTransfer(tokenID TokenID, accountID AccountID, value int64) *TokenAirdropTransaction
AddTokenTransfer Sets the desired token unit balance adjustments Applicable to tokens of type FUNGIBLE_COMMON.
func (*TokenAirdropTransaction) AddTokenTransferWithDecimals ¶
func (tx *TokenAirdropTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TokenAirdropTransaction
AddTokenTransferWithDecimals Sets the desired token unit balance adjustments with decimals
func (*TokenAirdropTransaction) GetNftTransfers ¶
func (tx *TokenAirdropTransaction) GetNftTransfers() map[TokenID][]_TokenNftTransfer
GetNftTransfers returns the nft transfers
func (TokenAirdropTransaction) GetNodeAccountIDs ¶
func (e TokenAirdropTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenAirdropTransaction) GetTokenIDDecimals ¶
func (tx *TokenAirdropTransaction) GetTokenIDDecimals() map[TokenID]uint32
GetTokenIDDecimals returns the token decimals
func (*TokenAirdropTransaction) GetTokenTransfers ¶
func (tx *TokenAirdropTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer
GetTokenTransfers returns the token transfers
func (*TokenAirdropTransaction) SetNftTransferApproval ¶
func (tx *TokenAirdropTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TokenAirdropTransaction
SetNftTransferApproval Sets the desired nft token unit balance adjustments
func (*TokenAirdropTransaction) SetTokenTransferApproval ¶
func (tx *TokenAirdropTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TokenAirdropTransaction
SetTokenTransferApproval Sets the desired token unit balance adjustments
type TokenAllowance ¶
type TokenAllowance struct { TokenID *TokenID SpenderAccountID *AccountID OwnerAccountID *AccountID Amount int64 }
An approved allowance of token transfers for a spender.
func NewTokenAllowance ¶
func NewTokenAllowance(tokenID TokenID, owner AccountID, spender AccountID, amount int64) TokenAllowance
NewTokenAllowance creates a TokenAllowance with the given tokenID, owner, spender, and amount
func (*TokenAllowance) String ¶
func (approval *TokenAllowance) String() string
String returns a string representation of the TokenAllowance
type TokenAssociateTransaction ¶
type TokenAssociateTransaction struct { *Transaction[*TokenAssociateTransaction] // contains filtered or unexported fields }
TokenAssociateTransaction Associates the provided account with the provided tokens. Must be signed by the provided Account's key. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If any of the provided tokens is not found, the transaction will resolve to INVALID_TOKEN_REF. If any of the provided tokens has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an association between the provided account and any of the tokens already exists, the transaction will resolve to TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT. If the provided account's associations count exceed the constraint of maximum token associations per account, the transaction will resolve to TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED. On success, associations between the provided account and tokens are made and the account is ready to interact with the tokens.
func NewTokenAssociateTransaction ¶
func NewTokenAssociateTransaction() *TokenAssociateTransaction
NewTokenAssociateTransaction creates TokenAssociateTransaction which associates the provided account with the provided tokens. Must be signed by the provided Account's key. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If any of the provided tokens is not found, the transaction will resolve to INVALID_TOKEN_REF. If any of the provided tokens has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an association between the provided account and any of the tokens already exists, the transaction will resolve to TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT. If the provided account's associations count exceed the constraint of maximum token associations per account, the transaction will resolve to TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED. On success, associations between the provided account and tokens are made and the account is ready to interact with the tokens.
func (*TokenAssociateTransaction) AddTokenID ¶
func (tx *TokenAssociateTransaction) AddTokenID(id TokenID) *TokenAssociateTransaction
AddTokenID Adds the token to a token list to be associated with the provided account
func (*TokenAssociateTransaction) GetAccountID ¶
func (tx *TokenAssociateTransaction) GetAccountID() AccountID
GetAccountID returns the account to be associated with the provided tokens
func (TokenAssociateTransaction) GetNodeAccountIDs ¶
func (e TokenAssociateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenAssociateTransaction) GetTokenIDs ¶
func (tx *TokenAssociateTransaction) GetTokenIDs() []TokenID
GetTokenIDs returns the tokens to be associated with the provided account
func (*TokenAssociateTransaction) SetAccountID ¶
func (tx *TokenAssociateTransaction) SetAccountID(accountID AccountID) *TokenAssociateTransaction
SetAccountID Sets the account to be associated with the provided tokens
func (*TokenAssociateTransaction) SetTokenIDs ¶
func (tx *TokenAssociateTransaction) SetTokenIDs(ids ...TokenID) *TokenAssociateTransaction
SetTokenIDs Sets the tokens to be associated with the provided account
type TokenAssociation ¶
A token - account association
func TokenAssociationFromBytes ¶
func TokenAssociationFromBytes(data []byte) (TokenAssociation, error)
TokenAssociationFromBytes returns a TokenAssociation from a raw protobuf byte array
func (*TokenAssociation) ToBytes ¶
func (association *TokenAssociation) ToBytes() []byte
ToBytes returns the byte representation of the TokenAssociation
type TokenBalanceMap ¶
type TokenBalanceMap struct {
// contains filtered or unexported fields
}
func (*TokenBalanceMap) Get ¶
func (tokenBalances *TokenBalanceMap) Get(tokenID TokenID) uint64
Get returns the balance of the given tokenID
type TokenBurnTransaction ¶
type TokenBurnTransaction struct { *Transaction[*TokenBurnTransaction] // contains filtered or unexported fields }
TokenBurnTransaction Burns tokens from the Token's treasury Account. If no Supply Key is defined, the transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY. The operation decreases the Total Supply of the Token. Total supply cannot go below zero. The amount provided must be in the lowest denomination possible. Example: Token A has 2 decimals. In order to burn 100 tokens, one must provide amount of 10000. In order to burn 100.55 tokens, one must provide amount of 10055.
func NewTokenBurnTransaction ¶
func NewTokenBurnTransaction() *TokenBurnTransaction
NewTokenBurnTransaction creates TokenBurnTransaction which burns tokens from the Token's treasury Account. If no Supply Key is defined, the transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY. The operation decreases the Total Supply of the Token. Total supply cannot go below zero. The amount provided must be in the lowest denomination possible. Example: Token A has 2 decimals. In order to burn 100 tokens, one must provide amount of 10000. In order to burn 100.55 tokens, one must provide amount of 10055.
func (*TokenBurnTransaction) GetAmmount
deprecated
func (tx *TokenBurnTransaction) GetAmmount() uint64
Deprecated: Use TokenBurnTransaction.GetAmount() instead.
func (*TokenBurnTransaction) GetAmount ¶
func (tx *TokenBurnTransaction) GetAmount() uint64
func (TokenBurnTransaction) GetNodeAccountIDs ¶
func (e TokenBurnTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenBurnTransaction) GetSerialNumbers ¶
func (tx *TokenBurnTransaction) GetSerialNumbers() []int64
GetSerialNumbers returns the list of serial numbers to be burned.
func (*TokenBurnTransaction) GetTokenID ¶
func (tx *TokenBurnTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID for the token which will be burned.
func (*TokenBurnTransaction) SetAmount ¶
func (tx *TokenBurnTransaction) SetAmount(amount uint64) *TokenBurnTransaction
SetAmount Sets the amount to burn from the Treasury Account. Amount must be a positive non-zero number, not bigger than the token balance of the treasury account (0; balance], represented in the lowest denomination.
func (*TokenBurnTransaction) SetSerialNumber ¶
func (tx *TokenBurnTransaction) SetSerialNumber(serial int64) *TokenBurnTransaction
SetSerialNumber Applicable to tokens of type NON_FUNGIBLE_UNIQUE. The list of serial numbers to be burned.
func (*TokenBurnTransaction) SetSerialNumbers ¶
func (tx *TokenBurnTransaction) SetSerialNumbers(serial []int64) *TokenBurnTransaction
SetSerialNumbers sets the list of serial numbers to be burned.
func (*TokenBurnTransaction) SetTokenID ¶
func (tx *TokenBurnTransaction) SetTokenID(tokenID TokenID) *TokenBurnTransaction
SetTokenID Sets the token for which to burn tokens. If token does not exist, transaction results in INVALID_TOKEN_ID
type TokenCancelAirdropTransaction ¶
type TokenCancelAirdropTransaction struct { *Transaction[*TokenCancelAirdropTransaction] // contains filtered or unexported fields }
func NewTokenCancelAirdropTransaction ¶
func NewTokenCancelAirdropTransaction() *TokenCancelAirdropTransaction
func (*TokenCancelAirdropTransaction) AddPendingAirdropId ¶
func (tx *TokenCancelAirdropTransaction) AddPendingAirdropId(id PendingAirdropId) *TokenCancelAirdropTransaction
AddPendingAirdropId adds a pending airdrop ID to this TokenCancelAirdropTransaction.
func (TokenCancelAirdropTransaction) GetNodeAccountIDs ¶
func (e TokenCancelAirdropTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenCancelAirdropTransaction) GetPendingAirdropIds ¶
func (tx *TokenCancelAirdropTransaction) GetPendingAirdropIds() []*PendingAirdropId
GetPendingAirdropIds returns the pending airdrop IDs for this TokenCancelAirdropTransaction.
func (*TokenCancelAirdropTransaction) SetPendingAirdropIds ¶
func (tx *TokenCancelAirdropTransaction) SetPendingAirdropIds(ids []*PendingAirdropId) *TokenCancelAirdropTransaction
SetPendingAirdropIds sets the pending airdrop IDs for this TokenCancelAirdropTransaction.
type TokenClaimAirdropTransaction ¶
type TokenClaimAirdropTransaction struct { *Transaction[*TokenClaimAirdropTransaction] // contains filtered or unexported fields }
func NewTokenClaimAirdropTransaction ¶
func NewTokenClaimAirdropTransaction() *TokenClaimAirdropTransaction
func (*TokenClaimAirdropTransaction) AddPendingAirdropId ¶
func (tx *TokenClaimAirdropTransaction) AddPendingAirdropId(id PendingAirdropId) *TokenClaimAirdropTransaction
AddPendingAirdropId adds a pending airdrop ID to this TokenClaimAirdropTransaction.
func (TokenClaimAirdropTransaction) GetNodeAccountIDs ¶
func (e TokenClaimAirdropTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenClaimAirdropTransaction) GetPendingAirdropIds ¶
func (tx *TokenClaimAirdropTransaction) GetPendingAirdropIds() []*PendingAirdropId
GetPendingAirdropIds returns the pending airdrop IDs for this TokenClaimAirdropTransaction.
func (*TokenClaimAirdropTransaction) SetPendingAirdropIds ¶
func (tx *TokenClaimAirdropTransaction) SetPendingAirdropIds(ids []*PendingAirdropId) *TokenClaimAirdropTransaction
SetPendingAirdropIds sets the pending airdrop IDs for this TokenClaimAirdropTransaction.
type TokenCreateTransaction ¶
type TokenCreateTransaction struct { *Transaction[*TokenCreateTransaction] // contains filtered or unexported fields }
TokenCreateTransaction Create a new token. After the token is created, the Token ID for it is in the receipt. The specified Treasury Account is receiving the initial supply of tokens as-well as the tokens from the Token Mint operation once executed. The balance of the treasury account is decreased when the Token Burn operation is executed.
The initialSupply is the initial supply of the smallest parts of a token (like a tinybar, not an hbar). These are the smallest units of the token which may be transferred.
The supply can change over time. If the total supply at some moment is S parts of tokens, and the token is using D decimals, then S must be less than or equal to 2<sup>63</sup>-1, which is 9,223,372,036,854,775,807. The number of whole tokens (not parts) will be S / 10<sup>D</sup>.
If decimals is 8 or 11, then the number of whole tokens can be at most a few billions or millions, respectively. For example, it could match Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals). It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
Note that a created token is immutable if the adminKey is omitted. No property of an immutable token can ever change, with the sole exception of its expiry. Anyone can pay to extend the expiry time of an immutable token.
A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE, based on its TokenType. If it has been omitted, FUNGIBLE_COMMON type is used.
A token can have either INFINITE or FINITE supply type, based on its TokenType. If it has been omitted, INFINITE type is used.
If a FUNGIBLE TokenType is used, initialSupply should explicitly be set to a non-negative. If not, the transaction will resolve to INVALID_TOKEN_INITIAL_SUPPLY.
If a NON_FUNGIBLE_UNIQUE TokenType is used, initialSupply should explicitly be set to 0. If not, the transaction will resolve to INVALID_TOKEN_INITIAL_SUPPLY.
If an INFINITE TokenSupplyType is used, maxSupply should explicitly be set to 0. If it is not 0, the transaction will resolve to INVALID_TOKEN_MAX_SUPPLY.
If a FINITE TokenSupplyType is used, maxSupply should be explicitly set to a non-negative value. If it is not, the transaction will resolve to INVALID_TOKEN_MAX_SUPPLY.
func NewTokenCreateTransaction ¶
func NewTokenCreateTransaction() *TokenCreateTransaction
NewTokenCreateTransaction creates TokenCreateTransaction which creates a new token. After the token is created, the Token ID for it is in the receipt. The specified Treasury Account is receiving the initial supply of tokens as-well as the tokens from the Token Mint operation once executed. The balance of the treasury account is decreased when the Token Burn operation is executed.
The initialSupply is the initial supply of the smallest parts of a token (like a tinybar, not an hbar). These are the smallest units of the token which may be transferred.
The supply can change over time. If the total supply at some moment is S parts of tokens, and the token is using D decimals, then S must be less than or equal to 2<sup>63</sup>-1, which is 9,223,372,036,854,775,807. The number of whole tokens (not parts) will be S / 10<sup>D</sup>.
If decimals is 8 or 11, then the number of whole tokens can be at most a few billions or millions, respectively. For example, it could match Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals). It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
Note that a created token is immutable if the adminKey is omitted. No property of an immutable token can ever change, with the sole exception of its expiry. Anyone can pay to extend the expiry time of an immutable token.
A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE, based on its TokenType. If it has been omitted, FUNGIBLE_COMMON type is used.
A token can have either INFINITE or FINITE supply type, based on its TokenType. If it has been omitted, INFINITE type is used.
If a FUNGIBLE TokenType is used, initialSupply should explicitly be set to a non-negative. If not, the transaction will resolve to INVALID_TOKEN_INITIAL_SUPPLY.
If a NON_FUNGIBLE_UNIQUE TokenType is used, initialSupply should explicitly be set to 0. If not, the transaction will resolve to INVALID_TOKEN_INITIAL_SUPPLY.
If an INFINITE TokenSupplyType is used, maxSupply should explicitly be set to 0. If it is not 0, the transaction will resolve to INVALID_TOKEN_MAX_SUPPLY.
If a FINITE TokenSupplyType is used, maxSupply should be explicitly set to a non-negative value. If it is not, the transaction will resolve to INVALID_TOKEN_MAX_SUPPLY.
func (*TokenCreateTransaction) GetAdminKey ¶
func (tx *TokenCreateTransaction) GetAdminKey() Key
GetAdminKey returns the admin key
func (*TokenCreateTransaction) GetAutoRenewAccount ¶
func (tx *TokenCreateTransaction) GetAutoRenewAccount() AccountID
func (*TokenCreateTransaction) GetAutoRenewPeriod ¶
func (tx *TokenCreateTransaction) GetAutoRenewPeriod() time.Duration
func (*TokenCreateTransaction) GetCustomFees ¶
func (tx *TokenCreateTransaction) GetCustomFees() []Fee
GetCustomFees returns the custom fees
func (*TokenCreateTransaction) GetDecimals ¶
func (tx *TokenCreateTransaction) GetDecimals() uint
GetDecimals returns the number of decimal places a token is divisible by
func (*TokenCreateTransaction) GetExpirationTime ¶
func (tx *TokenCreateTransaction) GetExpirationTime() time.Time
func (*TokenCreateTransaction) GetFeeScheduleKey ¶
func (tx *TokenCreateTransaction) GetFeeScheduleKey() Key
GetFeeScheduleKey returns the fee schedule key
func (*TokenCreateTransaction) GetFreezeDefault ¶
func (tx *TokenCreateTransaction) GetFreezeDefault() bool
GetFreezeDefault returns the freeze default
func (*TokenCreateTransaction) GetFreezeKey ¶
func (tx *TokenCreateTransaction) GetFreezeKey() Key
GetFreezeKey returns the freeze key
func (*TokenCreateTransaction) GetInitialSupply ¶
func (tx *TokenCreateTransaction) GetInitialSupply() uint64
func (*TokenCreateTransaction) GetKycKey ¶
func (tx *TokenCreateTransaction) GetKycKey() Key
func (*TokenCreateTransaction) GetMaxSupply ¶
func (tx *TokenCreateTransaction) GetMaxSupply() int64
GetMaxSupply returns the max supply
func (*TokenCreateTransaction) GetMetadataKey ¶
func (tx *TokenCreateTransaction) GetMetadataKey() Key
GetMetadataKey returns the metadata key
func (TokenCreateTransaction) GetNodeAccountIDs ¶
func (e TokenCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenCreateTransaction) GetPauseKey ¶
func (tx *TokenCreateTransaction) GetPauseKey() Key
GetPauseKey returns the pause key
func (*TokenCreateTransaction) GetSupplyKey ¶
func (tx *TokenCreateTransaction) GetSupplyKey() Key
func (*TokenCreateTransaction) GetSupplyType ¶
func (tx *TokenCreateTransaction) GetSupplyType() TokenSupplyType
GetSupplyType returns the token supply type
func (*TokenCreateTransaction) GetTokenMemo ¶
func (tx *TokenCreateTransaction) GetTokenMemo() string
GetTokenMemo returns the token memo
func (*TokenCreateTransaction) GetTokenMetadata ¶
func (tx *TokenCreateTransaction) GetTokenMetadata() []byte
GetTokenMetadata returns token class metadata
func (*TokenCreateTransaction) GetTokenName ¶
func (tx *TokenCreateTransaction) GetTokenName() string
GetTokenName returns the token name
func (*TokenCreateTransaction) GetTokenSymbol ¶
func (tx *TokenCreateTransaction) GetTokenSymbol() string
GetTokenSymbol returns the token symbol
func (*TokenCreateTransaction) GetTokenType ¶
func (tx *TokenCreateTransaction) GetTokenType() TokenType
GetTokenType returns the token type
func (*TokenCreateTransaction) GetTreasuryAccountID ¶
func (tx *TokenCreateTransaction) GetTreasuryAccountID() AccountID
GetTreasuryAccountID returns the treasury account ID
func (*TokenCreateTransaction) GetWipeKey ¶
func (tx *TokenCreateTransaction) GetWipeKey() Key
GetWipeKey returns the wipe key
func (*TokenCreateTransaction) SetAdminKey ¶
func (tx *TokenCreateTransaction) SetAdminKey(publicKey Key) *TokenCreateTransaction
SetAdminKey Sets the key which can perform update/delete operations on the token. If empty, the token can be perceived as immutable (not being able to be updated/deleted)
func (*TokenCreateTransaction) SetAutoRenewAccount ¶
func (tx *TokenCreateTransaction) SetAutoRenewAccount(autoRenewAccountID AccountID) *TokenCreateTransaction
An account which will be automatically charged to renew the token's expiration, at autoRenewPeriod interval
func (*TokenCreateTransaction) SetAutoRenewPeriod ¶
func (tx *TokenCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenCreateTransaction
The interval at which the auto-renew account will be charged to extend the token's expiry If expirationTime is set - autoRenewPeriod will be effectively ignored and it's effect will be replaced by expirationTime
func (*TokenCreateTransaction) SetCustomFees ¶
func (tx *TokenCreateTransaction) SetCustomFees(customFee []Fee) *TokenCreateTransaction
SetCustomFees Set the custom fees to be assessed during a CryptoTransfer that transfers units of this token
func (*TokenCreateTransaction) SetDecimals ¶
func (tx *TokenCreateTransaction) SetDecimals(decimals uint) *TokenCreateTransaction
SetDecimals Sets the number of decimal places a token is divisible by. This field can never be changed! Min value for this property is 0 Max value for this property is 2,147,483,647
func (*TokenCreateTransaction) SetExpirationTime ¶
func (tx *TokenCreateTransaction) SetExpirationTime(expirationTime time.Time) *TokenCreateTransaction
The epoch second at which the token should expire; if an auto-renew account and period are specified, this is coerced to the current epoch second plus the autoRenewPeriod If autoRenewPeriod is set - this value will be ignored and the expiration time will be calculated based on the autoRenewPeriod + time.now() Setting this value will clear the autoRenewPeriod as the autoRenewPeriod period has default value of 7890000 seconds and leaving it set will override the expiration time
func (*TokenCreateTransaction) SetFeeScheduleKey ¶
func (tx *TokenCreateTransaction) SetFeeScheduleKey(key Key) *TokenCreateTransaction
SetFeeScheduleKey Set the key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate transaction
func (*TokenCreateTransaction) SetFreezeDefault ¶
func (tx *TokenCreateTransaction) SetFreezeDefault(freezeDefault bool) *TokenCreateTransaction
The default Freeze status (frozen or unfrozen) of Hiero accounts relative to this token. If true, an account must be unfrozen before it can receive the token
func (*TokenCreateTransaction) SetFreezeKey ¶
func (tx *TokenCreateTransaction) SetFreezeKey(publicKey Key) *TokenCreateTransaction
SetFreezeKey Sets the key which can sign to freeze or unfreeze an account for token transactions. If empty, freezing is not possible
func (*TokenCreateTransaction) SetInitialSupply ¶
func (tx *TokenCreateTransaction) SetInitialSupply(initialSupply uint64) *TokenCreateTransaction
Specifies the initial supply of tokens to be put in circulation. The initial supply is sent to the Treasury Account. The supply is in the lowest denomination possible.
func (*TokenCreateTransaction) SetKycKey ¶
func (tx *TokenCreateTransaction) SetKycKey(publicKey Key) *TokenCreateTransaction
SetKycKey Sets the key which can grant or revoke KYC of an account for the token's transactions. If empty, KYC is not required, and KYC grant or revoke operations are not possible.
func (*TokenCreateTransaction) SetMaxSupply ¶
func (tx *TokenCreateTransaction) SetMaxSupply(maxSupply int64) *TokenCreateTransaction
SetMaxSupply Depends on TokenSupplyType. For tokens of type FUNGIBLE_COMMON - sets the maximum number of tokens that can be in circulation. For tokens of type NON_FUNGIBLE_UNIQUE - sets the maximum number of NFTs (serial numbers) that can be minted. This field can never be changed!
func (*TokenCreateTransaction) SetMetadataKey ¶
func (tx *TokenCreateTransaction) SetMetadataKey(key Key) *TokenCreateTransaction
SetMetadataKey Set the Key which can update the metadata.
func (*TokenCreateTransaction) SetPauseKey ¶
func (tx *TokenCreateTransaction) SetPauseKey(key Key) *TokenCreateTransaction
SetPauseKey Set the Key which can pause and unpause the Token. If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
func (*TokenCreateTransaction) SetSupplyKey ¶
func (tx *TokenCreateTransaction) SetSupplyKey(publicKey Key) *TokenCreateTransaction
The key which can change the supply of a token. The key is used to sign Token Mint/Burn operations SetInitialBalance sets the initial number of Hbar to put into the token
func (*TokenCreateTransaction) SetSupplyType ¶
func (tx *TokenCreateTransaction) SetSupplyType(tokenSupply TokenSupplyType) *TokenCreateTransaction
SetSupplyType Specifies the token supply type. Defaults to INFINITE
func (*TokenCreateTransaction) SetTokenMemo ¶
func (tx *TokenCreateTransaction) SetTokenMemo(memo string) *TokenCreateTransaction
SetTokenMemo Sets the publicly visible token memo. It is max 100 bytes.
func (*TokenCreateTransaction) SetTokenMetadata ¶
func (tx *TokenCreateTransaction) SetTokenMetadata(metadata []byte) *TokenCreateTransaction
SetTokenMetadata Sets the metadata for the token
func (*TokenCreateTransaction) SetTokenName ¶
func (tx *TokenCreateTransaction) SetTokenName(name string) *TokenCreateTransaction
SetTokenName Sets the publicly visible name of the token, specified as a string of only ASCII characters
func (*TokenCreateTransaction) SetTokenSymbol ¶
func (tx *TokenCreateTransaction) SetTokenSymbol(symbol string) *TokenCreateTransaction
SetTokenSymbol Sets the publicly visible token symbol. It is UTF-8 capitalized alphabetical string identifying the token
func (*TokenCreateTransaction) SetTokenType ¶
func (tx *TokenCreateTransaction) SetTokenType(t TokenType) *TokenCreateTransaction
SetTokenType Specifies the token type. Defaults to FUNGIBLE_COMMON
func (*TokenCreateTransaction) SetTreasuryAccountID ¶
func (tx *TokenCreateTransaction) SetTreasuryAccountID(treasuryAccountID AccountID) *TokenCreateTransaction
SetTreasuryAccountID Sets the account which will act as a treasury for the token. This account will receive the specified initial supply
func (*TokenCreateTransaction) SetWipeKey ¶
func (tx *TokenCreateTransaction) SetWipeKey(publicKey Key) *TokenCreateTransaction
SetWipeKey Sets the key which can wipe the token balance of an account. If empty, wipe is not possible
type TokenDecimalMap ¶
type TokenDecimalMap struct {
// contains filtered or unexported fields
}
func (*TokenDecimalMap) Get ¶
func (tokenDecimals *TokenDecimalMap) Get(tokenID TokenID) uint64
Get returns the balance of the given tokenID
type TokenDeleteTransaction ¶
type TokenDeleteTransaction struct { *Transaction[*TokenDeleteTransaction] // contains filtered or unexported fields }
TokenDeleteTransaction Marks a token as deleted, though it will remain in the ledger. The operation must be signed by the specified Admin Key of the Token. If admin key is not set, transaction will result in TOKEN_IS_IMMUTABlE. Once deleted update, mint, burn, wipe, freeze, unfreeze, grant kyc, revoke kyc and token transfer transactions will resolve to TOKEN_WAS_DELETED.
func NewTokenDeleteTransaction ¶
func NewTokenDeleteTransaction() *TokenDeleteTransaction
NewTokenDeleteTransaction creates TokenDeleteTransaction which marks a token as deleted, though it will remain in the ledger. The operation must be signed by the specified Admin Key of the Token. If admin key is not set, Transaction will result in TOKEN_IS_IMMUTABlE. Once deleted update, mint, burn, wipe, freeze, unfreeze, grant kyc, revoke kyc and token transfer transactions will resolve to TOKEN_WAS_DELETED.
func (TokenDeleteTransaction) GetNodeAccountIDs ¶
func (e TokenDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenDeleteTransaction) GetTokenID ¶
func (tx *TokenDeleteTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID of the token to be deleted
func (*TokenDeleteTransaction) SetTokenID ¶
func (tx *TokenDeleteTransaction) SetTokenID(tokenID TokenID) *TokenDeleteTransaction
SetTokenID Sets the Token to be deleted
type TokenDissociateTransaction ¶
type TokenDissociateTransaction struct { *Transaction[*TokenDissociateTransaction] // contains filtered or unexported fields }
TokenDissociateTransaction Dissociates the provided account with the provided tokens. Must be signed by the provided Account's key. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If any of the provided tokens is not found, the transaction will resolve to INVALID_TOKEN_REF. If any of the provided tokens has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an association between the provided account and any of the tokens does not exist, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If a token has not been deleted and has not expired, and the user has a nonzero balance, the transaction will resolve to TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES. If a <b>fungible token</b> has expired, the user can disassociate even if their token balance is not zero. If a <b>non fungible token</b> has expired, the user can <b>not</b> disassociate if their token balance is not zero. The transaction will resolve to TRANSACTION_REQUIRED_ZERO_TOKEN_BALANCES. On success, associations between the provided account and tokens are removed.
func NewTokenDissociateTransaction ¶
func NewTokenDissociateTransaction() *TokenDissociateTransaction
NewTokenDissociateTransaction creates TokenDissociateTransaction which dissociates the provided account with the provided tokens. Must be signed by the provided Account's key. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If any of the provided tokens is not found, the transaction will resolve to INVALID_TOKEN_REF. If any of the provided tokens has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an association between the provided account and any of the tokens does not exist, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If a token has not been deleted and has not expired, and the user has a nonzero balance, the transaction will resolve to TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES. If a <b>fungible token</b> has expired, the user can disassociate even if their token balance is not zero. If a <b>non fungible token</b> has expired, the user can <b>not</b> disassociate if their token balance is not zero. The transaction will resolve to TRANSACTION_REQUIRED_ZERO_TOKEN_BALANCES. On success, associations between the provided account and tokens are removed.
func (*TokenDissociateTransaction) AddTokenID ¶
func (tx *TokenDissociateTransaction) AddTokenID(id TokenID) *TokenDissociateTransaction
AddTokenID Adds the token to the list of tokens to be dissociated.
func (*TokenDissociateTransaction) GetAccountID ¶
func (tx *TokenDissociateTransaction) GetAccountID() AccountID
func (TokenDissociateTransaction) GetNodeAccountIDs ¶
func (e TokenDissociateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenDissociateTransaction) GetTokenIDs ¶
func (tx *TokenDissociateTransaction) GetTokenIDs() []TokenID
GetTokenIDs returns the tokens to be associated with the provided account
func (*TokenDissociateTransaction) SetAccountID ¶
func (tx *TokenDissociateTransaction) SetAccountID(accountID AccountID) *TokenDissociateTransaction
SetAccountID Sets the account to be dissociated with the provided tokens
func (*TokenDissociateTransaction) SetTokenIDs ¶
func (tx *TokenDissociateTransaction) SetTokenIDs(ids ...TokenID) *TokenDissociateTransaction
SetTokenIDs Sets the tokens to be dissociated with the provided account
type TokenFeeScheduleUpdateTransaction ¶
type TokenFeeScheduleUpdateTransaction struct { *Transaction[*TokenFeeScheduleUpdateTransaction] // contains filtered or unexported fields }
TokenFeeScheduleUpdateTransaction At consensus, updates a token type's fee schedule to the given list of custom fees.
If the target token type has no fee_schedule_key, resolves to TOKEN_HAS_NO_FEE_SCHEDULE_KEY. Otherwise this transaction must be signed to the fee_schedule_key, or the transaction will resolve to INVALID_SIGNATURE.
If the custom_fees list is empty, clears the fee schedule or resolves to CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES if the fee schedule was already empty.
func NewTokenFeeScheduleUpdateTransaction ¶
func NewTokenFeeScheduleUpdateTransaction() *TokenFeeScheduleUpdateTransaction
NewTokenFeeScheduleUpdateTransaction creates TokenFeeScheduleUpdateTransaction which at consensus, updates a token type's fee schedule to the given list of custom fees.
If the target token type has no fee_schedule_key, resolves to TOKEN_HAS_NO_FEE_SCHEDULE_KEY. Otherwise this transaction must be signed to the fee_schedule_key, or the transaction will resolve to INVALID_SIGNATURE.
If the custom_fees list is empty, clears the fee schedule or resolves to CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES if the fee schedule was already empty.
func (*TokenFeeScheduleUpdateTransaction) GetCustomFees ¶
func (tx *TokenFeeScheduleUpdateTransaction) GetCustomFees() []Fee
GetCustomFees returns the new custom fees to be assessed during a CryptoTransfer that transfers units of this token
func (TokenFeeScheduleUpdateTransaction) GetNodeAccountIDs ¶
func (e TokenFeeScheduleUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenFeeScheduleUpdateTransaction) GetTokenID ¶
func (tx *TokenFeeScheduleUpdateTransaction) GetTokenID() TokenID
GetTokenID returns the token whose fee schedule is to be updated
func (*TokenFeeScheduleUpdateTransaction) SetCustomFees ¶
func (tx *TokenFeeScheduleUpdateTransaction) SetCustomFees(fees []Fee) *TokenFeeScheduleUpdateTransaction
SetCustomFees Sets the new custom fees to be assessed during a CryptoTransfer that transfers units of this token
func (*TokenFeeScheduleUpdateTransaction) SetTokenID ¶
func (tx *TokenFeeScheduleUpdateTransaction) SetTokenID(tokenID TokenID) *TokenFeeScheduleUpdateTransaction
SetTokenID Sets the token whose fee schedule is to be updated
type TokenFreezeTransaction ¶
type TokenFreezeTransaction struct { *Transaction[*TokenFreezeTransaction] // contains filtered or unexported fields }
TokenFreezeTransaction Freezes transfers of the specified token for the account. Must be signed by the Token's freezeKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no Freeze Key is defined, the transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY. Once executed the Account is marked as Frozen and will not be able to receive or send tokens unless unfrozen. The operation is idempotent.
func NewTokenFreezeTransaction ¶
func NewTokenFreezeTransaction() *TokenFreezeTransaction
NewTokenFreezeTransaction creates TokenFreezeTransaction which freezes transfers of the specified token for the account. Must be signed by the Token's freezeKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no Freeze Key is defined, the transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY. Once executed the Account is marked as Frozen and will not be able to receive or send tokens unless unfrozen. The operation is idempotent.
func (*TokenFreezeTransaction) GetAccountID ¶
func (tx *TokenFreezeTransaction) GetAccountID() AccountID
GetAccountID returns the account to be frozen
func (TokenFreezeTransaction) GetNodeAccountIDs ¶
func (e TokenFreezeTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenFreezeTransaction) GetTokenID ¶
func (tx *TokenFreezeTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will be frozen.
func (*TokenFreezeTransaction) SetAccountID ¶
func (tx *TokenFreezeTransaction) SetAccountID(accountID AccountID) *TokenFreezeTransaction
SetAccountID Sets the account to be frozen
func (*TokenFreezeTransaction) SetTokenID ¶
func (tx *TokenFreezeTransaction) SetTokenID(tokenID TokenID) *TokenFreezeTransaction
SetTokenID Sets the token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
type TokenGrantKycTransaction ¶
type TokenGrantKycTransaction struct { *Transaction[*TokenGrantKycTransaction] // contains filtered or unexported fields }
TokenGrantKycTransaction Grants KYC to the account for the given token. Must be signed by the Token's kycKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no KYC Key is defined, the transaction will resolve to TOKEN_HAS_NO_KYC_KEY. Once executed the Account is marked as KYC Granted.
func NewTokenGrantKycTransaction ¶
func NewTokenGrantKycTransaction() *TokenGrantKycTransaction
NewTokenGrantKycTransaction creates TokenGrantKycTransaction which grants KYC to the account for the given token. Must be signed by the Token's kycKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no KYC Key is defined, the transaction will resolve to TOKEN_HAS_NO_KYC_KEY. Once executed the Account is marked as KYC Granted.
func (*TokenGrantKycTransaction) GetAccountID ¶
func (tx *TokenGrantKycTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID that is being KYCed
func (TokenGrantKycTransaction) GetNodeAccountIDs ¶
func (e TokenGrantKycTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenGrantKycTransaction) GetTokenID ¶
func (tx *TokenGrantKycTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will be granted KYC.
func (*TokenGrantKycTransaction) SetAccountID ¶
func (tx *TokenGrantKycTransaction) SetAccountID(accountID AccountID) *TokenGrantKycTransaction
SetAccountID Sets the account to be KYCed
func (*TokenGrantKycTransaction) SetTokenID ¶
func (tx *TokenGrantKycTransaction) SetTokenID(tokenID TokenID) *TokenGrantKycTransaction
SetTokenID Sets the token for which this account will be granted KYC. If token does not exist, transaction results in INVALID_TOKEN_ID
type TokenID ¶
type TokenID struct { Shard uint64 Realm uint64 Token uint64 // contains filtered or unexported fields }
TokenID is the ID for a Hiero token
func TokenIDFromBytes ¶
TokenIDFromBytes returns a TokenID from a byte array
func TokenIDFromEvmAddress ¶ added in v2.66.0
TokenIDFromEvmAddress constructs an TokenID from a string formatted as shard.realm.<evm address>
func TokenIDFromSolidityAddress ¶
TokenIDFromSolidityAddress constructs a TokenID from a string representation of a _Solidity address Deprecated: use TokenIDFromEvmAddress instead
func TokenIDFromString ¶
TokenIDFromString constructs an TokenID from a string formatted as `Shard.Realm.TokenID` (for example "0.0.3")
func (TokenID) String ¶
String returns a string representation of the TokenID formatted as `Shard.Realm.TokenID` (for example "0.0.3")
func (TokenID) ToEvmAddress ¶ added in v2.66.0
ToEvmAddress returns EVM-compatible address representation of the entity
func (TokenID) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of the TokenID as a _Solidity address. Deprecated: use ToEvmAddress instead
func (TokenID) ToStringWithChecksum ¶
ToStringWithChecksum returns a string representation of the TokenID formatted as `Shard.Realm.TokenID-Checksum` (for example "0.0.3-abcd")
func (*TokenID) ValidateChecksum ¶
Verify that the client has a valid checksum.
type TokenInfo ¶
type TokenInfo struct { TokenID TokenID Name string Symbol string Decimals uint32 TotalSupply uint64 Treasury AccountID AdminKey Key KycKey Key FreezeKey Key WipeKey Key SupplyKey Key DefaultFreezeStatus *bool DefaultKycStatus *bool Deleted bool AutoRenewPeriod *time.Duration AutoRenewAccountID AccountID ExpirationTime *time.Time TokenMemo string TokenType TokenType SupplyType TokenSupplyType MaxSupply int64 FeeScheduleKey Key CustomFees []Fee PauseKey Key PauseStatus *bool MetadataKey Key Metadata []byte LedgerID LedgerID }
TokenInfo is the information about a token
func TokenInfoFromBytes ¶
TokenInfoFromBytes returns a TokenInfo struct from a raw protobuf byte array
func (*TokenInfo) FreezeStatusToProtobuf ¶
func (tokenInfo *TokenInfo) FreezeStatusToProtobuf() *services.TokenFreezeStatus
FreezeStatusToProtobuf converts the TokenInfo's DefaultFreezeStatus to a protobuf TokenFreezeStatus
func (*TokenInfo) KycStatusToProtobuf ¶
func (tokenInfo *TokenInfo) KycStatusToProtobuf() *services.TokenKycStatus
KycStatusToProtobuf converts the TokenInfo's DefaultKycStatus to a protobuf TokenKycStatus
func (*TokenInfo) PauseStatusToProtobuf ¶
func (tokenInfo *TokenInfo) PauseStatusToProtobuf() *services.TokenPauseStatus
PauseStatusToProtobuf converts the TokenInfo's PauseStatus to a protobuf TokenPauseStatus
type TokenInfoQuery ¶
type TokenInfoQuery struct { Query // contains filtered or unexported fields }
TokenInfoQuery Used get information about Token instance
func NewTokenInfoQuery ¶
func NewTokenInfoQuery() *TokenInfoQuery
NewTokenInfoQuery creates a TokenInfoQuery which is used get information about Token instance
func (*TokenInfoQuery) Execute ¶
func (q *TokenInfoQuery) Execute(client *Client) (TokenInfo, error)
Execute executes the TopicInfoQuery using the provided client
func (*TokenInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*TokenInfoQuery) GetLogLevel ¶
func (e *TokenInfoQuery) GetLogLevel() *LogLevel
func (*TokenInfoQuery) GetMaxBackoff ¶
func (*TokenInfoQuery) GetMaxRetry ¶
func (e *TokenInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*TokenInfoQuery) GetMinBackoff ¶
func (*TokenInfoQuery) GetNodeAccountIDs ¶
func (e *TokenInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenInfoQuery) GetTokenID ¶
func (q *TokenInfoQuery) GetTokenID() TokenID
GetTokenID returns the TokenID for this TokenInfoQuery
func (*TokenInfoQuery) SetGrpcDeadline ¶
func (q *TokenInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenInfoQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenInfoQuery) SetLogLevel ¶
func (q *TokenInfoQuery) SetLogLevel(level LogLevel) *TokenInfoQuery
func (*TokenInfoQuery) SetMaxBackoff ¶
func (q *TokenInfoQuery) SetMaxBackoff(max time.Duration) *TokenInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*TokenInfoQuery) SetMaxQueryPayment ¶
func (q *TokenInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TokenInfoQuery) SetMaxRetry ¶
func (q *TokenInfoQuery) SetMaxRetry(count int) *TokenInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenInfoQuery) SetMinBackoff ¶
func (q *TokenInfoQuery) SetMinBackoff(min time.Duration) *TokenInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenInfoQuery) SetNodeAccountIDs ¶
func (q *TokenInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this TokenInfoQuery.
func (*TokenInfoQuery) SetPaymentTransactionID ¶
func (q *TokenInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TokenInfoQuery) SetQueryPayment ¶
func (q *TokenInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*TokenInfoQuery) SetTokenID ¶
func (q *TokenInfoQuery) SetTokenID(tokenID TokenID) *TokenInfoQuery
SetTokenID Sets the topic to retrieve info about (the parameters and running state of).
type TokenKeyValidation ¶
type TokenKeyValidation int32
const ( // FULL_VALIDATION performs all token key validations. FULL_VALIDATION TokenKeyValidation = iota // NO_VALIDATION performs no validations at all for all passed token keys. NO_VALIDATION )
type TokenMintTransaction ¶
type TokenMintTransaction struct { *Transaction[*TokenMintTransaction] // contains filtered or unexported fields }
TokenMintTransaction Mints tokens from the Token's treasury Account. If no Supply Key is defined, the transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY. The operation decreases the Total Supply of the Token. Total supply cannot go below zero. The amount provided must be in the lowest denomination possible. Example: Token A has 2 decimals. In order to mint 100 tokens, one must provide amount of 10000. In order to mint 100.55 tokens, one must provide amount of 10055.
func NewTokenMintTransaction ¶
func NewTokenMintTransaction() *TokenMintTransaction
NewTokenMintTransaction creates TokenMintTransaction which mints tokens from the Token's treasury Account. If no Supply Key is defined, the transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY. The operation decreases the Total Supply of the Token. Total supply cannot go below zero. The amount provided must be in the lowest denomination possible. Example: Token A has 2 decimals. In order to mint 100 tokens, one must provide amount of 10000. In order to mint 100.55 tokens, one must provide amount of 10055.
func (*TokenMintTransaction) GetAmount ¶
func (tx *TokenMintTransaction) GetAmount() uint64
GetAmount returns the amount to mint from the Treasury Account
func (*TokenMintTransaction) GetMetadatas ¶
func (tx *TokenMintTransaction) GetMetadatas() [][]byte
GetMetadatas returns the metadata that are being created.
func (TokenMintTransaction) GetNodeAccountIDs ¶
func (e TokenMintTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenMintTransaction) GetTokenID ¶
func (tx *TokenMintTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID for this TokenMintTransaction
func (*TokenMintTransaction) SetAmount ¶
func (tx *TokenMintTransaction) SetAmount(amount uint64) *TokenMintTransaction
SetAmount Sets the amount to mint from the Treasury Account. Amount must be a positive non-zero number.
func (*TokenMintTransaction) SetMetadata ¶
func (tx *TokenMintTransaction) SetMetadata(meta []byte) *TokenMintTransaction
SetMetadata Applicable to tokens of type NON_FUNGIBLE_UNIQUE. A list of metadata that are being created. Maximum allowed size of each metadata is 100 bytes
func (*TokenMintTransaction) SetMetadatas ¶
func (tx *TokenMintTransaction) SetMetadatas(meta [][]byte) *TokenMintTransaction
SetMetadatas Applicable to tokens of type NON_FUNGIBLE_UNIQUE. A list of metadata that are being created. Maximum allowed size of each metadata is 100 bytes
func (*TokenMintTransaction) SetTokenID ¶
func (tx *TokenMintTransaction) SetTokenID(tokenID TokenID) *TokenMintTransaction
SetTokenID Sets the token for which to mint tokens. If token does not exist, transaction results in INVALID_TOKEN_ID
type TokenNftAllowance ¶
type TokenNftAllowance struct { TokenID *TokenID SpenderAccountID *AccountID OwnerAccountID *AccountID SerialNumbers []int64 AllSerials bool DelegatingSpender *AccountID }
TokenNftAllowance is a struct to encapsulate the nft methods for token allowance's.
func NewTokenNftAllowance ¶
func NewTokenNftAllowance(tokenID TokenID, owner AccountID, spender AccountID, serialNumbers []int64, approvedForAll bool, delegatingSpender AccountID) TokenNftAllowance
NewTokenNftAllowance creates a TokenNftAllowance delegate for the given tokenID, owner, spender, serialNumbers, approvedForAll, and delegatingSpender
func (*TokenNftAllowance) String ¶
func (approval *TokenNftAllowance) String() string
String returns a string representation of the TokenNftAllowance
type TokenNftInfo ¶
type TokenNftInfo struct { NftID NftID AccountID AccountID CreationTime time.Time Metadata []byte LedgerID LedgerID SpenderID AccountID }
TokenNftInfo is the information about a NFT
func TokenNftInfoFromBytes ¶
func TokenNftInfoFromBytes(data []byte) (TokenNftInfo, error)
TokenNftInfoFromBytes returns the TokenNftInfo from a byte array representation
func (*TokenNftInfo) ToBytes ¶
func (tokenNftInfo *TokenNftInfo) ToBytes() []byte
ToBytes returns the byte representation of the TokenNftInfo
type TokenNftInfoQuery ¶
type TokenNftInfoQuery struct { Query // contains filtered or unexported fields }
TokenNftInfoQuery Applicable only to tokens of type NON_FUNGIBLE_UNIQUE. Gets info on a NFT for a given TokenID (of type NON_FUNGIBLE_UNIQUE) and serial number
func NewTokenNftInfoQuery ¶
func NewTokenNftInfoQuery() *TokenNftInfoQuery
NewTokenNftInfoQuery creates TokenNftInfoQuery which gets info on a NFT for a given TokenID (of type NON_FUNGIBLE_UNIQUE) and serial number Applicable only to tokens of type NON_FUNGIBLE_UNIQUE.
func (*TokenNftInfoQuery) ByAccountID ¶
func (q *TokenNftInfoQuery) ByAccountID(id AccountID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) ByNftID ¶
func (q *TokenNftInfoQuery) ByNftID(id NftID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) ByTokenID ¶
func (q *TokenNftInfoQuery) ByTokenID(id TokenID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) Execute ¶
func (q *TokenNftInfoQuery) Execute(client *Client) ([]TokenNftInfo, error)
Execute executes the Query with the provided client
func (*TokenNftInfoQuery) GetAccountID ¶
func (q *TokenNftInfoQuery) GetAccountID() AccountID
Deprecated
func (*TokenNftInfoQuery) GetCost ¶
func (q *TokenNftInfoQuery) GetCost(client *Client) (Hbar, error)
func (*TokenNftInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*TokenNftInfoQuery) GetLogLevel ¶
func (e *TokenNftInfoQuery) GetLogLevel() *LogLevel
func (*TokenNftInfoQuery) GetMaxBackoff ¶
func (*TokenNftInfoQuery) GetMaxRetry ¶
func (e *TokenNftInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*TokenNftInfoQuery) GetMinBackoff ¶
func (*TokenNftInfoQuery) GetNftID ¶
func (q *TokenNftInfoQuery) GetNftID() NftID
GetNftID returns the ID of the NFT
func (*TokenNftInfoQuery) GetNodeAccountIDs ¶
func (e *TokenNftInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenNftInfoQuery) SetAccountID ¶
func (q *TokenNftInfoQuery) SetAccountID(id AccountID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) SetEnd ¶
func (q *TokenNftInfoQuery) SetEnd(end int64) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) SetGrpcDeadline ¶
func (q *TokenNftInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenNftInfoQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenNftInfoQuery) SetLogLevel ¶
func (q *TokenNftInfoQuery) SetLogLevel(level LogLevel) *TokenNftInfoQuery
func (*TokenNftInfoQuery) SetMaxBackoff ¶
func (q *TokenNftInfoQuery) SetMaxBackoff(max time.Duration) *TokenNftInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*TokenNftInfoQuery) SetMaxQueryPayment ¶
func (q *TokenNftInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenNftInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TokenNftInfoQuery) SetMaxRetry ¶
func (q *TokenNftInfoQuery) SetMaxRetry(count int) *TokenNftInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenNftInfoQuery) SetMinBackoff ¶
func (q *TokenNftInfoQuery) SetMinBackoff(min time.Duration) *TokenNftInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenNftInfoQuery) SetNftID ¶
func (q *TokenNftInfoQuery) SetNftID(nftID NftID) *TokenNftInfoQuery
SetNftID Sets the ID of the NFT
func (*TokenNftInfoQuery) SetNodeAccountIDs ¶
func (q *TokenNftInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenNftInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this TokenNftInfoQuery.
func (*TokenNftInfoQuery) SetPaymentTransactionID ¶
func (q *TokenNftInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenNftInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TokenNftInfoQuery) SetQueryPayment ¶
func (q *TokenNftInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenNftInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*TokenNftInfoQuery) SetStart ¶
func (q *TokenNftInfoQuery) SetStart(start int64) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) SetTokenID ¶
func (q *TokenNftInfoQuery) SetTokenID(id TokenID) *TokenNftInfoQuery
Deprecated
type TokenPauseTransaction ¶
type TokenPauseTransaction struct { *Transaction[*TokenPauseTransaction] // contains filtered or unexported fields }
TokenPauseTransaction Pauses the Token from being involved in any kind of Transaction until it is unpaused. Must be signed with the Token's pause key. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If no Pause Key is defined, the transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY. Once executed the Token is marked as paused and will be not able to be a part of any transaction. The operation is idempotent - becomes a no-op if the Token is already Paused.
func NewTokenPauseTransaction ¶
func NewTokenPauseTransaction() *TokenPauseTransaction
NewTokenPauseTransaction creates TokenPauseTransaction which pauses the Token from being involved in any kind of Transaction until it is unpaused. Must be signed with the Token's pause key. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If no Pause Key is defined, the transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY. Once executed the Token is marked as paused and will be not able to be a part of any transaction. The operation is idempotent - becomes a no-op if the Token is already Paused.
func (TokenPauseTransaction) GetNodeAccountIDs ¶
func (e TokenPauseTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenPauseTransaction) GetTokenID ¶
func (tx *TokenPauseTransaction) GetTokenID() TokenID
GetTokenID returns the token to be paused
func (*TokenPauseTransaction) SetTokenID ¶
func (tx *TokenPauseTransaction) SetTokenID(tokenID TokenID) *TokenPauseTransaction
SetTokenID Sets the token to be paused
type TokenRejectFlow ¶
type TokenRejectFlow struct {
// contains filtered or unexported fields
}
func NewTokenRejectFlow ¶
func NewTokenRejectFlow() *TokenRejectFlow
func (*TokenRejectFlow) AddNftID ¶
func (tx *TokenRejectFlow) AddNftID(id NftID) *TokenRejectFlow
AddNftID Adds an NFT to be rejected
func (*TokenRejectFlow) AddTokenID ¶
func (tx *TokenRejectFlow) AddTokenID(id TokenID) *TokenRejectFlow
AddTokenID Adds a token to be rejected
func (*TokenRejectFlow) Execute ¶
func (tx *TokenRejectFlow) Execute(client *Client) (TransactionResponse, error)
func (*TokenRejectFlow) FreezeWith ¶
func (tx *TokenRejectFlow) FreezeWith(client *Client) (*TokenRejectFlow, error)
func (*TokenRejectFlow) GetNftIDs ¶
func (tx *TokenRejectFlow) GetNftIDs() []NftID
GetNftIDs Gets the NFTs to be rejected
func (*TokenRejectFlow) GetOwnerID ¶
func (tx *TokenRejectFlow) GetOwnerID() AccountID
GetOwnerID Gets the account which owns the tokens to be rejected
func (*TokenRejectFlow) GetTokenIDs ¶
func (tx *TokenRejectFlow) GetTokenIDs() []TokenID
GetTokenIDs Gets the tokens to be rejected
func (*TokenRejectFlow) SetNftIDs ¶
func (tx *TokenRejectFlow) SetNftIDs(ids ...NftID) *TokenRejectFlow
SetNftIDs Sets the NFTs to be rejected
func (*TokenRejectFlow) SetOwnerID ¶
func (tx *TokenRejectFlow) SetOwnerID(ownerID AccountID) *TokenRejectFlow
SetOwnerID Sets the account which owns the tokens to be rejected
func (*TokenRejectFlow) SetTokenIDs ¶
func (tx *TokenRejectFlow) SetTokenIDs(ids ...TokenID) *TokenRejectFlow
SetTokenIDs Sets the tokens to be rejected
func (*TokenRejectFlow) Sign ¶
func (tx *TokenRejectFlow) Sign(privateKey PrivateKey) *TokenRejectFlow
Sign uses the provided privateKey to sign the transaction.
func (*TokenRejectFlow) SignWith ¶
func (tx *TokenRejectFlow) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenRejectFlow
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
type TokenRejectTransaction ¶
type TokenRejectTransaction struct { *Transaction[*TokenRejectTransaction] // contains filtered or unexported fields }
*
- A transaction body to "reject" undesired tokens.<br/>
- This transaction will transfer one or more tokens or token
- balances held by the requesting account to the treasury
- for each token type.
- <p>
- Each transfer MUST be one of the following:
- <ul>
- <li>A single non-fungible/unique token.</li>
- <li>The full balance held for a fungible/common
- token type.</li>
- </ul>
- When complete, the requesting account SHALL NOT hold the
- rejected tokens.<br/>
- Custom fees and royalties defined for the tokens rejected
- SHALL NOT be charged for this transaction.
func NewTokenRejectTransaction ¶
func NewTokenRejectTransaction() *TokenRejectTransaction
func (*TokenRejectTransaction) AddNftID ¶
func (tx *TokenRejectTransaction) AddNftID(id NftID) *TokenRejectTransaction
AddNftID Adds an NFT to be rejected
func (*TokenRejectTransaction) AddTokenID ¶
func (tx *TokenRejectTransaction) AddTokenID(id TokenID) *TokenRejectTransaction
AddTokenID Adds a token to be rejected
func (*TokenRejectTransaction) GetNftIDs ¶
func (tx *TokenRejectTransaction) GetNftIDs() []NftID
GetNftIDs Gets the NFTs to be rejected
func (TokenRejectTransaction) GetNodeAccountIDs ¶
func (e TokenRejectTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenRejectTransaction) GetOwnerID ¶
func (tx *TokenRejectTransaction) GetOwnerID() AccountID
GetOwnerID Gets the account which owns the tokens to be rejected
func (*TokenRejectTransaction) GetTokenIDs ¶
func (tx *TokenRejectTransaction) GetTokenIDs() []TokenID
GetTokenIDs Gets the tokens to be rejected
func (*TokenRejectTransaction) SetNftIDs ¶
func (tx *TokenRejectTransaction) SetNftIDs(ids ...NftID) *TokenRejectTransaction
SetNftIDs Sets the NFTs to be rejected
func (*TokenRejectTransaction) SetOwnerID ¶
func (tx *TokenRejectTransaction) SetOwnerID(ownerID AccountID) *TokenRejectTransaction
SetOwnerID Sets the account which owns the tokens to be rejected
func (*TokenRejectTransaction) SetTokenIDs ¶
func (tx *TokenRejectTransaction) SetTokenIDs(ids ...TokenID) *TokenRejectTransaction
SetTokenIDs Sets the tokens to be rejected
type TokenRelationship ¶
type TokenRelationship struct { TokenID TokenID Symbol string Balance uint64 KycStatus *bool FreezeStatus *bool Decimals uint32 AutomaticAssociation bool }
TokenRelationship is the information about a token relationship
func TokenRelationshipFromBytes ¶
func TokenRelationshipFromBytes(data []byte) (*TokenRelationship, error)
func (TokenRelationship) ToBytes ¶
func (relationship TokenRelationship) ToBytes() []byte
type TokenRevokeKycTransaction ¶
type TokenRevokeKycTransaction struct { *Transaction[*TokenRevokeKycTransaction] // contains filtered or unexported fields }
TokenRevokeKycTransaction Revokes KYC to the account for the given token. Must be signed by the Token's kycKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no KYC Key is defined, the transaction will resolve to TOKEN_HAS_NO_KYC_KEY. Once executed the Account is marked as KYC Revoked
func NewTokenRevokeKycTransaction ¶
func NewTokenRevokeKycTransaction() *TokenRevokeKycTransaction
NewTokenRevokeKycTransaction creates TokenRevokeKycTransaction which revokes KYC to the account for the given token. Must be signed by the Token's kycKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no KYC Key is defined, the transaction will resolve to TOKEN_HAS_NO_KYC_KEY. Once executed the Account is marked as KYC Revoked
func (*TokenRevokeKycTransaction) GetAccountID ¶
func (tx *TokenRevokeKycTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID that is being KYC Revoked
func (TokenRevokeKycTransaction) GetNodeAccountIDs ¶
func (e TokenRevokeKycTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenRevokeKycTransaction) GetTokenID ¶
func (tx *TokenRevokeKycTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will get his KYC revoked.
func (*TokenRevokeKycTransaction) SetAccountID ¶
func (tx *TokenRevokeKycTransaction) SetAccountID(accountID AccountID) *TokenRevokeKycTransaction
SetAccountID Sets the account to be KYC Revoked
func (*TokenRevokeKycTransaction) SetTokenID ¶
func (tx *TokenRevokeKycTransaction) SetTokenID(tokenID TokenID) *TokenRevokeKycTransaction
SetTokenID Sets the token for which this account will get his KYC revoked. If token does not exist, transaction results in INVALID_TOKEN_ID
type TokenSupplyType ¶
type TokenSupplyType int32
const ( TokenSupplyTypeInfinite TokenSupplyType = 0 TokenSupplyTypeFinite TokenSupplyType = 1 )
func (TokenSupplyType) String ¶
func (tokenSupplyType TokenSupplyType) String() string
String returns a string representation of the TokenSupplyType
type TokenTransfer ¶
TokenTransfer is a token transfer record.
func NewTokenTransfer ¶
func NewTokenTransfer(accountID AccountID, amount int64) TokenTransfer
NewTokenTransfer creates a TokenTransfer with the given accountID and amount
func TokenTransferFromBytes ¶
func TokenTransferFromBytes(data []byte) (TokenTransfer, error)
TokenTransferFromBytes returns a TokenTransfer struct from a protobuf encoded byte array
func (TokenTransfer) String ¶
func (transfer TokenTransfer) String() string
func (TokenTransfer) ToBytes ¶
func (transfer TokenTransfer) ToBytes() []byte
ToBytes returns a protobuf encoded version of the TokenTransfer
type TokenUnfreezeTransaction ¶
type TokenUnfreezeTransaction struct { *Transaction[*TokenUnfreezeTransaction] // contains filtered or unexported fields }
TokenUnfreezeTransaction Unfreezes transfers of the specified token for the account. Must be signed by the Token's freezeKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no Freeze Key is defined, the transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY. Once executed the Account is marked as Unfrozen and will be able to receive or send tokens. The operation is idempotent.
func NewTokenUnfreezeTransaction ¶
func NewTokenUnfreezeTransaction() *TokenUnfreezeTransaction
NewTokenUnfreezeTransaction creates TokenUnfreezeTransaction which unfreezes transfers of the specified token for the account. Must be signed by the Token's freezeKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no Freeze Key is defined, the transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY. Once executed the Account is marked as Unfrozen and will be able to receive or send tokens. The operation is idempotent.
func (*TokenUnfreezeTransaction) GetAccountID ¶
func (tx *TokenUnfreezeTransaction) GetAccountID() AccountID
GetAccountID returns the account to be unfrozen
func (TokenUnfreezeTransaction) GetNodeAccountIDs ¶
func (e TokenUnfreezeTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenUnfreezeTransaction) GetTokenID ¶
func (tx *TokenUnfreezeTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will be unfrozen.
func (*TokenUnfreezeTransaction) SetAccountID ¶
func (tx *TokenUnfreezeTransaction) SetAccountID(accountID AccountID) *TokenUnfreezeTransaction
SetAccountID Sets the account to be unfrozen
func (*TokenUnfreezeTransaction) SetTokenID ¶
func (tx *TokenUnfreezeTransaction) SetTokenID(tokenID TokenID) *TokenUnfreezeTransaction
SetTokenID Sets the token for which this account will be unfrozen. If token does not exist, transaction results in INVALID_TOKEN_ID
type TokenUnpauseTransaction ¶
type TokenUnpauseTransaction struct { *Transaction[*TokenUnpauseTransaction] // contains filtered or unexported fields }
TokenUnpauseTransaction Unpauses the Token. Must be signed with the Token's pause key. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If no Pause Key is defined, the transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY. Once executed the Token is marked as Unpaused and can be used in Transactions. The operation is idempotent - becomes a no-op if the Token is already unpaused.
func NewTokenUnpauseTransaction ¶
func NewTokenUnpauseTransaction() *TokenUnpauseTransaction
NewTokenUnpauseTransaction creates TokenUnpauseTransaction which unpauses the Token. Must be signed with the Token's pause key. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If no Pause Key is defined, the transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY. Once executed the Token is marked as Unpaused and can be used in Transactions. The operation is idempotent - becomes a no-op if the Token is already unpaused.
func (TokenUnpauseTransaction) GetNodeAccountIDs ¶
func (e TokenUnpauseTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenUnpauseTransaction) GetTokenID ¶
func (tx *TokenUnpauseTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID of the token to be unpaused.
func (*TokenUnpauseTransaction) SetTokenID ¶
func (tx *TokenUnpauseTransaction) SetTokenID(tokenID TokenID) *TokenUnpauseTransaction
SetTokenID Sets the token to be unpaused.
type TokenUpdateNfts ¶
type TokenUpdateNfts struct { *Transaction[*TokenUpdateNfts] // contains filtered or unexported fields }
func NewTokenUpdateNftsTransaction ¶
func NewTokenUpdateNftsTransaction() *TokenUpdateNfts
func (*TokenUpdateNfts) GetMetadata ¶
func (tx *TokenUpdateNfts) GetMetadata() *[]byte
Getter for metadata
func (TokenUpdateNfts) GetNodeAccountIDs ¶
func (e TokenUpdateNfts) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenUpdateNfts) GetSerialNumbers ¶
func (tx *TokenUpdateNfts) GetSerialNumbers() []int64
Getter for serialNumbers
func (*TokenUpdateNfts) GetTokenID ¶
func (tx *TokenUpdateNfts) GetTokenID() *TokenID
Getter for tokenID
func (*TokenUpdateNfts) SetMetadata ¶
func (tx *TokenUpdateNfts) SetMetadata(metadata []byte) *TokenUpdateNfts
Setter for metadata
func (*TokenUpdateNfts) SetSerialNumbers ¶
func (tx *TokenUpdateNfts) SetSerialNumbers(serialNumbers []int64) *TokenUpdateNfts
Setter for serialNumbers
func (*TokenUpdateNfts) SetTokenID ¶
func (tx *TokenUpdateNfts) SetTokenID(tokenID TokenID) *TokenUpdateNfts
Setter for tokenID
type TokenUpdateTransaction ¶
type TokenUpdateTransaction struct { *Transaction[*TokenUpdateTransaction] // contains filtered or unexported fields }
TokenUpdateTransaction At consensus, updates an already created token to the given values.
If no value is given for a field, that field is left unchanged. For an immutable tokens (that is, a token without an admin key), only the expiry may be updated. Setting any other field in that case will cause the transaction status to resolve to TOKEN_IS_IMMUTABLE.
--- Signing Requirements ---
- Whether or not a token has an admin key, its expiry can be extended with only the transaction payer's signature.
- Updating any other field of a mutable token requires the admin key's signature.
- If a new admin key is set, this new key must sign <b>unless</b> it is exactly an empty <tt>KeyList</tt>. This special sentinel key removes the existing admin key and causes the token to become immutable. (Other <tt>Key</tt> structures without a constituent <tt>Ed25519</tt> key will be rejected with <tt>INVALID_ADMIN_KEY</tt>.)
- If a new treasury is set, the new treasury account's key must sign the transaction.
--- Nft Requirements ---
- If a non fungible token has a positive treasury balance, the operation will abort with CURRENT_TREASURY_STILL_OWNS_NFTS.
func NewTokenUpdateTransaction ¶
func NewTokenUpdateTransaction() *TokenUpdateTransaction
NewTokenUpdateTransaction creates TokenUpdateTransaction which at consensus, updates an already created token to the given values.
If no value is given for a field, that field is left unchanged. For an immutable tokens (that is, a token without an admin key), only the expiry may be updated. Setting any other field in that case will cause the transaction status to resolve to TOKEN_IS_IMMUTABLE.
--- Signing Requirements ---
- Whether or not a token has an admin key, its expiry can be extended with only the transaction payer's signature.
- Updating any other field of a mutable token requires the admin key's signature.
- If a new admin key is set, this new key must sign <b>unless</b> it is exactly an empty <tt>KeyList</tt>. This special sentinel key removes the existing admin key and causes the token to become immutable. (Other <tt>Key</tt> structures without a constituent <tt>Ed25519</tt> key will be rejected with <tt>INVALID_ADMIN_KEY</tt>.)
- If a new treasury is set, the new treasury account's key must sign the transaction.
--- Nft Requirements ---
- If a non fungible token has a positive treasury balance, the operation will abort with CURRENT_TREASURY_STILL_OWNS_NFTS.
func (*TokenUpdateTransaction) GetAdminKey ¶
func (tx *TokenUpdateTransaction) GetAdminKey() Key
func (*TokenUpdateTransaction) GetAutoRenewAccount ¶
func (tx *TokenUpdateTransaction) GetAutoRenewAccount() AccountID
func (*TokenUpdateTransaction) GetAutoRenewPeriod ¶
func (tx *TokenUpdateTransaction) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the new interval at which the auto-renew account will be charged to extend the token's expiry.
func (*TokenUpdateTransaction) GetExpirationTime ¶
func (tx *TokenUpdateTransaction) GetExpirationTime() time.Time
func (*TokenUpdateTransaction) GetFeeScheduleKey ¶
func (tx *TokenUpdateTransaction) GetFeeScheduleKey() Key
GetFeeScheduleKey returns the new key to use to update the token's custom fee schedule
func (*TokenUpdateTransaction) GetFreezeKey ¶
func (tx *TokenUpdateTransaction) GetFreezeKey() Key
GetFreezeKey returns the new Freeze key of the Token
func (*TokenUpdateTransaction) GetKeyVerificationMode ¶
func (tx *TokenUpdateTransaction) GetKeyVerificationMode() TokenKeyValidation
GetKeyVerificationMode returns the token metadata
func (*TokenUpdateTransaction) GetKycKey ¶
func (tx *TokenUpdateTransaction) GetKycKey() Key
GetKycKey returns the new KYC key of the Token
func (*TokenUpdateTransaction) GetMetadataKey ¶
func (tx *TokenUpdateTransaction) GetMetadataKey() Key
GetMetadataKey returns the metadata key
func (TokenUpdateTransaction) GetNodeAccountIDs ¶
func (e TokenUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenUpdateTransaction) GetPauseKey ¶
func (tx *TokenUpdateTransaction) GetPauseKey() Key
GetPauseKey returns the Key which can pause and unpause the Token
func (*TokenUpdateTransaction) GetSupplyKey ¶
func (tx *TokenUpdateTransaction) GetSupplyKey() Key
GetSupplyKey returns the new Supply key of the Token
func (*TokenUpdateTransaction) GetTokenID ¶
func (tx *TokenUpdateTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID for this TokenUpdateTransaction
func (*TokenUpdateTransaction) GetTokenMemo ¶
func (tx *TokenUpdateTransaction) GetTokenMemo() string
func (*TokenUpdateTransaction) GetTokenMetadata ¶
func (tx *TokenUpdateTransaction) GetTokenMetadata() []byte
GetTokenMetadata returns the token metadata
func (*TokenUpdateTransaction) GetTokenName ¶
func (tx *TokenUpdateTransaction) GetTokenName() string
GetTokenName returns the TokenName for this TokenUpdateTransaction
func (*TokenUpdateTransaction) GetTokenSymbol ¶
func (tx *TokenUpdateTransaction) GetTokenSymbol() string
func (*TokenUpdateTransaction) GetTreasuryAccountID ¶
func (tx *TokenUpdateTransaction) GetTreasuryAccountID() AccountID
func (*TokenUpdateTransaction) GetWipeKey ¶
func (tx *TokenUpdateTransaction) GetWipeKey() Key
GetWipeKey returns the new Wipe key of the Token
func (*TokenUpdateTransaction) SetAdminKey ¶
func (tx *TokenUpdateTransaction) SetAdminKey(publicKey Key) *TokenUpdateTransaction
SetAdminKey Sets the new Admin key of the Token. If Token is immutable, transaction will resolve to TOKEN_IS_IMMUTABlE.
func (*TokenUpdateTransaction) SetAutoRenewAccount ¶
func (tx *TokenUpdateTransaction) SetAutoRenewAccount(autoRenewAccountID AccountID) *TokenUpdateTransaction
SetAutoRenewAccount Sets the new account which will be automatically charged to renew the token's expiration, at autoRenewPeriod interval.
func (*TokenUpdateTransaction) SetAutoRenewPeriod ¶
func (tx *TokenUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenUpdateTransaction
SetAutoRenewPeriod Sets the new interval at which the auto-renew account will be charged to extend the token's expiry.
func (*TokenUpdateTransaction) SetAutoRenewPeriodSeconds ¶ added in v2.71.0
func (tx *TokenUpdateTransaction) SetAutoRenewPeriodSeconds(autoRenewPeriod int64) *TokenUpdateTransaction
func (*TokenUpdateTransaction) SetExpirationTime ¶
func (tx *TokenUpdateTransaction) SetExpirationTime(expirationTime time.Time) *TokenUpdateTransaction
SetExpirationTime Sets the new expiry time of the token. Expiry can be updated even if admin key is not set. If the provided expiry is earlier than the current token expiry, transaction wil resolve to INVALID_EXPIRATION_TIME
func (*TokenUpdateTransaction) SetFeeScheduleKey ¶
func (tx *TokenUpdateTransaction) SetFeeScheduleKey(key Key) *TokenUpdateTransaction
SetFeeScheduleKey If set, the new key to use to update the token's custom fee schedule; if the token does not currently have this key, transaction will resolve to TOKEN_HAS_NO_FEE_SCHEDULE_KEY
func (*TokenUpdateTransaction) SetFreezeKey ¶
func (tx *TokenUpdateTransaction) SetFreezeKey(publicKey Key) *TokenUpdateTransaction
SetFreezeKey Sets the new Freeze key of the Token. If the Token does not have currently a Freeze key, transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.
func (*TokenUpdateTransaction) SetKeyVerificationMode ¶
func (tx *TokenUpdateTransaction) SetKeyVerificationMode(verificationMode TokenKeyValidation) *TokenUpdateTransaction
SetKeyVerificationMode sets the token key verification mode
func (*TokenUpdateTransaction) SetKycKey ¶
func (tx *TokenUpdateTransaction) SetKycKey(publicKey Key) *TokenUpdateTransaction
SetKycKey Sets the new KYC key of the Token. If Token does not have currently a KYC key, transaction will resolve to TOKEN_HAS_NO_KYC_KEY.
func (*TokenUpdateTransaction) SetMetadataKey ¶
func (tx *TokenUpdateTransaction) SetMetadataKey(key Key) *TokenUpdateTransaction
SetMetadataKey Set the Key which can update the metadata.
func (*TokenUpdateTransaction) SetPauseKey ¶
func (tx *TokenUpdateTransaction) SetPauseKey(publicKey Key) *TokenUpdateTransaction
SetPauseKey Sets the Key which can pause and unpause the Token. If the Token does not currently have a pause key, transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY
func (*TokenUpdateTransaction) SetSupplyKey ¶
func (tx *TokenUpdateTransaction) SetSupplyKey(publicKey Key) *TokenUpdateTransaction
SetSupplyKey Sets the new Supply key of the Token. If the Token does not have currently a Supply key, transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.
func (*TokenUpdateTransaction) SetTokenID ¶
func (tx *TokenUpdateTransaction) SetTokenID(tokenID TokenID) *TokenUpdateTransaction
SetTokenID Sets the Token to be updated
func (*TokenUpdateTransaction) SetTokenMemo ¶
func (tx *TokenUpdateTransaction) SetTokenMemo(memo string) *TokenUpdateTransaction
SetTokenMemo If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes)
func (*TokenUpdateTransaction) SetTokenMetadata ¶
func (tx *TokenUpdateTransaction) SetTokenMetadata(metadata []byte) *TokenUpdateTransaction
SetTokenMetadata sets the token metadata
func (*TokenUpdateTransaction) SetTokenName ¶
func (tx *TokenUpdateTransaction) SetTokenName(name string) *TokenUpdateTransaction
SetTokenName Sets the new Name of the Token. Must be a string of ASCII characters.
func (*TokenUpdateTransaction) SetTokenSymbol ¶
func (tx *TokenUpdateTransaction) SetTokenSymbol(symbol string) *TokenUpdateTransaction
SetTokenSymbol Sets the new Symbol of the Token. Must be UTF-8 capitalized alphabetical string identifying the token.
func (*TokenUpdateTransaction) SetTreasuryAccountID ¶
func (tx *TokenUpdateTransaction) SetTreasuryAccountID(treasuryAccountID AccountID) *TokenUpdateTransaction
SetTreasuryAccountID sets thehe new Treasury account of the Token. If the provided treasury account is not existing or deleted, the _Response will be INVALID_TREASURY_ACCOUNT_FOR_TOKEN. If successful, the Token balance held in the previous Treasury Account is transferred to the new one.
func (*TokenUpdateTransaction) SetWipeKey ¶
func (tx *TokenUpdateTransaction) SetWipeKey(publicKey Key) *TokenUpdateTransaction
SetWipeKey Sets the new Wipe key of the Token. If the Token does not have currently a Wipe key, transaction will resolve to TOKEN_HAS_NO_WIPE_KEY.
type TokenWipeTransaction ¶
type TokenWipeTransaction struct { *Transaction[*TokenWipeTransaction] // contains filtered or unexported fields }
TokenWipeTransaction Wipes the provided amount of tokens from the specified Account. Must be signed by the Token's Wipe key. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If Wipe Key is not present in the Token, transaction results in TOKEN_HAS_NO_WIPE_KEY. If the provided account is the Token's Treasury Account, transaction results in CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT On success, tokens are removed from the account and the total supply of the token is decreased by the wiped amount.
The amount provided is in the lowest denomination possible. Example: Token A has 2 decimals. In order to wipe 100 tokens from account, one must provide amount of 10000. In order to wipe 100.55 tokens, one must provide amount of 10055.
func NewTokenWipeTransaction ¶
func NewTokenWipeTransaction() *TokenWipeTransaction
NewTokenWipeTransaction creates TokenWipeTransaction which wipes the provided amount of tokens from the specified Account. Must be signed by the Token's Wipe key. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If Wipe Key is not present in the Token, transaction results in TOKEN_HAS_NO_WIPE_KEY. If the provided account is the Token's Treasury Account, transaction results in CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT On success, tokens are removed from the account and the total supply of the token is decreased by the wiped amount.
The amount provided is in the lowest denomination possible. Example: Token A has 2 decimals. In order to wipe 100 tokens from account, one must provide amount of 10000. In order to wipe 100.55 tokens, one must provide amount of 10055.
func (*TokenWipeTransaction) GetAccountID ¶
func (tx *TokenWipeTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID that is being wiped
func (*TokenWipeTransaction) GetAmount ¶
func (tx *TokenWipeTransaction) GetAmount() uint64
GetAmount returns the amount of tokens to be wiped from the specified account
func (TokenWipeTransaction) GetNodeAccountIDs ¶
func (e TokenWipeTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TokenWipeTransaction) GetSerialNumbers ¶
func (tx *TokenWipeTransaction) GetSerialNumbers() []int64
GetSerialNumbers returns the list of serial numbers to be wiped.
func (*TokenWipeTransaction) GetTokenID ¶
func (tx *TokenWipeTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID that is being wiped
func (*TokenWipeTransaction) SetAccountID ¶
func (tx *TokenWipeTransaction) SetAccountID(accountID AccountID) *TokenWipeTransaction
SetAccountID Sets the account to be wiped
func (*TokenWipeTransaction) SetAmount ¶
func (tx *TokenWipeTransaction) SetAmount(amount uint64) *TokenWipeTransaction
SetAmount Sets the amount of tokens to wipe from the specified account. Amount must be a positive non-zero number in the lowest denomination possible, not bigger than the token balance of the account (0; balance]
func (*TokenWipeTransaction) SetSerialNumbers ¶
func (tx *TokenWipeTransaction) SetSerialNumbers(serial []int64) *TokenWipeTransaction
SetSerialNumbers Sets applicable to tokens of type NON_FUNGIBLE_UNIQUE. The list of serial numbers to be wiped.
func (*TokenWipeTransaction) SetTokenID ¶
func (tx *TokenWipeTransaction) SetTokenID(tokenID TokenID) *TokenWipeTransaction
SetTokenID Sets the token for which the account will be wiped. If token does not exist, transaction results in INVALID_TOKEN_ID
type TopicCreateTransaction ¶
type TopicCreateTransaction struct { *Transaction[*TopicCreateTransaction] // contains filtered or unexported fields }
A TopicCreateTransaction is for creating a new Topic on HCS.
func NewTopicCreateTransaction ¶
func NewTopicCreateTransaction() *TopicCreateTransaction
NewTopicCreateTransaction creates a TopicCreateTransaction transaction which can be used to construct and execute a Create Topic Transaction.
func (*TopicCreateTransaction) AddCustomFee ¶ added in v2.56.0
func (tx *TopicCreateTransaction) AddCustomFee(fee *CustomFixedFee) *TopicCreateTransaction
AddCustomFee adds a fixed fee to assess when a message is submitted to the new topic.
func (*TopicCreateTransaction) AddFeeExemptKey ¶ added in v2.56.0
func (tx *TopicCreateTransaction) AddFeeExemptKey(key Key) *TopicCreateTransaction
AddFeeExemptKey adds a key that will be exempt from paying fees.
func (*TopicCreateTransaction) ClearCustomFees ¶ added in v2.56.0
func (tx *TopicCreateTransaction) ClearCustomFees() *TopicCreateTransaction
ClearCustomFees removes all custom fees to assess when a message is submitted to the new topic.
func (*TopicCreateTransaction) ClearFeeExemptKeys ¶ added in v2.56.0
func (tx *TopicCreateTransaction) ClearFeeExemptKeys() *TopicCreateTransaction
ClearFeeExemptKeys removes all keys that will be exempt from paying fees.
func (*TopicCreateTransaction) GetAdminKey ¶
func (tx *TopicCreateTransaction) GetAdminKey() (Key, error)
GetAdminKey returns the key required to update or delete the topic
func (*TopicCreateTransaction) GetAutoRenewAccountID ¶
func (tx *TopicCreateTransaction) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the auto renew account ID for this topic
func (*TopicCreateTransaction) GetAutoRenewPeriod ¶
func (tx *TopicCreateTransaction) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the auto renew period for this topic
func (*TopicCreateTransaction) GetCustomFees ¶ added in v2.56.0
func (tx *TopicCreateTransaction) GetCustomFees() []*CustomFixedFee
GetCustomFees returns the fixed fees to assess when a message is submitted to the new topic.
func (*TopicCreateTransaction) GetFeeExemptKeys ¶ added in v2.56.0
func (tx *TopicCreateTransaction) GetFeeExemptKeys() []Key
GetFeeExemptKeys returns the keys that will be exempt from paying fees.
func (*TopicCreateTransaction) GetFeeScheduleKey ¶ added in v2.56.0
func (tx *TopicCreateTransaction) GetFeeScheduleKey() Key
GetFeeScheduleKey returns the key which allows updates to the new topic’s fees.
func (TopicCreateTransaction) GetNodeAccountIDs ¶
func (e TopicCreateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TopicCreateTransaction) GetSubmitKey ¶
func (tx *TopicCreateTransaction) GetSubmitKey() (Key, error)
GetSubmitKey returns the key required for submitting messages to the topic
func (*TopicCreateTransaction) GetTopicMemo ¶
func (tx *TopicCreateTransaction) GetTopicMemo() string
GetTopicMemo returns the memo for this topic
func (*TopicCreateTransaction) SetAdminKey ¶
func (tx *TopicCreateTransaction) SetAdminKey(publicKey Key) *TopicCreateTransaction
SetAdminKey sets the key required to update or delete the topic. If unspecified, anyone can increase the topic's expirationTime.
func (*TopicCreateTransaction) SetAutoRenewAccountID ¶
func (tx *TopicCreateTransaction) SetAutoRenewAccountID(autoRenewAccountID AccountID) *TopicCreateTransaction
SetAutoRenewAccountID sets an optional account to be used at the topic's expirationTime to extend the life of the topic. The topic lifetime will be extended up to a maximum of the autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the smaller duration/amount).
If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
func (*TopicCreateTransaction) SetAutoRenewPeriod ¶
func (tx *TopicCreateTransaction) SetAutoRenewPeriod(period time.Duration) *TopicCreateTransaction
SetAutoRenewPeriod sets the initial lifetime of the topic and the amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is configured and has sufficient funds.
Required. Limited to a maximum of 90 days (server-sIDe configuration which may change).
func (*TopicCreateTransaction) SetCustomFees ¶ added in v2.56.0
func (tx *TopicCreateTransaction) SetCustomFees(fees []*CustomFixedFee) *TopicCreateTransaction
SetCustomFees Sets the fixed fees to assess when a message is submitted to the new topic.
func (*TopicCreateTransaction) SetFeeExemptKeys ¶ added in v2.56.0
func (tx *TopicCreateTransaction) SetFeeExemptKeys(keys []Key) *TopicCreateTransaction
SetFeeExemptKeys sets the keys that will be exempt from paying fees.
func (*TopicCreateTransaction) SetFeeScheduleKey ¶ added in v2.56.0
func (tx *TopicCreateTransaction) SetFeeScheduleKey(publicKey Key) *TopicCreateTransaction
SetFeeScheduleKey sets the key which allows updates to the new topic’s fees.
func (*TopicCreateTransaction) SetSubmitKey ¶
func (tx *TopicCreateTransaction) SetSubmitKey(publicKey Key) *TopicCreateTransaction
SetSubmitKey sets the key required for submitting messages to the topic. If unspecified, all submissions are allowed.
func (*TopicCreateTransaction) SetTopicMemo ¶
func (tx *TopicCreateTransaction) SetTopicMemo(memo string) *TopicCreateTransaction
SetTopicMemo sets a short publicly visible memo about the topic. No guarantee of uniqueness.
type TopicDeleteTransaction ¶
type TopicDeleteTransaction struct { *Transaction[*TopicDeleteTransaction] // contains filtered or unexported fields }
TopicDeleteTransaction is for deleting a topic on HCS.
func NewTopicDeleteTransaction ¶
func NewTopicDeleteTransaction() *TopicDeleteTransaction
NewTopicDeleteTransaction creates a TopicDeleteTransaction which can be used to construct and execute a Consensus Delete Topic Transaction.
func (TopicDeleteTransaction) GetNodeAccountIDs ¶
func (e TopicDeleteTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TopicDeleteTransaction) GetTopicID ¶
func (tx *TopicDeleteTransaction) GetTopicID() TopicID
GetTopicID returns the topic IDentifier.
func (*TopicDeleteTransaction) SetTopicID ¶
func (tx *TopicDeleteTransaction) SetTopicID(topicID TopicID) *TopicDeleteTransaction
SetTopicID sets the topic IDentifier.
type TopicID ¶
type TopicID struct { Shard uint64 Realm uint64 Topic uint64 // contains filtered or unexported fields }
TopicID is a unique identifier for a topic (used by the service)
func TopicIDFromBytes ¶
TopicIDFromBytes constructs a TopicID from a byte array
func TopicIDFromEvmAddress ¶ added in v2.66.0
TopicIDFromEvmAddress constructs an TopicID from a string formatted as shard.realm.<evm address>
func TopicIDFromSolidityAddress ¶
TopicIDFromSolidityAddress constructs an TopicID from a string representation of a _Solidity address Deprecated: use TopicIDFromEvmAddress instead
func TopicIDFromString ¶
TopicIDFromString constructs a TopicID from a string formatted as `Shard.Realm.Topic` (for example "0.0.3")
func (TopicID) String ¶
String returns the string representation of a TopicID in `Shard.Realm.Topic` (for example "0.0.3")
func (TopicID) ToEvmAddress ¶ added in v2.66.0
ToEvmAddress returns EVM-compatible address representation of the entity
func (TopicID) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of the TopicID as a _Solidity address. Deprecated: use ToEvmAddress instead
func (TopicID) ToStringWithChecksum ¶
ToStringWithChecksum returns the string representation of a TopicID in `Shard.Realm.Topic-Checksum` (for example "0.0.3-abcde")
func (*TopicID) ValidateChecksum ¶
Verify that the client has a valid checksum.
type TopicInfo ¶
type TopicInfo struct { TopicMemo string RunningHash []byte SequenceNumber uint64 ExpirationTime time.Time AdminKey Key SubmitKey Key FeeScheduleKey Key FeeExemptKeys []Key CustomFees []*CustomFixedFee AutoRenewPeriod time.Duration AutoRenewAccountID *AccountID LedgerID LedgerID }
TopicInfo is the information about a topic
func TopicInfoFromBytes ¶
TopicInfoFromBytes returns a TopicInfo object from a byte array
type TopicInfoQuery ¶
type TopicInfoQuery struct { Query // contains filtered or unexported fields }
TopicInfo is the Query for retrieving information about a topic stored on the Hiero network.
func NewTopicInfoQuery ¶
func NewTopicInfoQuery() *TopicInfoQuery
NewTopicInfoQuery creates a TopicInfoQuery query which can be used to construct and execute a
Get Topic Info Query.
func (*TopicInfoQuery) Execute ¶
func (q *TopicInfoQuery) Execute(client *Client) (TopicInfo, error)
Execute executes the TopicInfoQuery using the provided client
func (*TopicInfoQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*TopicInfoQuery) GetLogLevel ¶
func (e *TopicInfoQuery) GetLogLevel() *LogLevel
func (*TopicInfoQuery) GetMaxBackoff ¶
func (*TopicInfoQuery) GetMaxRetry ¶
func (e *TopicInfoQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*TopicInfoQuery) GetMinBackoff ¶
func (*TopicInfoQuery) GetNodeAccountIDs ¶
func (e *TopicInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TopicInfoQuery) GetTopicID ¶
func (q *TopicInfoQuery) GetTopicID() TopicID
GetTopicID returns the TopicID for this TopicInfoQuery
func (*TopicInfoQuery) SetGrpcDeadline ¶
func (q *TopicInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TopicInfoQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TopicInfoQuery) SetLogLevel ¶
func (q *TopicInfoQuery) SetLogLevel(level LogLevel) *TopicInfoQuery
func (*TopicInfoQuery) SetMaxBackoff ¶
func (q *TopicInfoQuery) SetMaxBackoff(max time.Duration) *TopicInfoQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*TopicInfoQuery) SetMaxQueryPayment ¶
func (q *TopicInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TopicInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TopicInfoQuery) SetMaxRetry ¶
func (q *TopicInfoQuery) SetMaxRetry(count int) *TopicInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TopicInfoQuery) SetMinBackoff ¶
func (q *TopicInfoQuery) SetMinBackoff(min time.Duration) *TopicInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TopicInfoQuery) SetNodeAccountIDs ¶
func (q *TopicInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TopicInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this TopicInfoQuery.
func (*TopicInfoQuery) SetPaymentTransactionID ¶
func (q *TopicInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TopicInfoQuery
func (*TopicInfoQuery) SetQueryPayment ¶
func (q *TopicInfoQuery) SetQueryPayment(paymentAmount Hbar) *TopicInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*TopicInfoQuery) SetTopicID ¶
func (q *TopicInfoQuery) SetTopicID(topicID TopicID) *TopicInfoQuery
SetTopicID sets the topic to retrieve info about (the parameters and running state of).
type TopicMessage ¶
type TopicMessage struct { ConsensusTimestamp time.Time Contents []byte RunningHash []byte SequenceNumber uint64 Chunks []TopicMessageChunk TransactionID *TransactionID }
TopicMessage is a message from a topic}
type TopicMessageChunk ¶
type TopicMessageChunk struct { ConsensusTimestamp time.Time ContentSize uint64 RunningHash []byte SequenceNumber uint64 }
TopicMessageChunk is a chunk of a topic message
type TopicMessageQuery ¶
type TopicMessageQuery struct {
// contains filtered or unexported fields
}
TopicMessageQuery Query that listens to messages sent to the specific TopicID
func NewTopicMessageQuery ¶
func NewTopicMessageQuery() *TopicMessageQuery
NewTopicMessageQuery creates TopicMessageQuery which listens to messages sent to the specific TopicID
func (*TopicMessageQuery) GetEndTime ¶
func (query *TopicMessageQuery) GetEndTime() time.Time
func (*TopicMessageQuery) GetLimit ¶
func (query *TopicMessageQuery) GetLimit() uint64
func (*TopicMessageQuery) GetMaxAttempts ¶
func (query *TopicMessageQuery) GetMaxAttempts() uint64
GetMaxAttempts returns the amount of attempts to try to retrieve message
func (*TopicMessageQuery) GetStartTime ¶
func (query *TopicMessageQuery) GetStartTime() time.Time
GetStartTime returns the start time for this TopicMessageQuery
func (*TopicMessageQuery) GetTopicID ¶
func (query *TopicMessageQuery) GetTopicID() TopicID
GetTopicID returns the TopicID for this TopicMessageQuery
func (*TopicMessageQuery) SetCompletionHandler ¶
func (query *TopicMessageQuery) SetCompletionHandler(completionHandler func()) *TopicMessageQuery
SetCompletionHandler Sets the completion handler for this query
func (*TopicMessageQuery) SetEndTime ¶
func (query *TopicMessageQuery) SetEndTime(endTime time.Time) *TopicMessageQuery
SetEndTime Sets time when to stop listening for messages. If not set it will receive indefinitely.
func (*TopicMessageQuery) SetErrorHandler ¶
func (query *TopicMessageQuery) SetErrorHandler(errorHandler func(stat status.Status)) *TopicMessageQuery
SetErrorHandler Sets the error handler for this query
func (*TopicMessageQuery) SetLimit ¶
func (query *TopicMessageQuery) SetLimit(limit uint64) *TopicMessageQuery
SetLimit Sets the maximum number of messages to receive before stopping. If not set or set to zero it will return messages indefinitely.
func (*TopicMessageQuery) SetMaxAttempts ¶
func (query *TopicMessageQuery) SetMaxAttempts(maxAttempts uint64) *TopicMessageQuery
SetMaxAttempts Sets the amount of attempts to try to retrieve message
func (*TopicMessageQuery) SetRetryHandler ¶
func (query *TopicMessageQuery) SetRetryHandler(retryHandler func(err error) bool) *TopicMessageQuery
SetRetryHandler Sets the retry handler for this query
func (*TopicMessageQuery) SetStartTime ¶
func (query *TopicMessageQuery) SetStartTime(startTime time.Time) *TopicMessageQuery
SetStartTime Sets time for when to start listening for messages. Defaults to current time if not set.
func (*TopicMessageQuery) SetTopicID ¶
func (query *TopicMessageQuery) SetTopicID(topicID TopicID) *TopicMessageQuery
SetTopicID Sets topic ID to retrieve messages for. Required
func (*TopicMessageQuery) Subscribe ¶
func (query *TopicMessageQuery) Subscribe(client *Client, onNext func(TopicMessage)) (SubscriptionHandle, error)
Subscribe subscribes to messages sent to the specific TopicID
type TopicMessageSubmitTransaction ¶
type TopicMessageSubmitTransaction struct { *Transaction[*TopicMessageSubmitTransaction] // contains filtered or unexported fields }
TopicMessageSubmitTransaction Sends a message/messages to the Topic ID
func NewTopicMessageSubmitTransaction ¶
func NewTopicMessageSubmitTransaction() *TopicMessageSubmitTransaction
NewTopicMessageSubmitTransaction createsTopicMessageSubmitTransaction which sends a message/messages to the Topic ID
func (*TopicMessageSubmitTransaction) AddCustomFeeLimit ¶ added in v2.56.0
func (tx *TopicMessageSubmitTransaction) AddCustomFeeLimit(customFeeLimit *CustomFeeLimit) *TopicMessageSubmitTransaction
AddCustomFeeLimit Adds the maximum custom fee that the user is willing to pay for the message.
func (*TopicMessageSubmitTransaction) ClearCustomFeeLimits ¶ added in v2.56.0
func (tx *TopicMessageSubmitTransaction) ClearCustomFeeLimits() *TopicMessageSubmitTransaction
ClearCustomFeeLimits Clears the maximum custom fee that the user is willing to pay for the message.
func (*TopicMessageSubmitTransaction) Execute ¶
func (tx *TopicMessageSubmitTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Query with the provided client
func (*TopicMessageSubmitTransaction) ExecuteAll ¶
func (tx *TopicMessageSubmitTransaction) ExecuteAll( client *Client, ) ([]TransactionResponse, error)
ExecuteAll executes the all the Transactions with the provided client
func (*TopicMessageSubmitTransaction) Freeze ¶
func (tx *TopicMessageSubmitTransaction) Freeze() (*TopicMessageSubmitTransaction, error)
func (*TopicMessageSubmitTransaction) FreezeWith ¶
func (tx *TopicMessageSubmitTransaction) FreezeWith(client *Client) (*TopicMessageSubmitTransaction, error)
func (*TopicMessageSubmitTransaction) GetChunkSize ¶ added in v2.68.0
func (tx *TopicMessageSubmitTransaction) GetChunkSize() uint64
GetChunkSize returns the chunk size to use to send the message
func (*TopicMessageSubmitTransaction) GetCustomFeeLimits ¶ added in v2.56.0
func (tx *TopicMessageSubmitTransaction) GetCustomFeeLimits() []*CustomFeeLimit
GetCustomFeeLimits Gets the maximum custom fee that the user is willing to pay for the message.
func (*TopicMessageSubmitTransaction) GetMaxChunks ¶
func (tx *TopicMessageSubmitTransaction) GetMaxChunks() uint64
GetMaxChunks returns the maximum amount of chunks to use to send the message
func (*TopicMessageSubmitTransaction) GetMessage ¶
func (tx *TopicMessageSubmitTransaction) GetMessage() []byte
func (TopicMessageSubmitTransaction) GetNodeAccountIDs ¶
func (e TopicMessageSubmitTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TopicMessageSubmitTransaction) GetTopicID ¶
func (tx *TopicMessageSubmitTransaction) GetTopicID() TopicID
GetTopicID returns the TopicID for this TopicMessageSubmitTransaction
func (*TopicMessageSubmitTransaction) Schedule ¶
func (tx *TopicMessageSubmitTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TopicMessageSubmitTransaction) SetChunkSize ¶ added in v2.68.0
func (tx *TopicMessageSubmitTransaction) SetChunkSize(chunkSize uint64) *TopicMessageSubmitTransaction
SetChunkSize sets the chunk size to use to send the message
func (*TopicMessageSubmitTransaction) SetCustomFeeLimits ¶ added in v2.56.0
func (tx *TopicMessageSubmitTransaction) SetCustomFeeLimits(customFeeLimits []*CustomFeeLimit) *TopicMessageSubmitTransaction
SetCustomFeeLimits Sets the maximum custom fee that the user is willing to pay for the message.
func (*TopicMessageSubmitTransaction) SetMaxChunks ¶
func (tx *TopicMessageSubmitTransaction) SetMaxChunks(maxChunks uint64) *TopicMessageSubmitTransaction
SetMaxChunks sets the maximum amount of chunks to use to send the message
func (*TopicMessageSubmitTransaction) SetMessage ¶
func (tx *TopicMessageSubmitTransaction) SetMessage(message interface{}) *TopicMessageSubmitTransaction
SetMessage Sets the message to be submitted. The message should be a byte array or a string If other types are provided, it will not set the value
func (*TopicMessageSubmitTransaction) SetTopicID ¶
func (tx *TopicMessageSubmitTransaction) SetTopicID(topicID TopicID) *TopicMessageSubmitTransaction
SetTopicID Sets the topic to submit message to.
type TopicUpdateTransaction ¶
type TopicUpdateTransaction struct { *Transaction[*TopicUpdateTransaction] // contains filtered or unexported fields }
TopicUpdateTransaction Updates all fields on a Topic that are set in the transaction.
func NewTopicUpdateTransaction ¶
func NewTopicUpdateTransaction() *TopicUpdateTransaction
NewTopicUpdateTransaction creates a TopicUpdateTransaction transaction which updates all fields on a Topic that are set in the transaction.
func (*TopicUpdateTransaction) AddCustomFee ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) AddCustomFee(fee *CustomFixedFee) *TopicUpdateTransaction
AddCustomFee adds a fixed fee to assess when a message is submitted to the new topic.
func (*TopicUpdateTransaction) AddFeeExemptKey ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) AddFeeExemptKey(key Key) *TopicUpdateTransaction
AddFeeExemptKey adds a key that will be exempt from paying fees.
func (*TopicUpdateTransaction) ClearAdminKey ¶
func (tx *TopicUpdateTransaction) ClearAdminKey() *TopicUpdateTransaction
ClearAdminKey explicitly clears any admin key on the topic by sending an empty key list as the key
func (*TopicUpdateTransaction) ClearAutoRenewAccountID ¶
func (tx *TopicUpdateTransaction) ClearAutoRenewAccountID() *TopicUpdateTransaction
ClearAutoRenewAccountID explicitly clears any auto renew account ID on the topic by sending an empty accountID
func (*TopicUpdateTransaction) ClearCustomFees ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) ClearCustomFees() *TopicUpdateTransaction
ClearCustomFees removes all fixed fees to assess when a message is submitted to the new topic.
func (*TopicUpdateTransaction) ClearFeeExemptKeys ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) ClearFeeExemptKeys() *TopicUpdateTransaction
ClearFeeExemptKeys removes all keys that will be exempt from paying fees.
func (*TopicUpdateTransaction) ClearSubmitKey ¶
func (tx *TopicUpdateTransaction) ClearSubmitKey() *TopicUpdateTransaction
ClearSubmitKey explicitly clears any submit key on the topic by sending an empty key list as the key
func (*TopicUpdateTransaction) ClearTopicMemo ¶
func (tx *TopicUpdateTransaction) ClearTopicMemo() *TopicUpdateTransaction
ClearTopicMemo explicitly clears any memo on the topic by sending an empty string as the memo
func (*TopicUpdateTransaction) GetAdminKey ¶
func (tx *TopicUpdateTransaction) GetAdminKey() (Key, error)
GetAdminKey returns the key required to update/delete the topic.
func (*TopicUpdateTransaction) GetAutoRenewAccountID ¶
func (tx *TopicUpdateTransaction) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the optional account to be used at the topic's expirationTime to extend the life of the topic.
func (*TopicUpdateTransaction) GetAutoRenewPeriod ¶
func (tx *TopicUpdateTransaction) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is configured and has funds.
func (*TopicUpdateTransaction) GetCustomFees ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) GetCustomFees() []*CustomFixedFee
GetCustomFees returns the fixed fees to assess when a message is submitted to the new topic.
func (*TopicUpdateTransaction) GetExpirationTime ¶
func (tx *TopicUpdateTransaction) GetExpirationTime() time.Time
GetExpirationTime returns the effective timestamp at (and after) which all transactions and queries will fail.
func (*TopicUpdateTransaction) GetFeeExemptKeys ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) GetFeeExemptKeys() []Key
GetFeeExemptKeys returns the keys that will be exempt from paying fees.
func (*TopicUpdateTransaction) GetFeeScheduleKey ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) GetFeeScheduleKey() Key
GetFeeScheduleKey returns the key which allows updates to the new topic’s fees.
func (TopicUpdateTransaction) GetNodeAccountIDs ¶
func (e TopicUpdateTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TopicUpdateTransaction) GetSubmitKey ¶
func (tx *TopicUpdateTransaction) GetSubmitKey() (Key, error)
GetSubmitKey returns the key allowed to submit messages to the topic.
func (*TopicUpdateTransaction) GetTopicID ¶
func (tx *TopicUpdateTransaction) GetTopicID() TopicID
GetTopicID returns the topic to be updated.
func (*TopicUpdateTransaction) GetTopicMemo ¶
func (tx *TopicUpdateTransaction) GetTopicMemo() string
GetTopicMemo returns the short publicly visible memo about the topic.
func (*TopicUpdateTransaction) SetAdminKey ¶
func (tx *TopicUpdateTransaction) SetAdminKey(publicKey Key) *TopicUpdateTransaction
SetAdminKey sets the key required to update/delete the topic. If unset, the key will not be changed.
Setting the AdminKey to an empty KeyList will clear the adminKey.
func (*TopicUpdateTransaction) SetAutoRenewAccountID ¶
func (tx *TopicUpdateTransaction) SetAutoRenewAccountID(autoRenewAccountID AccountID) *TopicUpdateTransaction
SetAutoRenewAccountID sets the optional account to be used at the topic's expirationTime to extend the life of the topic. The topic lifetime will be extended up to a maximum of the autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the smaller duration/amount). If specified as the default value (0.0.0), the autoRenewAccount will be removed.
func (*TopicUpdateTransaction) SetAutoRenewPeriod ¶
func (tx *TopicUpdateTransaction) SetAutoRenewPeriod(period time.Duration) *TopicUpdateTransaction
SetAutoRenewPeriod sets the amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is configured and has funds. This is limited to a maximum of 90 days (server-sIDe configuration which may change).
func (*TopicUpdateTransaction) SetCustomFees ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) SetCustomFees(fees []*CustomFixedFee) *TopicUpdateTransaction
SetCustomFees Sets the fixed fees to assess when a message is submitted to the new topic.
func (*TopicUpdateTransaction) SetExpirationTime ¶
func (tx *TopicUpdateTransaction) SetExpirationTime(expiration time.Time) *TopicUpdateTransaction
SetExpirationTime sets the effective timestamp at (and after) which all transactions and queries will fail. The expirationTime may be no longer than 90 days from the timestamp of this transaction.
func (*TopicUpdateTransaction) SetFeeExemptKeys ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) SetFeeExemptKeys(keys []Key) *TopicUpdateTransaction
SetFeeExemptKeys sets the keys that will be exempt from paying fees.
func (*TopicUpdateTransaction) SetFeeScheduleKey ¶ added in v2.56.0
func (tx *TopicUpdateTransaction) SetFeeScheduleKey(publicKey Key) *TopicUpdateTransaction
SetFeeScheduleKey sets the key which allows updates to the new topic’s fees.
func (*TopicUpdateTransaction) SetSubmitKey ¶
func (tx *TopicUpdateTransaction) SetSubmitKey(publicKey Key) *TopicUpdateTransaction
SetSubmitKey will set the key allowed to submit messages to the topic. If unset, the key will not be changed.
Setting the submitKey to an empty KeyList will clear the submitKey.
func (*TopicUpdateTransaction) SetTopicID ¶
func (tx *TopicUpdateTransaction) SetTopicID(topicID TopicID) *TopicUpdateTransaction
SetTopicID sets the topic to be updated.
func (*TopicUpdateTransaction) SetTopicMemo ¶
func (tx *TopicUpdateTransaction) SetTopicMemo(memo string) *TopicUpdateTransaction
SetTopicMemo sets a short publicly visible memo about the topic. No guarantee of uniqueness.
type Transaction ¶
type Transaction[T TransactionInterface] struct { *BaseTransaction // contains filtered or unexported fields }
Transaction is base struct for all transactions that may be built and submitted to hiero. It's generic over the type of transaction it contains. Example: TransferTransaction, ContractCreateTransaction, etc.
func (*Transaction[T]) AddSignature ¶
func (tx *Transaction[T]) AddSignature(publicKey PublicKey, signature []byte) T
func (*Transaction[T]) AddSignatureV2 ¶ added in v2.63.0
func (tx *Transaction[T]) AddSignatureV2(publicKey PublicKey, signature []byte, transactionID TransactionID, nodeID AccountID) (T, error)
AddSignatureV2 adds a signature to the transaction for a specific transaction id and node id. This is useful for signing chuncked transactions like FileAppendTransaction, since they can have multiple transaction ids.
func (*Transaction[T]) Batchify ¶ added in v2.61.0
func (tx *Transaction[T]) Batchify(client *Client, batchKey Key) (T, error)
Batchify method is used to mark a transaction as part of a batch transaction or make it so-called inner transaction. The Transaction will be frozen and signed by the operator of the client.
func (*Transaction[T]) Execute ¶
func (tx *Transaction[T]) Execute(client *Client) (TransactionResponse, error)
func (*Transaction[T]) Freeze ¶
func (tx *Transaction[T]) Freeze() (T, error)
func (*Transaction[T]) FreezeWith ¶
func (tx *Transaction[T]) FreezeWith(client *Client) (T, error)
func (*Transaction[T]) GetBatchKey ¶ added in v2.61.0
func (tx *Transaction[T]) GetBatchKey() Key
GetBatchKey returns the batch key for this transaction.
func (*Transaction[T]) GetDefaultMaxTransactionFee ¶
func (tx *Transaction[T]) GetDefaultMaxTransactionFee() Hbar
func (*Transaction[T]) GetGrpcDeadline ¶
func (tx *Transaction[T]) GetGrpcDeadline() *time.Duration
GetGrpcDeadline returns the grpc deadline
func (*Transaction[T]) GetLogLevel ¶
func (tx *Transaction[T]) GetLogLevel() *LogLevel
GetNodeAccountIDs returns the node AccountID for this transaction.
func (*Transaction[T]) GetMaxBackoff ¶
func (tx *Transaction[T]) GetMaxBackoff() time.Duration
func (*Transaction[T]) GetMaxRetry ¶
func (tx *Transaction[T]) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*Transaction[T]) GetMaxTransactionFee ¶
func (tx *Transaction[T]) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*Transaction[T]) GetMinBackoff ¶
func (tx *Transaction[T]) GetMinBackoff() time.Duration
func (Transaction) GetNodeAccountIDs ¶
func (e Transaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*Transaction[T]) GetRegenerateTransactionID ¶
func (tx *Transaction[T]) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled
func (*Transaction[T]) GetSignableNodeBodyBytesList ¶ added in v2.63.0
func (tx *Transaction[T]) GetSignableNodeBodyBytesList() ([]SignableNodeTransactionBodyBytes, error)
GetSignableNodeBodyBytesList returns a list of SignableNodeTransactionBodyBytes objects for each signed transaction in the transaction list. The NodeID represents the node that this transaction is signed for. The TransactionID is useful for signing chuncked transactions like FileAppendTransaction, since they can have multiple transaction ids.
func (*Transaction[T]) GetSignatures ¶
func (tx *Transaction[T]) GetSignatures() (map[AccountID]map[*PublicKey][]byte, error)
GetSignatures Gets all of the signatures stored in the transaction
func (*Transaction[T]) GetSignedTransactionBodyBytes ¶
func (tx *Transaction[T]) GetSignedTransactionBodyBytes(transactionIndex int) []byte
GetSignedTransactionBodyBytes
func (*Transaction[T]) GetTransactionBodySize ¶ added in v2.64.0
func (tx *Transaction[T]) GetTransactionBodySize() (int, error)
GetTransactionBodySize returns the total size of the transactions body, without the signatures
func (*Transaction[T]) GetTransactionBodySizeAllChunks ¶ added in v2.64.0
func (tx *Transaction[T]) GetTransactionBodySizeAllChunks() ([]int, error)
GetTransactionBodySizeAllChunks returns the total size of the transaction, for all chunks.
func (*Transaction[T]) GetTransactionHash ¶
func (tx *Transaction[T]) GetTransactionHash() ([]byte, error)
func (*Transaction[T]) GetTransactionHashPerNode ¶
func (tx *Transaction[T]) GetTransactionHashPerNode() (map[AccountID][]byte, error)
func (*Transaction[T]) GetTransactionID ¶
func (tx *Transaction[T]) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this transaction.
func (*Transaction[T]) GetTransactionMemo ¶
func (tx *Transaction[T]) GetTransactionMemo() string
GetTransactionMemo returns the memo for this transaction.
func (*Transaction[T]) GetTransactionSize ¶ added in v2.64.0
func (tx *Transaction[T]) GetTransactionSize() (int, error)
GetTransactionSize returns the total size of the transaction in bytes.
func (*Transaction[T]) GetTransactionValidDuration ¶
func (tx *Transaction[T]) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*Transaction[T]) IsFrozen ¶
func (tx *Transaction[T]) IsFrozen() bool
func (*Transaction[T]) Schedule ¶
func (tx *Transaction[T]) Schedule() (*ScheduleCreateTransaction, error)
func (*Transaction[T]) SetBatchKey ¶ added in v2.61.0
func (tx *Transaction[T]) SetBatchKey(batchKey Key) T
SetBatchKey sets the batch key for this transaction.
func (*Transaction[T]) SetGrpcDeadline ¶
func (tx *Transaction[T]) SetGrpcDeadline(deadline *time.Duration) T
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*Transaction[T]) SetLogLevel ¶
func (tx *Transaction[T]) SetLogLevel(level LogLevel) T
SetNodeAccountIDs sets the node AccountID for this transaction.
func (*Transaction[T]) SetMaxBackoff ¶
func (tx *Transaction[T]) SetMaxBackoff(max time.Duration) T
func (*Transaction[T]) SetMaxRetry ¶
func (tx *Transaction[T]) SetMaxRetry(max int) T
SetMaxRetry sets the max number of errors before execution will fail.
func (*Transaction[T]) SetMaxTransactionFee ¶
func (tx *Transaction[T]) SetMaxTransactionFee(fee Hbar) T
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*Transaction[T]) SetMinBackoff ¶
func (tx *Transaction[T]) SetMinBackoff(min time.Duration) T
func (*Transaction[T]) SetNodeAccountIDs ¶
func (tx *Transaction[T]) SetNodeAccountIDs(nodeAccountIDs []AccountID) T
SetNodeAccountIDs sets the node AccountID for this transaction.
func (*Transaction[T]) SetRegenerateTransactionID ¶
func (tx *Transaction[T]) SetRegenerateTransactionID(regenerateTransactionID bool) T
SetRegenerateTransactionID sets if transaction IDs should be regenerated when \`TRANSACTION_EXPIRED\` is received
func (*Transaction[T]) SetTransactionID ¶
func (tx *Transaction[T]) SetTransactionID(transactionID TransactionID) T
SetTransactionID sets the TransactionID for this transaction.
func (*Transaction[T]) SetTransactionMemo ¶
func (tx *Transaction[T]) SetTransactionMemo(memo string) T
SetTransactionMemo sets the memo for this transaction.
func (*Transaction[T]) SetTransactionValidDuration ¶
func (tx *Transaction[T]) SetTransactionValidDuration(duration time.Duration) T
SetTransactionValidDuration sets the valid duration for this transaction.
func (*Transaction[T]) Sign ¶
func (tx *Transaction[T]) Sign(privateKey PrivateKey) T
------------ Transaction methdos ---------------
func (*Transaction[T]) SignWith ¶
func (tx *Transaction[T]) SignWith(publicKey PublicKey, signer TransactionSigner) T
func (*Transaction[T]) SignWithOperator ¶
func (tx *Transaction[T]) SignWithOperator(client *Client) (T, error)
func (*Transaction[T]) String ¶
func (tx *Transaction[T]) String() string
String returns a string representation of the transaction
func (*Transaction[T]) ToBytes ¶
func (tx *Transaction[T]) ToBytes() ([]byte, error)
ToBytes Builds then converts the current transaction to []byte Requires transaction to be frozen
type TransactionFeeSchedule ¶
type TransactionFeeSchedule struct { RequestType RequestType // Deprecated: use Fees FeeData *FeeData Fees []*FeeData }
func (TransactionFeeSchedule) String ¶
func (txFeeSchedule TransactionFeeSchedule) String() string
func (TransactionFeeSchedule) ToBytes ¶
func (txFeeSchedule TransactionFeeSchedule) ToBytes() []byte
type TransactionID ¶
type TransactionID struct { AccountID *AccountID ValidStart *time.Time Nonce *int32 // contains filtered or unexported fields }
TransactionID is the id used to identify a Transaction on the Hiero _Network. It consists of an AccountID and a a valid start time.
func NewTransactionIDWithValidStart ¶
func NewTransactionIDWithValidStart(accountID AccountID, validStart time.Time) TransactionID
NewTransactionIDWithValidStart constructs a new Transaction id struct with the provided AccountID and the valid start time set to a provided time.
func TransactionGetTransactionID ¶
func TransactionGetTransactionID(tx TransactionInterface) (TransactionID, error)
func TransactionIDFromBytes ¶
func TransactionIDFromBytes(data []byte) (TransactionID, error)
TransactionIDFromBytes constructs a TransactionID from a byte array
func TransactionIDGenerate ¶
func TransactionIDGenerate(accountID AccountID) TransactionID
NewTransactionID constructs a new Transaction id struct with the provided AccountID and the valid start time set to the current time - 10 seconds.
func TransactionIdFromString ¶
func TransactionIdFromString(data string) (TransactionID, error)
TransactionIDFromString constructs a TransactionID from a string representation
func (TransactionID) GetNonce ¶
func (id TransactionID) GetNonce() int32
GetNonce returns the nonce on the TransactionID
func (TransactionID) GetReceipt ¶
func (id TransactionID) GetReceipt(client *Client) (TransactionReceipt, error)
GetReceipt queries the _Network for a receipt corresponding to the TransactionID's transaction. If the status of the receipt is exceptional an ErrHederaReceiptStatus will be returned alongside the receipt, otherwise only the receipt will be returned.
func (TransactionID) GetRecord ¶
func (id TransactionID) GetRecord(client *Client) (TransactionRecord, error)
GetRecord queries the _Network for a record corresponding to the TransactionID's transaction. If the status of the record's receipt is exceptional an ErrHederaRecordStatus will be returned alongside the record, otherwise, only the record will be returned. If consensus has not been reached, this function will return a HederaReceiptError with a status of StatusBusy.
func (TransactionID) GetScheduled ¶
func (id TransactionID) GetScheduled() bool
GetScheduled returns the scheduled flag on the TransactionID
func (TransactionID) SetNonce ¶
func (id TransactionID) SetNonce(nonce int32) TransactionID
SetNonce sets the nonce on the TransactionID
func (TransactionID) SetScheduled ¶
func (id TransactionID) SetScheduled(scheduled bool) TransactionID
SetScheduled sets the scheduled flag on the TransactionID
func (TransactionID) String ¶
func (id TransactionID) String() string
String returns a string representation of the TransactionID in `AccountID@ValidStartSeconds.ValidStartNanos?scheduled_bool/nonce` format
func (TransactionID) ToBytes ¶
func (id TransactionID) ToBytes() []byte
ToBytes returns a byte array representation of the TransactionID
type TransactionInterface ¶
type TransactionInterface interface { // common methods for all executables Executable // contains filtered or unexported methods }
Interface that all concrete transactions must implement, eg. TransferTransaction, ContractCreateTransaction, etc.
func TransactionAddSignature ¶
func TransactionAddSignature(tx TransactionInterface, publicKey PublicKey, signature []byte) (TransactionInterface, error)
func TransactionFreezeWith ¶
func TransactionFreezeWith(tx TransactionInterface, client *Client) (TransactionInterface, error)
func TransactionFromBytes ¶
func TransactionFromBytes(data []byte) (TransactionInterface, error)
TransactionFromBytes converts transaction bytes to a related *transaction.
func TransactionSetMaxBackoff ¶
func TransactionSetMaxBackoff(tx TransactionInterface, maxBackoff time.Duration) (TransactionInterface, error)
func TransactionSetMaxTransactionFee ¶
func TransactionSetMaxTransactionFee(tx TransactionInterface, maxTransactionFee Hbar) (TransactionInterface, error)
func TransactionSetMinBackoff ¶
func TransactionSetMinBackoff(tx TransactionInterface, minBackoff time.Duration) (TransactionInterface, error)
func TransactionSetNodeAccountIDs ¶
func TransactionSetNodeAccountIDs(tx TransactionInterface, nodeAccountIDs []AccountID) (TransactionInterface, error)
func TransactionSetTransactionID ¶
func TransactionSetTransactionID(tx TransactionInterface, transactionID TransactionID) (TransactionInterface, error)
func TransactionSetTransactionMemo ¶
func TransactionSetTransactionMemo(tx TransactionInterface, transactionMemo string) (TransactionInterface, error)
func TransactionSetTransactionValidDuration ¶
func TransactionSetTransactionValidDuration(tx TransactionInterface, transactionValidDuration time.Duration) (TransactionInterface, error)
func TransactionSign ¶
func TransactionSign(tx TransactionInterface, key PrivateKey) (TransactionInterface, error)
func TransactionSignWithOperator ¶
func TransactionSignWithOperator(tx TransactionInterface, client *Client) (TransactionInterface, error)
func TransactionSignWth ¶
func TransactionSignWth(tx TransactionInterface, publicKKey PublicKey, signer TransactionSigner) (TransactionInterface, error)
type TransactionReceipt ¶
type TransactionReceipt struct { Status Status ExchangeRate *ExchangeRate NextExchangeRate *ExchangeRate TopicID *TopicID FileID *FileID ContractID *ContractID AccountID *AccountID TokenID *TokenID TopicSequenceNumber uint64 TopicRunningHash []byte TopicRunningHashVersion uint64 TotalSupply uint64 ScheduleID *ScheduleID ScheduledTransactionID *TransactionID SerialNumbers []int64 NodeID uint64 Duplicates []TransactionReceipt Children []TransactionReceipt TransactionID *TransactionID }
The consensus result for a transaction, which might not be currently known, or may succeed or fail.
func TransactionReceiptFromBytes ¶
func TransactionReceiptFromBytes(data []byte) (TransactionReceipt, error)
TransactionReceiptFromBytes returns the receipt from the byte representation
func (TransactionReceipt) MarshalJSON ¶
func (receipt TransactionReceipt) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON representation of the TransactionReceipt. This should yield the same result in all SDK's.
func (TransactionReceipt) ToBytes ¶
func (receipt TransactionReceipt) ToBytes() []byte
ToBytes returns the byte representation of the receipt
func (TransactionReceipt) ValidateStatus ¶
func (receipt TransactionReceipt) ValidateStatus(shouldValidate bool) error
ValidateStatus validates the status of the receipt
type TransactionReceiptQuery ¶
type TransactionReceiptQuery struct { Query // contains filtered or unexported fields }
TransactionReceiptQuery Get the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period. Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. This query is free (the payment field is left empty). No State proof is available for this response
func NewTransactionReceiptQuery ¶
func NewTransactionReceiptQuery() *TransactionReceiptQuery
NewTransactionReceiptQuery creates TransactionReceiptQuery which gets the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period. Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. This query is free (the payment field is left empty). No State proof is available for this response
func (*TransactionReceiptQuery) Execute ¶
func (q *TransactionReceiptQuery) Execute(client *Client) (TransactionReceipt, error)
Execute executes the Query with the provided client
func (*TransactionReceiptQuery) GetCost ¶
func (q *TransactionReceiptQuery) GetCost(client *Client) (Hbar, error)
func (*TransactionReceiptQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*TransactionReceiptQuery) GetIncludeChildren ¶
func (q *TransactionReceiptQuery) GetIncludeChildren() bool
GetIncludeChildren returns whether the response should include the receipts of any child transactions spawned by the top-level transaction with the given transactionID.
func (*TransactionReceiptQuery) GetIncludeDuplicates ¶
func (q *TransactionReceiptQuery) GetIncludeDuplicates() bool
GetIncludeDuplicates returns whether receipts of processing duplicate transactions should be returned along with the receipt of processing the first consensus transaction with the given id
func (*TransactionReceiptQuery) GetLogLevel ¶
func (e *TransactionReceiptQuery) GetLogLevel() *LogLevel
func (*TransactionReceiptQuery) GetMaxBackoff ¶
func (*TransactionReceiptQuery) GetMaxRetry ¶
func (e *TransactionReceiptQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*TransactionReceiptQuery) GetMinBackoff ¶
func (*TransactionReceiptQuery) GetNodeAccountIDs ¶
func (e *TransactionReceiptQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TransactionReceiptQuery) GetTransactionID ¶
func (q *TransactionReceiptQuery) GetTransactionID() TransactionID
GetTransactionID returns the TransactionID for which the receipt is being requested.
func (*TransactionReceiptQuery) SetGrpcDeadline ¶
func (q *TransactionReceiptQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionReceiptQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TransactionReceiptQuery) SetIncludeChildren ¶
func (q *TransactionReceiptQuery) SetIncludeChildren(includeChildReceipts bool) *TransactionReceiptQuery
SetIncludeChildren Sets whether the response should include the receipts of any child transactions spawned by the top-level transaction with the given transactionID.
func (*TransactionReceiptQuery) SetIncludeDuplicates ¶
func (q *TransactionReceiptQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionReceiptQuery
SetIncludeDuplicates Sets whether receipts of processing duplicate transactions should be returned along with the receipt of processing the first consensus transaction with the given id whose status was neither INVALID_NODE_ACCOUNT nor INVALID_PAYER_SIGNATURE; or, if no such receipt exists, the receipt of processing the first transaction to reach consensus with the given transaction id.
func (*TransactionReceiptQuery) SetLogLevel ¶
func (q *TransactionReceiptQuery) SetLogLevel(level LogLevel) *TransactionReceiptQuery
func (*TransactionReceiptQuery) SetMaxBackoff ¶
func (q *TransactionReceiptQuery) SetMaxBackoff(max time.Duration) *TransactionReceiptQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*TransactionReceiptQuery) SetMaxQueryPayment ¶
func (q *TransactionReceiptQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionReceiptQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TransactionReceiptQuery) SetMaxRetry ¶
func (q *TransactionReceiptQuery) SetMaxRetry(count int) *TransactionReceiptQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TransactionReceiptQuery) SetMinBackoff ¶
func (q *TransactionReceiptQuery) SetMinBackoff(min time.Duration) *TransactionReceiptQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TransactionReceiptQuery) SetNodeAccountIDs ¶
func (q *TransactionReceiptQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionReceiptQuery
SetNodeAccountIDs sets the _Node AccountID for this TransactionReceiptQuery.
func (*TransactionReceiptQuery) SetPaymentTransactionID ¶
func (q *TransactionReceiptQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionReceiptQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TransactionReceiptQuery) SetQueryPayment ¶
func (q *TransactionReceiptQuery) SetQueryPayment(queryPayment Hbar) *TransactionReceiptQuery
SetQueryPayment sets the Hbar payment to pay the _Node a fee for handling this query
func (*TransactionReceiptQuery) SetTransactionID ¶
func (q *TransactionReceiptQuery) SetTransactionID(transactionID TransactionID) *TransactionReceiptQuery
SetTransactionID sets the TransactionID for which the receipt is being requested.
type TransactionRecord ¶
type TransactionRecord struct { Receipt TransactionReceipt TransactionHash []byte ConsensusTimestamp time.Time TransactionID TransactionID ScheduleRef ScheduleID TransactionMemo string TransactionFee Hbar Transfers []Transfer TokenTransfers map[TokenID][]TokenTransfer NftTransfers map[TokenID][]_TokenNftTransfer CallResult *ContractFunctionResult CallResultIsCreate bool AssessedCustomFees []AssessedCustomFee AutomaticTokenAssociations []TokenAssociation ParentConsensusTimestamp time.Time AliasKey *PublicKey Duplicates []TransactionRecord Children []TransactionRecord // Deprecated HbarAllowances []HbarAllowance // Deprecated TokenAllowances []TokenAllowance // Deprecated TokenNftAllowances []TokenNftAllowance EthereumHash []byte PaidStakingRewards map[AccountID]Hbar PrngBytes []byte PrngNumber *int32 EvmAddress []byte PendingAirdropRecords []PendingAirdropRecord }
The complete record for a transaction on Hiero that has reached consensus. This is not-free to request and is available for 1 hour after a transaction reaches consensus.
func TransactionRecordFromBytes ¶
func TransactionRecordFromBytes(data []byte) (TransactionRecord, error)
TransactionRecordFromBytes returns a TransactionRecord from a raw protobuf byte array
func (TransactionRecord) GetContractCreateResult ¶
func (record TransactionRecord) GetContractCreateResult() (ContractFunctionResult, error)
GetContractCreateResult returns the ContractFunctionResult if the transaction was a contract create
func (TransactionRecord) GetContractExecuteResult ¶
func (record TransactionRecord) GetContractExecuteResult() (ContractFunctionResult, error)
GetContractExecuteResult returns the ContractFunctionResult if the transaction was a contract call
func (TransactionRecord) MarshalJSON ¶
func (record TransactionRecord) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON representation of the TransactionRecord
func (TransactionRecord) ToBytes ¶
func (record TransactionRecord) ToBytes() []byte
ToBytes returns the serialized bytes of a TransactionRecord
func (TransactionRecord) ValidateReceiptStatus ¶
func (record TransactionRecord) ValidateReceiptStatus(shouldValidate bool) error
Validate checks that the receipt status is Success
type TransactionRecordQuery ¶
type TransactionRecordQuery struct { Query // contains filtered or unexported fields }
TransactionRecordQuery Get the record for a transaction. If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. If the transaction called a smart contract function, then the record contains the result of that call. If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. If the transaction didn't return anything that should be in the record, then the results field will be set to nothing.
func NewTransactionRecordQuery ¶
func NewTransactionRecordQuery() *TransactionRecordQuery
NewTransactionRecordQuery creates TransactionRecordQuery which gets the record for a transaction. If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. If the transaction called a smart contract function, then the record contains the result of that call. If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. If the transaction didn't return anything that should be in the record, then the results field will be set to nothing.
func (*TransactionRecordQuery) Execute ¶
func (q *TransactionRecordQuery) Execute(client *Client) (TransactionRecord, error)
Execute executes the Query with the provided client
func (*TransactionRecordQuery) GetCost ¶
func (q *TransactionRecordQuery) GetCost(client *Client) (Hbar, error)
func (*TransactionRecordQuery) GetGrpcDeadline ¶
GetGrpcDeadline returns the grpc deadline
func (*TransactionRecordQuery) GetIncludeChildren ¶
func (q *TransactionRecordQuery) GetIncludeChildren() bool
GetIncludeChildren returns whether the response should include the records of any child transactions spawned by the top-level transaction with the given transactionID.
func (*TransactionRecordQuery) GetIncludeDuplicates ¶
func (q *TransactionRecordQuery) GetIncludeDuplicates() bool
GetIncludeDuplicates returns whether records of processing duplicate transactions should be returned along with the record of processing the first consensus transaction with the given id.
func (*TransactionRecordQuery) GetLogLevel ¶
func (e *TransactionRecordQuery) GetLogLevel() *LogLevel
func (*TransactionRecordQuery) GetMaxBackoff ¶
func (*TransactionRecordQuery) GetMaxRetry ¶
func (e *TransactionRecordQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*TransactionRecordQuery) GetMinBackoff ¶
func (*TransactionRecordQuery) GetNodeAccountIDs ¶
func (e *TransactionRecordQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TransactionRecordQuery) GetTransactionID ¶
func (q *TransactionRecordQuery) GetTransactionID() TransactionID
GetTransactionID returns the TransactionID for which the receipt is being requested.
func (*TransactionRecordQuery) SetGrpcDeadline ¶
func (q *TransactionRecordQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionRecordQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TransactionRecordQuery) SetIncludeChildren ¶
func (q *TransactionRecordQuery) SetIncludeChildren(includeChildRecords bool) *TransactionRecordQuery
SetIncludeChildren Sets whether the response should include the records of any child transactions spawned by the top-level transaction with the given transactionID.
func (*TransactionRecordQuery) SetIncludeDuplicates ¶
func (q *TransactionRecordQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionRecordQuery
SetIncludeDuplicates Sets whether records of processing duplicate transactions should be returned along with the record of processing the first consensus transaction with the given id whose status was neither INVALID_NODE_ACCOUNT nor <tt>INVALID_PAYER_SIGNATURE; or, if no such record exists, the record of processing the first transaction to reach consensus with the given transaction id..
func (*TransactionRecordQuery) SetLogLevel ¶
func (q *TransactionRecordQuery) SetLogLevel(level LogLevel) *TransactionRecordQuery
func (*TransactionRecordQuery) SetMaxBackoff ¶
func (q *TransactionRecordQuery) SetMaxBackoff(max time.Duration) *TransactionRecordQuery
SetMaxBackoff The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time.
func (*TransactionRecordQuery) SetMaxQueryPayment ¶
func (q *TransactionRecordQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionRecordQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TransactionRecordQuery) SetMaxRetry ¶
func (q *TransactionRecordQuery) SetMaxRetry(count int) *TransactionRecordQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TransactionRecordQuery) SetMinBackoff ¶
func (q *TransactionRecordQuery) SetMinBackoff(min time.Duration) *TransactionRecordQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TransactionRecordQuery) SetNodeAccountIDs ¶
func (q *TransactionRecordQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionRecordQuery
SetNodeAccountIDs sets the _Node AccountID for this TransactionRecordQuery.
func (*TransactionRecordQuery) SetPaymentTransactionID ¶
func (q *TransactionRecordQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionRecordQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TransactionRecordQuery) SetQueryPayment ¶
func (q *TransactionRecordQuery) SetQueryPayment(queryPayment Hbar) *TransactionRecordQuery
SetQueryPayment sets the Hbar payment to pay the _Node a fee for handling this query
func (*TransactionRecordQuery) SetTransactionID ¶
func (q *TransactionRecordQuery) SetTransactionID(transactionID TransactionID) *TransactionRecordQuery
SetTransactionID sets the TransactionID for this TransactionRecordQuery.
type TransactionResponse ¶
type TransactionResponse struct { TransactionID TransactionID ScheduledTransactionId TransactionID // nolint NodeID AccountID Hash []byte ValidateStatus bool IncludeChildReceipts bool Transaction TransactionInterface }
When the client sends the node a transaction of any kind, the node replies with this, which simply says that the transaction passed the precheck (so the node will submit it to the network) or it failed (so it won't). If the fee offered was insufficient, this will also contain the amount of the required fee. To learn the consensus result, the client should later obtain a receipt (free), or can buy a more detailed record (not free).
func TransactionExecute ¶
func TransactionExecute(tx TransactionInterface, client *Client) (TransactionResponse, error)
func (TransactionResponse) GetIncludeChildren ¶
func (response TransactionResponse) GetIncludeChildren() bool
GetIncludeChildren returns whether the response should include the receipts of any child transactions spawned by the top-level transaction with the given transactionID.
func (*TransactionResponse) GetReceipt ¶
func (response *TransactionResponse) GetReceipt(client *Client) (TransactionReceipt, error)
GetReceipt retrieves the receipt for the transaction
func (TransactionResponse) GetReceiptQuery ¶
func (response TransactionResponse) GetReceiptQuery() *TransactionReceiptQuery
GetReceiptQuery retrieves the receipt query for the transaction
func (*TransactionResponse) GetRecord ¶
func (response *TransactionResponse) GetRecord(client *Client) (TransactionRecord, error)
GetRecord retrieves the record for the transaction
func (TransactionResponse) GetRecordQuery ¶
func (response TransactionResponse) GetRecordQuery() *TransactionRecordQuery
GetRecordQuery retrieves the record query for the transaction
func (TransactionResponse) GetValidateStatus ¶
func (response TransactionResponse) GetValidateStatus() bool
GetValidateStatus returns the validate status for the transaction
func (TransactionResponse) MarshalJSON ¶
func (response TransactionResponse) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON representation of the TransactionResponse. This should yield the same result in all SDK's.
func (TransactionResponse) SetIncludeChildren ¶
func (response TransactionResponse) SetIncludeChildren(include bool) *TransactionResponse
SetIncludeChildren Sets whether the response should include the receipts of any child transactions spawned by the top-level transaction with the given transactionID.
func (TransactionResponse) SetValidateStatus ¶
func (response TransactionResponse) SetValidateStatus(validate bool) *TransactionResponse
SetValidateStatus sets the validate status for the transaction
type TransactionSigner ¶
TransactionSigner is a closure or function that defines how transactions will be signed
type TransferTransaction ¶
type TransferTransaction struct { *Transaction[*TransferTransaction] // contains filtered or unexported fields }
TransferTransaction Transfers cryptocurrency among two or more accounts by making the desired adjustments to their balances. Each transfer list can specify up to 10 adjustments. Each negative amount is withdrawn from the corresponding account (a sender), and each positive one is added to the corresponding account (a receiver). The amounts list must sum to zero. Each amount is a number of tinybars (there are 100,000,000 tinybars in one hbar). If any sender account fails to have sufficient hbars, then the entire transaction fails, and none of those transfers occur, though the transaction fee is still charged. This transaction must be signed by the keys for all the sending accounts, and for any receiving accounts that have receiverSigRequired == true. The signatures are in the same order as the accounts, skipping those accounts that don't need a signature.
func NewTransferTransaction ¶
func NewTransferTransaction() *TransferTransaction
NewTransferTransaction creates TransferTransaction which transfers cryptocurrency among two or more accounts by making the desired adjustments to their balances. Each transfer list can specify up to 10 adjustments. Each negative amount is withdrawn from the corresponding account (a sender), and each positive one is added to the corresponding account (a receiver). The amounts list must sum to zero. Each amount is a number of tinybars (there are 100,000,000 tinybars in one hbar). If any sender account fails to have sufficient hbars, then the entire transaction fails, and none of those transfers occur, though the transaction fee is still charged. This transaction must be signed by the keys for all the sending accounts, and for any receiving accounts that have receiverSigRequired == true. The signatures are in the same order as the accounts, skipping those accounts that don't need a signature.
func (*TransferTransaction) AddApprovedHbarTransfer ¶
func (tx *TransferTransaction) AddApprovedHbarTransfer(accountID AccountID, amount Hbar, approve bool) *TransferTransaction
AddHbarTransferWithDecimals adds an approved hbar transfer
func (*TransferTransaction) AddApprovedNftTransfer ¶
func (tx *TransferTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TransferTransaction
AddNftTransfer adds an approved nft transfer
func (*TransferTransaction) AddApprovedTokenTransfer ¶
func (tx *TransferTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TransferTransaction
AddHbarTransfer adds an approved hbar transfer
func (*TransferTransaction) AddApprovedTokenTransferWithDecimals ¶
func (tx *TransferTransaction) AddApprovedTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32, approve bool) *TransferTransaction
AddHbarTransfer adds an approved hbar transfer with decimals
func (*TransferTransaction) AddHbarTransfer ¶
func (tx *TransferTransaction) AddHbarTransfer(accountID AccountID, amount Hbar) *TransferTransaction
AddHbarTransfer Sets The desired hbar balance adjustments
func (*TransferTransaction) AddNftTransfer ¶
func (tx *TransferTransaction) AddNftTransfer(nftID NftID, sender AccountID, receiver AccountID) *TransferTransaction
AddNftTransfer Sets the desired nft token unit balance adjustments Applicable to tokens of type NON_FUNGIBLE_UNIQUE.
func (*TransferTransaction) AddTokenTransfer ¶
func (tx *TransferTransaction) AddTokenTransfer(tokenID TokenID, accountID AccountID, value int64) *TransferTransaction
AddTokenTransfer Sets the desired token unit balance adjustments Applicable to tokens of type FUNGIBLE_COMMON.
func (*TransferTransaction) AddTokenTransferWithDecimals ¶
func (tx *TransferTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TransferTransaction
AddTokenTransferWithDecimals Sets the desired token unit balance adjustments with decimals
func (*TransferTransaction) GetHbarTransfers ¶
func (tx *TransferTransaction) GetHbarTransfers() map[AccountID]Hbar
GetHbarTransfers returns the hbar transfers
func (*TransferTransaction) GetNftTransfers ¶
func (tx *TransferTransaction) GetNftTransfers() map[TokenID][]_TokenNftTransfer
GetNftTransfers returns the nft transfers
func (TransferTransaction) GetNodeAccountIDs ¶
func (e TransferTransaction) GetNodeAccountIDs() []AccountID
GetNodeAccountID returns the node AccountID for this transaction.
func (*TransferTransaction) GetTokenIDDecimals ¶
func (tx *TransferTransaction) GetTokenIDDecimals() map[TokenID]uint32
GetTokenIDDecimals returns the token decimals
func (*TransferTransaction) GetTokenTransfers ¶
func (tx *TransferTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer
GetTokenTransfers returns the token transfers
func (*TransferTransaction) SetHbarTransferApproval ¶
func (tx *TransferTransaction) SetHbarTransferApproval(spenderAccountID AccountID, approval bool) *TransferTransaction
SetHbarTransferApproval Sets the desired hbar balance adjustments
func (*TransferTransaction) SetNftTransferApproval ¶
func (tx *TransferTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TransferTransaction
SetNftTransferApproval Sets the desired nft token unit balance adjustments
func (*TransferTransaction) SetTokenTransferApproval ¶
func (tx *TransferTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TransferTransaction
SetTokenTransferApproval Sets the desired token unit balance adjustments
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
Type is an ABI type
func NewTupleType ¶
func NewTupleTypeFromArgs ¶
func NewTupleTypeFromArgs(inputs []*ArgumentStr) (*Type, error)
func NewTypeFromArgument ¶
func NewTypeFromArgument(arg *ArgumentStr) (*Type, error)
NewTypeFromArgument parses an abi type from an argument
func (*Type) DecodeStruct ¶
DecodeStruct decodes an object using this type to the out param
func (*Type) InternalType ¶
InternalType returns the internal type
func (*Type) TupleElems ¶
TupleElems returns the elems of the tuple
Source Files
¶
- abi.go
- abi_decode.go
- abi_encode.go
- abi_type.go
- account_allowance_approve_transaction.go
- account_allowance_delete_transaction.go
- account_balance.go
- account_balance_query.go
- account_create_transaction.go
- account_delete_transaction.go
- account_id.go
- account_info.go
- account_info_flow.go
- account_info_query.go
- account_records_query.go
- account_update_transaction.go
- address_book_query.go
- address_books.go
- assessed_custom_fee.go
- batch_transaction.go
- bip32_utils.go
- bip39.go
- bip39_english.go
- channel.go
- client.go
- contract_bytecode_query.go
- contract_call_query.go
- contract_create_flow.go
- contract_create_transaction.go
- contract_delete_transaction.go
- contract_execute_transaction.go
- contract_function_parameters.go
- contract_function_result.go
- contract_function_selector.go
- contract_id.go
- contract_info.go
- contract_info_query.go
- contract_log_info.go
- contract_nonce_info.go
- contract_state_change.go
- contract_update_transaction.go
- crypto.go
- custom_fee.go
- custom_fee_limit.go
- custom_fixed_fee.go
- custom_fractional_fee.go
- custom_royalty_fee.go
- delegatable_contract_id.go
- ecdsa_private_key.go
- ecdsa_public_key.go
- ed25519_private_key.go
- ed25519_public_key.go
- endpoint.go
- entity_id.go
- errors.go
- ethereum_eip1559_transaction.go
- ethereum_eip2930_transaction.go
- ethereum_flow.go
- ethereum_legacy_transaction.go
- ethereum_transaction.go
- ethereum_transaction_data.go
- exchange_rate.go
- executable.go
- fee_assessment_method.go
- fee_components.go
- fee_data.go
- fee_schedule.go
- fee_schedules.go
- file_append_transaction.go
- file_contents_query.go
- file_create_transaction.go
- file_delete_transaction.go
- file_id.go
- file_info.go
- file_info_query.go
- file_update_transaction.go
- freeze_transaction.go
- freeze_type.go
- hbar.go
- hbar_allowance.go
- hbar_transfer.go
- hbar_unit.go
- id.go
- index.go
- internal_token_transfer.go
- key_list.go
- keystore.go
- ledger_id.go
- legacy.go
- live_hash.go
- live_hash_add_transaction.go
- live_hash_delete_transaction.go
- live_hash_query.go
- lockable_slice.go
- logger.go
- managed_network.go
- managed_node.go
- managed_node_address.go
- math.go
- mirror_network.go
- mirror_node.go
- mirror_node_contract_call_query.go
- mirror_node_contract_estimate_gas_query.go
- mirror_node_contract_query.go
- mnemonic.go
- network.go
- network_name.go
- network_version_info.go
- network_version_info_query.go
- nft_id.go
- node.go
- node_address.go
- node_address_book.go
- node_create_transaction.go
- node_delete_transaction.go
- node_update_transaction.go
- pending_airdrop_id.go
- pending_airdrop_record.go
- prng_transaction.go
- proxy_staker.go
- query.go
- request_type.go
- rlp.go
- schedule_create_transaction.go
- schedule_delete_transaction.go
- schedule_id.go
- schedule_info.go
- schedule_info_query.go
- schedule_sign_transaction.go
- semantic_version.go
- staking_info.go
- status.go
- storage_change.go
- subscription_handle.go
- system_delete_transaction.go
- system_undelete_transaction.go
- time.go
- token_airdrop_transaction.go
- token_allowance.go
- token_associate_transaction.go
- token_association.go
- token_balance_map.go
- token_burn_transaction.go
- token_cancel_airdrop_transaction.go
- token_claim_airdrop_transaction.go
- token_create_transaction.go
- token_decimal_map.go
- token_delete_transaction.go
- token_dissociate_transaction.go
- token_fee_schedule_update_transaction.go
- token_freeze_transaction.go
- token_grant_kyc_transaction.go
- token_id.go
- token_info.go
- token_info_query.go
- token_mint_transaction.go
- token_nft_allowance.go
- token_nft_info.go
- token_nft_info_query.go
- token_nft_transfer.go
- token_pause_transaction.go
- token_reject_flow.go
- token_reject_transaction.go
- token_relationship.go
- token_revoke_kyc_transaction.go
- token_supply_type.go
- token_transfer.go
- token_type.go
- token_unfreeze_transaction.go
- token_unpause_transaction.go
- token_update_nfts_transaction.go
- token_update_transaction.go
- token_wipe_transaction.go
- topic_create_transaction.go
- topic_delete_transaction.go
- topic_id.go
- topic_info.go
- topic_info_query.go
- topic_message.go
- topic_message_chunk.go
- topic_message_query.go
- topic_message_submit_transaction.go
- topic_update_transaction.go
- transaction.go
- transaction_fee_schedule.go
- transaction_id.go
- transaction_receipt.go
- transaction_receipt_query.go
- transaction_record.go
- transaction_record_query.go
- transaction_response.go
- transfer.go
- transfer_transaction.go