Documentation ¶
Index ¶
- Constants
- Variables
- func AccountInfoFlowVerifySignature(client *Client, accountID AccountID, message []byte, signature []byte) (bool, error)
- func AccountInfoFlowVerifyTransaction(client *Client, accountID AccountID, transaction Transaction, signature []byte) (bool, error)
- func IsHardenedIndex(index uint32) bool
- func ToHardenedIndex(index uint32) uint32
- func TransactionAddSignature(transaction interface{}, publicKey PublicKey, signature []byte) (interface{}, error)
- func TransactionFromBytes(data []byte) (interface{}, error)
- func TransactionGetMaxBackoff(transaction interface{}) (time.Duration, error)
- func TransactionGetMinBackoff(transaction interface{}) (time.Duration, error)
- func TransactionGetSignatures(transaction interface{}) (map[AccountID]map[*PublicKey][]byte, error)
- func TransactionGetTransactionHash(transaction interface{}) ([]byte, error)
- func TransactionGetTransactionHashPerNode(transaction interface{}) (map[AccountID][]byte, error)
- func TransactionGetTransactionMemo(transaction interface{}) (string, error)
- func TransactionGetTransactionValidDuration(transaction interface{}) (time.Duration, error)
- func TransactionSetMaxBackoff(transaction interface{}, maxBackoff time.Duration) (interface{}, error)
- func TransactionSetMaxTransactionFee(transaction interface{}, maxTransactionFee Hbar) (interface{}, error)
- func TransactionSetMinBackoff(transaction interface{}, minBackoff time.Duration) (interface{}, error)
- func TransactionSetNodeAccountIDs(transaction interface{}, nodeAccountIDs []AccountID) (interface{}, error)
- func TransactionSetTransactionID(transaction interface{}, transactionID TransactionID) (interface{}, error)
- func TransactionSetTransactionMemo(transaction interface{}, transactionMemo string) (interface{}, error)
- func TransactionSetTransactionValidDuration(transaction interface{}, transactionValidDuration time.Duration) (interface{}, error)
- func TransactionSign(transaction interface{}, privateKey PrivateKey) (interface{}, error)
- func TransactionSignWithOperator(transaction interface{}, client *Client) (interface{}, error)
- func TransactionSignWth(transaction interface{}, publicKKey PublicKey, signer TransactionSigner) (interface{}, error)
- func TransactionString(transaction interface{}) (string, error)
- func TransactionToBytes(transaction interface{}) ([]byte, error)
- type AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) AddAllTokenNftAllowance(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) AddHbarAllowance(id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) AddTokenAllowance(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) AddTokenNftAllowance(nftID NftID, accountID AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *AccountAllowanceAdjustTransaction) Freeze() (*AccountAllowanceAdjustTransaction, error)
- func (transaction *AccountAllowanceAdjustTransaction) FreezeWith(client *Client) (*AccountAllowanceAdjustTransaction, error)
- func (transaction *AccountAllowanceAdjustTransaction) GetHbarAllowances() []*HbarAllowance
- func (transaction *AccountAllowanceAdjustTransaction) GetMaxBackoff() time.Duration
- func (transaction *AccountAllowanceAdjustTransaction) GetMaxTransactionFee() Hbar
- func (transaction *AccountAllowanceAdjustTransaction) GetMinBackoff() time.Duration
- func (transaction *AccountAllowanceAdjustTransaction) GetRegenerateTransactionID() bool
- func (transaction *AccountAllowanceAdjustTransaction) GetTokenAllowances() []*TokenAllowance
- func (transaction *AccountAllowanceAdjustTransaction) GetTokenNftAllowances() []*TokenNftAllowance
- func (transaction *AccountAllowanceAdjustTransaction) GetTransactionID() TransactionID
- func (transaction *AccountAllowanceAdjustTransaction) GetTransactionMemo() string
- func (transaction *AccountAllowanceAdjustTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *AccountAllowanceAdjustTransaction) GrantHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) GrantTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) GrantTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) GrantTokenNftAllowanceAllSerials(ownerAccountID AccountID, tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) IsFrozen() bool
- func (transaction *AccountAllowanceAdjustTransaction) RevokeHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount uint64) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenNftAllowanceAllSerials(ownerAccountID AccountID, tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *AccountAllowanceAdjustTransaction) SetMaxBackoff(max time.Duration) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetMaxRetry(count int) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetMinBackoff(min time.Duration) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetTransactionMemo(memo string) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) Sign(privateKey PrivateKey) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *AccountAllowanceAdjustTransaction
- func (transaction *AccountAllowanceAdjustTransaction) SignWithOperator(client *Client) (*AccountAllowanceAdjustTransaction, error)
- type AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) AddAllTokenNftApproval(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) AddHbarApproval(id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) AddTokenApproval(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) AddTokenNftApproval(nftID NftID, accountID AccountID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveHbarApproval(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveTokenApproval(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceWithDelegatingSpender(nftID NftID, ownerAccountID AccountID, spenderAccountId AccountID, ...) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftApproval(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *AccountAllowanceApproveTransaction) Freeze() (*AccountAllowanceApproveTransaction, error)
- func (transaction *AccountAllowanceApproveTransaction) FreezeWith(client *Client) (*AccountAllowanceApproveTransaction, error)
- func (transaction *AccountAllowanceApproveTransaction) GetHbarAllowances() []*HbarAllowance
- func (transaction *AccountAllowanceApproveTransaction) GetMaxBackoff() time.Duration
- func (transaction *AccountAllowanceApproveTransaction) GetMaxTransactionFee() Hbar
- func (transaction *AccountAllowanceApproveTransaction) GetMinBackoff() time.Duration
- func (transaction *AccountAllowanceApproveTransaction) GetRegenerateTransactionID() bool
- func (transaction *AccountAllowanceApproveTransaction) GetTokenAllowances() []*TokenAllowance
- func (transaction *AccountAllowanceApproveTransaction) GetTokenNftAllowances() []*TokenNftAllowance
- func (transaction *AccountAllowanceApproveTransaction) GetTransactionID() TransactionID
- func (transaction *AccountAllowanceApproveTransaction) GetTransactionMemo() string
- func (transaction *AccountAllowanceApproveTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *AccountAllowanceApproveTransaction) IsFrozen() bool
- func (transaction *AccountAllowanceApproveTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *AccountAllowanceApproveTransaction) SetMaxBackoff(max time.Duration) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetMaxRetry(count int) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetMinBackoff(min time.Duration) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetTransactionMemo(memo string) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) Sign(privateKey PrivateKey) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *AccountAllowanceApproveTransaction
- func (transaction *AccountAllowanceApproveTransaction) SignWithOperator(client *Client) (*AccountAllowanceApproveTransaction, error)
- type AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances(ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances(tokenID TokenID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances(nftID NftID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *AccountAllowanceDeleteTransaction) Freeze() (*AccountAllowanceDeleteTransaction, error)
- func (transaction *AccountAllowanceDeleteTransaction) FreezeWith(client *Client) (*AccountAllowanceDeleteTransaction, error)
- func (transaction *AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances() []*HbarAllowance
- func (transaction *AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances() []*TokenAllowance
- func (transaction *AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances() []*TokenNftAllowance
- func (transaction *AccountAllowanceDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *AccountAllowanceDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *AccountAllowanceDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *AccountAllowanceDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *AccountAllowanceDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *AccountAllowanceDeleteTransaction) GetTransactionMemo() string
- func (transaction *AccountAllowanceDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *AccountAllowanceDeleteTransaction) IsFrozen() bool
- func (transaction *AccountAllowanceDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *AccountAllowanceDeleteTransaction) SetMaxBackoff(max time.Duration) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetMaxRetry(count int) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetMinBackoff(min time.Duration) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetTransactionMemo(memo string) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) Sign(privateKey PrivateKey) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *AccountAllowanceDeleteTransaction
- func (transaction *AccountAllowanceDeleteTransaction) SignWithOperator(client *Client) (*AccountAllowanceDeleteTransaction, error)
- type AccountBalance
- type AccountBalanceQuery
- func (query *AccountBalanceQuery) Execute(client *Client) (AccountBalance, error)
- func (query *AccountBalanceQuery) GetAccountID() AccountID
- func (query *AccountBalanceQuery) GetContractID() ContractID
- func (query *AccountBalanceQuery) GetCost(client *Client) (Hbar, error)
- func (query *AccountBalanceQuery) GetMaxBackoff() time.Duration
- func (query *AccountBalanceQuery) GetMinBackoff() time.Duration
- func (query *AccountBalanceQuery) SetAccountID(accountID AccountID) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetContractID(contractID ContractID) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetGrpcDeadline(deadline *time.Duration) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetLogLevel(level LogLevel) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetMaxBackoff(max time.Duration) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetMaxRetry(count int) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetMinBackoff(min time.Duration) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetNodeAccountIDs(accountID []AccountID) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountBalanceQuery
- func (query *AccountBalanceQuery) SetQueryPayment(paymentAmount Hbar) *AccountBalanceQuery
- type AccountCreateTransaction
- func (transaction *AccountCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *AccountCreateTransaction) Freeze() (*AccountCreateTransaction, error)
- func (transaction *AccountCreateTransaction) FreezeWith(client *Client) (*AccountCreateTransaction, error)
- func (transaction *AccountCreateTransaction) GetAccountMemo() string
- func (transaction *AccountCreateTransaction) GetAlias() []byte
- func (transaction *AccountCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *AccountCreateTransaction) GetDeclineStakingReward() bool
- func (transaction *AccountCreateTransaction) GetInitialBalance() Hbar
- func (transaction *AccountCreateTransaction) GetKey() (Key, error)
- func (transaction *AccountCreateTransaction) GetMaxAutomaticTokenAssociations() uint32
- func (transaction *AccountCreateTransaction) GetMaxBackoff() time.Duration
- func (transaction *AccountCreateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *AccountCreateTransaction) GetMinBackoff() time.Duration
- func (transaction *AccountCreateTransaction) GetProxyAccountID() AccountID
- func (transaction *AccountCreateTransaction) GetReceiverSignatureRequired() bool
- func (transaction *AccountCreateTransaction) GetRegenerateTransactionID() bool
- func (transaction *AccountCreateTransaction) GetStakedAccountID() AccountID
- func (transaction *AccountCreateTransaction) GetStakedNodeID() int64
- func (transaction *AccountCreateTransaction) GetTransactionID() TransactionID
- func (transaction *AccountCreateTransaction) GetTransactionMemo() string
- func (transaction *AccountCreateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *AccountCreateTransaction) IsFrozen() bool
- func (transaction *AccountCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *AccountCreateTransaction) SetAccountMemo(memo string) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetAlias(evmAddress string) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetDeclineStakingReward(decline bool) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetInitialBalance(initialBalance Hbar) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetKey(key Key) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetLogLevel(level LogLevel) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetMaxAutomaticTokenAssociations(max uint32) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetMaxBackoff(max time.Duration) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetMaxRetry(count int) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetMaxTransactionFee(fee Hbar) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetMinBackoff(min time.Duration) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetProxyAccountID(id AccountID) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetReceiverSignatureRequired(required bool) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetStakedAccountID(id AccountID) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetStakedNodeID(id int64) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetTransactionID(transactionID TransactionID) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetTransactionMemo(memo string) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SetTransactionValidDuration(duration time.Duration) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) Sign(privateKey PrivateKey) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *AccountCreateTransaction
- func (transaction *AccountCreateTransaction) SignWithOperator(client *Client) (*AccountCreateTransaction, error)
- type AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *AccountDeleteTransaction) Freeze() (*AccountDeleteTransaction, error)
- func (transaction *AccountDeleteTransaction) FreezeWith(client *Client) (*AccountDeleteTransaction, error)
- func (transaction *AccountDeleteTransaction) GetAccountID() AccountID
- func (transaction *AccountDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *AccountDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *AccountDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *AccountDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *AccountDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *AccountDeleteTransaction) GetTransactionMemo() string
- func (transaction *AccountDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *AccountDeleteTransaction) GetTransferAccountID() AccountID
- func (transaction *AccountDeleteTransaction) IsFrozen() bool
- func (transaction *AccountDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *AccountDeleteTransaction) SetAccountID(accountID AccountID) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetLogLevel(level LogLevel) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetMaxBackoff(max time.Duration) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetMaxRetry(count int) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetMaxTransactionFee(fee Hbar) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetMinBackoff(min time.Duration) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetTransactionID(transactionID TransactionID) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetTransactionMemo(memo string) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SetTransferAccountID(transferAccountID AccountID) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) Sign(privateKey PrivateKey) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *AccountDeleteTransaction
- func (transaction *AccountDeleteTransaction) SignWithOperator(client *Client) (*AccountDeleteTransaction, error)
- 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(transaction interface{}) ([]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) 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 (query *AccountInfoQuery) Execute(client *Client) (AccountInfo, error)
- func (query *AccountInfoQuery) GetAccountID() AccountID
- func (query *AccountInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *AccountInfoQuery) GetMaxBackoff() time.Duration
- func (query *AccountInfoQuery) GetMinBackoff() time.Duration
- func (query *AccountInfoQuery) SetAccountID(accountID AccountID) *AccountInfoQuery
- func (query *AccountInfoQuery) SetGrpcDeadline(deadline *time.Duration) *AccountInfoQuery
- func (query *AccountInfoQuery) SetLogLevel(level LogLevel) *AccountInfoQuery
- func (query *AccountInfoQuery) SetMaxBackoff(max time.Duration) *AccountInfoQuery
- func (query *AccountInfoQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *AccountInfoQuery
- func (query *AccountInfoQuery) SetMaxRetry(count int) *AccountInfoQuery
- func (query *AccountInfoQuery) SetMinBackoff(min time.Duration) *AccountInfoQuery
- func (query *AccountInfoQuery) SetNodeAccountIDs(accountID []AccountID) *AccountInfoQuery
- func (query *AccountInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountInfoQuery
- func (query *AccountInfoQuery) SetQueryPayment(queryPayment Hbar) *AccountInfoQuery
- type AccountRecordsQuery
- func (query *AccountRecordsQuery) Execute(client *Client) ([]TransactionRecord, error)
- func (query *AccountRecordsQuery) GetAccountID() AccountID
- func (query *AccountRecordsQuery) GetCost(client *Client) (Hbar, error)
- func (query *AccountRecordsQuery) GetMaxBackoff() time.Duration
- func (query *AccountRecordsQuery) GetMinBackoff() time.Duration
- func (query *AccountRecordsQuery) SetAccountID(accountID AccountID) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetGrpcDeadline(deadline *time.Duration) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetLogLevel(level LogLevel) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetMaxBackoff(max time.Duration) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetMaxRetry(count int) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetMinBackoff(min time.Duration) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetNodeAccountIDs(accountID []AccountID) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountRecordsQuery
- func (query *AccountRecordsQuery) SetQueryPayment(paymentAmount Hbar) *AccountRecordsQuery
- type AccountStakersQuery
- func (query *AccountStakersQuery) Execute(client *Client) ([]Transfer, error)
- func (query *AccountStakersQuery) GetAccountID() AccountID
- func (query *AccountStakersQuery) GetCost(client *Client) (Hbar, error)
- func (query *AccountStakersQuery) GetMaxBackoff() time.Duration
- func (query *AccountStakersQuery) GetMinBackoff() time.Duration
- func (query *AccountStakersQuery) SetAccountID(accountID AccountID) *AccountStakersQuery
- func (query *AccountStakersQuery) SetGrpcDeadline(deadline *time.Duration) *AccountStakersQuery
- func (query *AccountStakersQuery) SetLogLevel(level LogLevel) *AccountStakersQuery
- func (query *AccountStakersQuery) SetMaxBackoff(max time.Duration) *AccountStakersQuery
- func (query *AccountStakersQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountStakersQuery
- func (query *AccountStakersQuery) SetMaxRetry(count int) *AccountStakersQuery
- func (query *AccountStakersQuery) SetMinBackoff(min time.Duration) *AccountStakersQuery
- func (query *AccountStakersQuery) SetNodeAccountIDs(accountID []AccountID) *AccountStakersQuery
- func (query *AccountStakersQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountStakersQuery
- func (query *AccountStakersQuery) SetQueryPayment(paymentAmount Hbar) *AccountStakersQuery
- type AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) ClearStakedAccountID() *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) ClearStakedNodeID() *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *AccountUpdateTransaction) Freeze() (*AccountUpdateTransaction, error)
- func (transaction *AccountUpdateTransaction) FreezeWith(client *Client) (*AccountUpdateTransaction, error)
- func (transaction *AccountUpdateTransaction) GetAccountID() AccountID
- func (transaction *AccountUpdateTransaction) GetAccountMemo() string
- func (transaction *AccountUpdateTransaction) GetAliasKey() PublicKey
- func (transaction *AccountUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *AccountUpdateTransaction) GetDeclineStakingReward() bool
- func (transaction *AccountUpdateTransaction) GetExpirationTime() time.Time
- func (transaction *AccountUpdateTransaction) GetKey() (Key, error)
- func (transaction *AccountUpdateTransaction) GetMaxAutomaticTokenAssociations() uint32
- func (transaction *AccountUpdateTransaction) GetMaxBackoff() time.Duration
- func (transaction *AccountUpdateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *AccountUpdateTransaction) GetMinBackoff() time.Duration
- func (transaction *AccountUpdateTransaction) GetProxyAccountID() AccountID
- func (transaction *AccountUpdateTransaction) GetReceiverSignatureRequired() bool
- func (transaction *AccountUpdateTransaction) GetRegenerateTransactionID() bool
- func (transaction *AccountUpdateTransaction) GetStakedAccountID() AccountID
- func (transaction *AccountUpdateTransaction) GetStakedNodeID() int64
- func (transaction *AccountUpdateTransaction) GetTransactionID() TransactionID
- func (transaction *AccountUpdateTransaction) GetTransactionMemo() string
- func (transaction *AccountUpdateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *AccountUpdateTransaction) IsFrozen() bool
- func (transaction *AccountUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *AccountUpdateTransaction) SetAccountID(accountID AccountID) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetAccountMemo(memo string) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetAliasKey(alias PublicKey) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetDeclineStakingReward(decline bool) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetExpirationTime(expirationTime time.Time) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetKey(key Key) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetLogLevel(level LogLevel) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetMaxAutomaticTokenAssociations(max uint32) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetMaxBackoff(max time.Duration) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetMaxRetry(count int) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetMaxTransactionFee(fee Hbar) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetMinBackoff(min time.Duration) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetReceiverSignatureRequired(receiverSignatureRequired bool) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetStakedAccountID(id AccountID) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetStakedNodeID(id int64) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetTransactionID(transactionID TransactionID) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetTransactionMemo(memo string) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) Sign(privateKey PrivateKey) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *AccountUpdateTransaction
- func (transaction *AccountUpdateTransaction) SignWithOperator(client *Client) (*AccountUpdateTransaction, error)
- type AddressBookQuery
- func (query *AddressBookQuery) Execute(client *Client) (NodeAddressBook, error)
- func (query *AddressBookQuery) GetFileID() FileID
- func (query *AddressBookQuery) GetLimit() int32
- func (query *AddressBookQuery) GetMaxAttempts() uint64
- func (query *AddressBookQuery) SetFileID(id FileID) *AddressBookQuery
- func (query *AddressBookQuery) SetLimit(limit int32) *AddressBookQuery
- func (query *AddressBookQuery) SetMaxAttempts(maxAttempts uint64) *AddressBookQuery
- type Argument
- type AssessedCustomFee
- type Client
- func ClientForMainnet() *Client
- func ClientForName(name string) (*Client, error)
- func ClientForNetwork(network map[string]AccountID) *Client
- func ClientForPreviewnet() *Client
- func ClientForTestnet() *Client
- func ClientFromConfig(jsonBytes []byte) (*Client, error)
- func ClientFromConfigFile(filename string) (*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) GetNetwork() map[string]AccountID
- func (client *Client) GetNetworkName() *NetworkNamedeprecated
- 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) GetRequestTimeout() *time.Duration
- 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 (query *ContractBytecodeQuery) Execute(client *Client) ([]byte, error)
- func (query *ContractBytecodeQuery) GetContractID() ContractID
- func (query *ContractBytecodeQuery) GetCost(client *Client) (Hbar, error)
- func (query *ContractBytecodeQuery) GetMaxBackoff() time.Duration
- func (query *ContractBytecodeQuery) GetMinBackoff() time.Duration
- func (query *ContractBytecodeQuery) SetContractID(contractID ContractID) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetGrpcDeadline(deadline *time.Duration) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetLogLevel(level LogLevel) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetMaxBackoff(max time.Duration) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetMaxRetry(count int) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetMinBackoff(min time.Duration) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetNodeAccountIDs(accountID []AccountID) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractBytecodeQuery
- func (query *ContractBytecodeQuery) SetQueryPayment(paymentAmount Hbar) *ContractBytecodeQuery
- type ContractCallQuery
- func (query *ContractCallQuery) Execute(client *Client) (ContractFunctionResult, error)
- func (query *ContractCallQuery) GetContractID() ContractID
- func (query *ContractCallQuery) GetCost(client *Client) (Hbar, error)
- func (query *ContractCallQuery) GetFunctionParameters() []byte
- func (query *ContractCallQuery) GetGas() uint64
- func (query *ContractCallQuery) GetMaxBackoff() time.Duration
- func (query *ContractCallQuery) GetMinBackoff() time.Duration
- func (query *ContractCallQuery) GetSenderID() AccountID
- func (query *ContractCallQuery) SetContractID(contractID ContractID) *ContractCallQuery
- func (query *ContractCallQuery) SetFunction(name string, params *ContractFunctionParameters) *ContractCallQuery
- func (query *ContractCallQuery) SetFunctionParameters(byteArray []byte) *ContractCallQuery
- func (query *ContractCallQuery) SetGas(gas uint64) *ContractCallQuery
- func (query *ContractCallQuery) SetGrpcDeadline(deadline *time.Duration) *ContractCallQuery
- func (query *ContractCallQuery) SetLogLevel(level LogLevel) *ContractCallQuery
- func (query *ContractCallQuery) SetMaxBackoff(max time.Duration) *ContractCallQuery
- func (query *ContractCallQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractCallQuery
- func (query *ContractCallQuery) SetMaxResultSize(size uint64) *ContractCallQuery
- func (query *ContractCallQuery) SetMaxRetry(count int) *ContractCallQuery
- func (query *ContractCallQuery) SetMinBackoff(min time.Duration) *ContractCallQuery
- func (query *ContractCallQuery) SetNodeAccountIDs(accountID []AccountID) *ContractCallQuery
- func (query *ContractCallQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractCallQuery
- func (query *ContractCallQuery) SetQueryPayment(paymentAmount Hbar) *ContractCallQuery
- func (query *ContractCallQuery) SetSenderID(id AccountID) *ContractCallQuery
- type ContractCreateFlow
- func (this *ContractCreateFlow) Execute(client *Client) (TransactionResponse, error)
- func (this *ContractCreateFlow) GetAdminKey() Key
- func (this *ContractCreateFlow) GetAutoRenewAccountID() AccountID
- func (this *ContractCreateFlow) GetAutoRenewPeriod() time.Duration
- func (this *ContractCreateFlow) GetBytecode() string
- func (this *ContractCreateFlow) GetConstructorParameters() []byte
- func (this *ContractCreateFlow) GetContractMemo() string
- func (this *ContractCreateFlow) GetGas() int64
- func (this *ContractCreateFlow) GetInitialBalance() Hbar
- func (this *ContractCreateFlow) GetMaxAutomaticTokenAssociations() int32
- func (this *ContractCreateFlow) GetMaxChunks() uint64
- func (this *ContractCreateFlow) GetNodeAccountIDs() []AccountID
- func (this *ContractCreateFlow) GetProxyAccountID() AccountID
- func (this *ContractCreateFlow) SetAdminKey(adminKey Key) *ContractCreateFlow
- func (this *ContractCreateFlow) SetAutoRenewAccountID(id AccountID) *ContractCreateFlow
- func (this *ContractCreateFlow) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateFlow
- func (this *ContractCreateFlow) SetBytecode(bytecode []byte) *ContractCreateFlow
- func (this *ContractCreateFlow) SetBytecodeWithString(bytecode string) *ContractCreateFlow
- func (this *ContractCreateFlow) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateFlow
- func (this *ContractCreateFlow) SetConstructorParametersRaw(params []byte) *ContractCreateFlow
- func (this *ContractCreateFlow) SetContractMemo(memo string) *ContractCreateFlow
- func (this *ContractCreateFlow) SetGas(gas int64) *ContractCreateFlow
- func (this *ContractCreateFlow) SetInitialBalance(initialBalance Hbar) *ContractCreateFlow
- func (this *ContractCreateFlow) SetMaxAutomaticTokenAssociations(max int32) *ContractCreateFlow
- func (this *ContractCreateFlow) SetMaxChunks(max uint64) *ContractCreateFlow
- func (this *ContractCreateFlow) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateFlow
- func (this *ContractCreateFlow) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateFlow
- type ContractCreateTransaction
- func (transaction *ContractCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ContractCreateTransaction) Freeze() (*ContractCreateTransaction, error)
- func (transaction *ContractCreateTransaction) FreezeWith(client *Client) (*ContractCreateTransaction, error)
- func (transaction *ContractCreateTransaction) GetAdminKey() (Key, error)
- func (transaction *ContractCreateTransaction) GetAutoRenewAccountID() AccountID
- func (transaction *ContractCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *ContractCreateTransaction) GetBytecode() []byte
- func (transaction *ContractCreateTransaction) GetBytecodeFileID() FileID
- func (transaction *ContractCreateTransaction) GetConstructorParameters() []byte
- func (transaction *ContractCreateTransaction) GetContractMemo() string
- func (transaction *ContractCreateTransaction) GetDeclineStakingReward() bool
- func (transaction *ContractCreateTransaction) GetGas() uint64
- func (transaction *ContractCreateTransaction) GetInitialBalance() Hbar
- func (transaction *ContractCreateTransaction) GetMaxAutomaticTokenAssociations() int32
- func (transaction *ContractCreateTransaction) GetMaxBackoff() time.Duration
- func (transaction *ContractCreateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ContractCreateTransaction) GetMinBackoff() time.Duration
- func (transaction *ContractCreateTransaction) GetProxyAccountID() AccountID
- func (transaction *ContractCreateTransaction) GetRegenerateTransactionID() bool
- func (transaction *ContractCreateTransaction) GetStakedAccountID() AccountID
- func (transaction *ContractCreateTransaction) GetStakedNodeID() int64
- func (transaction *ContractCreateTransaction) GetTransactionID() TransactionID
- func (transaction *ContractCreateTransaction) GetTransactionMemo() string
- func (transaction *ContractCreateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ContractCreateTransaction) IsFrozen() bool
- func (transaction *ContractCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *ContractCreateTransaction) SetAdminKey(adminKey Key) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetAutoRenewAccountID(id AccountID) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetBytecode(code []byte) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetBytecodeFileID(byteCodeFileID FileID) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetConstructorParametersRaw(params []byte) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetContractMemo(memo string) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetDeclineStakingReward(decline bool) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetGas(gas uint64) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetInitialBalance(initialBalance Hbar) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetLogLevel(level LogLevel) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetMaxAutomaticTokenAssociations(max int32) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetMaxBackoff(max time.Duration) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetMaxRetry(count int) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetMaxTransactionFee(fee Hbar) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetMinBackoff(min time.Duration) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetStakedAccountID(id AccountID) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetStakedNodeID(id int64) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetTransactionID(transactionID TransactionID) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetTransactionMemo(memo string) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SetTransactionValidDuration(duration time.Duration) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) Sign(privateKey PrivateKey) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ContractCreateTransaction
- func (transaction *ContractCreateTransaction) SignWithOperator(client *Client) (*ContractCreateTransaction, error)
- type ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ContractDeleteTransaction) Freeze() (*ContractDeleteTransaction, error)
- func (transaction *ContractDeleteTransaction) FreezeWith(client *Client) (*ContractDeleteTransaction, error)
- func (transaction *ContractDeleteTransaction) GetContractID() ContractID
- func (transaction *ContractDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *ContractDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ContractDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *ContractDeleteTransaction) GetPermanentRemoval() bool
- func (transaction *ContractDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *ContractDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *ContractDeleteTransaction) GetTransactionMemo() string
- func (transaction *ContractDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ContractDeleteTransaction) GetTransferAccountID() AccountID
- func (transaction *ContractDeleteTransaction) GetTransferContractID() ContractID
- func (transaction *ContractDeleteTransaction) IsFrozen() bool
- func (transaction *ContractDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *ContractDeleteTransaction) SetContractID(contractID ContractID) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetLogLevel(level LogLevel) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetMaxBackoff(max time.Duration) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetMaxRetry(count int) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetMaxTransactionFee(fee Hbar) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetMinBackoff(min time.Duration) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetPermanentRemoval(remove bool) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetTransactionID(transactionID TransactionID) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetTransactionMemo(memo string) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetTransferAccountID(accountID AccountID) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SetTransferContractID(transferContactID ContractID) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) Sign(privateKey PrivateKey) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ContractDeleteTransaction
- func (transaction *ContractDeleteTransaction) SignWithOperator(client *Client) (*ContractDeleteTransaction, error)
- type ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ContractExecuteTransaction) Freeze() (*ContractExecuteTransaction, error)
- func (transaction *ContractExecuteTransaction) FreezeWith(client *Client) (*ContractExecuteTransaction, error)
- func (transaction *ContractExecuteTransaction) GetContractID() ContractID
- func (transaction *ContractExecuteTransaction) GetFunctionParameters() []byte
- func (transaction *ContractExecuteTransaction) GetGas() uint64
- func (transaction *ContractExecuteTransaction) GetMaxBackoff() time.Duration
- func (transaction *ContractExecuteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ContractExecuteTransaction) GetMinBackoff() time.Duration
- func (transaction ContractExecuteTransaction) GetPayableAmount() Hbar
- func (transaction *ContractExecuteTransaction) GetRegenerateTransactionID() bool
- func (transaction *ContractExecuteTransaction) GetTransactionID() TransactionID
- func (transaction *ContractExecuteTransaction) GetTransactionMemo() string
- func (transaction *ContractExecuteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ContractExecuteTransaction) IsFrozen() bool
- func (transaction *ContractExecuteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *ContractExecuteTransaction) SetContractID(contractID ContractID) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetFunction(name string, params *ContractFunctionParameters) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetFunctionParameters(params []byte) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetGas(gas uint64) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetLogLevel(level LogLevel) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetMaxBackoff(max time.Duration) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetMaxRetry(count int) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetMaxTransactionFee(fee Hbar) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetMinBackoff(min time.Duration) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetPayableAmount(amount Hbar) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetTransactionID(transactionID TransactionID) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetTransactionMemo(memo string) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SetTransactionValidDuration(duration time.Duration) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) Sign(privateKey PrivateKey) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ContractExecuteTransaction
- func (transaction *ContractExecuteTransaction) SignWithOperator(client *Client) (*ContractExecuteTransaction, error)
- 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) 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 (query *ContractInfoQuery) Execute(client *Client) (ContractInfo, error)
- func (query *ContractInfoQuery) GetContractID() ContractID
- func (query *ContractInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *ContractInfoQuery) GetMaxBackoff() time.Duration
- func (query *ContractInfoQuery) GetMinBackoff() time.Duration
- func (query *ContractInfoQuery) SetContractID(contractID ContractID) *ContractInfoQuery
- func (query *ContractInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ContractInfoQuery
- func (query *ContractInfoQuery) SetLogLevel(level LogLevel) *ContractInfoQuery
- func (query *ContractInfoQuery) SetMaxBackoff(max time.Duration) *ContractInfoQuery
- func (query *ContractInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractInfoQuery
- func (query *ContractInfoQuery) SetMaxRetry(count int) *ContractInfoQuery
- func (query *ContractInfoQuery) SetMinBackoff(min time.Duration) *ContractInfoQuery
- func (query *ContractInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ContractInfoQuery
- func (query *ContractInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractInfoQuery
- func (query *ContractInfoQuery) SetQueryPayment(paymentAmount Hbar) *ContractInfoQuery
- type ContractLogInfo
- type ContractNonceInfo
- type ContractStateChange
- type ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) ClearStakedAccountID() *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) ClearStakedNodeID() *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ContractUpdateTransaction) Freeze() (*ContractUpdateTransaction, error)
- func (transaction *ContractUpdateTransaction) FreezeWith(client *Client) (*ContractUpdateTransaction, error)
- func (transaction *ContractUpdateTransaction) GetAdminKey() (Key, error)
- func (transaction *ContractUpdateTransaction) GetAutoRenewAccountID() AccountID
- func (transaction *ContractUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *ContractUpdateTransaction) GetBytecodeFileID() FileID
- func (transaction *ContractUpdateTransaction) GetContractID() ContractID
- func (transaction *ContractUpdateTransaction) GetContractMemo() string
- func (transaction *ContractUpdateTransaction) GetDeclineStakingReward() bool
- func (transaction *ContractUpdateTransaction) GetExpirationTime() time.Time
- func (transaction *ContractUpdateTransaction) GetMaxAutomaticTokenAssociations() int32
- func (transaction *ContractUpdateTransaction) GetMaxBackoff() time.Duration
- func (transaction *ContractUpdateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ContractUpdateTransaction) GetMinBackoff() time.Duration
- func (transaction *ContractUpdateTransaction) GetProxyAccountID() AccountID
- func (transaction *ContractUpdateTransaction) GetRegenerateTransactionID() bool
- func (transaction *ContractUpdateTransaction) GetStakedAccountID() AccountID
- func (transaction *ContractUpdateTransaction) GetStakedNodeID() int64
- func (transaction *ContractUpdateTransaction) GetTransactionID() TransactionID
- func (transaction *ContractUpdateTransaction) GetTransactionMemo() string
- func (transaction *ContractUpdateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ContractUpdateTransaction) IsFrozen() bool
- func (transaction *ContractUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *ContractUpdateTransaction) SetAdminKey(publicKey PublicKey) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetAutoRenewAccountID(id AccountID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetBytecodeFileID(bytecodeFileID FileID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetContractID(contractID ContractID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetContractMemo(memo string) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetDeclineStakingReward(decline bool) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetExpirationTime(expiration time.Time) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetLogLevel(level LogLevel) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetMaxAutomaticTokenAssociations(max int32) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetMaxBackoff(max time.Duration) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetMaxRetry(count int) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetMaxTransactionFee(fee Hbar) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetMinBackoff(min time.Duration) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetStakedAccountID(id AccountID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetStakedNodeID(id int64) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetTransactionID(transactionID TransactionID) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetTransactionMemo(memo string) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) Sign(privateKey PrivateKey) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ContractUpdateTransaction
- func (transaction *ContractUpdateTransaction) SignWithOperator(client *Client) (*ContractUpdateTransaction, error)
- type CustomFee
- 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, evmAddress 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) ToSolidityAddress() string
- func (id DelegatableContractID) ToStringWithChecksum(client Client) (string, error)
- func (id *DelegatableContractID) ValidateChecksum(client *Client) error
- type EntityID
- type ErrBadKey
- type ErrHederaNetwork
- type ErrHederaPreCheckStatus
- type ErrHederaReceiptStatus
- type ErrHederaRecordStatus
- type ErrInvalidNodeAccountIDSet
- type ErrLocalValidation
- type ErrMaxChunksExceeded
- type ErrMaxQueryPaymentExceeded
- 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 EthereumTransaction
- func (transaction *EthereumTransaction) AddSignature(publicKey PublicKey, signature []byte) *EthereumTransaction
- func (transaction *EthereumTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *EthereumTransaction) Freeze() (*EthereumTransaction, error)
- func (transaction *EthereumTransaction) FreezeWith(client *Client) (*EthereumTransaction, error)
- func (transaction *EthereumTransaction) GetCallData() FileID
- func (transaction *EthereumTransaction) GetEthereumData() []byte
- func (transaction *EthereumTransaction) GetMaxBackoff() time.Duration
- func (transaction *EthereumTransaction) GetMaxGasAllowed() int64
- func (transaction *EthereumTransaction) GetMaxTransactionFee() Hbar
- func (transaction *EthereumTransaction) GetMinBackoff() time.Duration
- func (transaction *EthereumTransaction) GetRegenerateTransactionID() bool
- func (transaction *EthereumTransaction) GetTransactionID() TransactionID
- func (transaction *EthereumTransaction) GetTransactionMemo() string
- func (transaction *EthereumTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *EthereumTransaction) IsFrozen() bool
- func (transaction *EthereumTransaction) SetCallData(file FileID) *EthereumTransaction
- func (transaction *EthereumTransaction) SetCallDataFileID(file FileID) *EthereumTransaction
- func (transaction *EthereumTransaction) SetEthereumData(data []byte) *EthereumTransaction
- func (transaction *EthereumTransaction) SetGrpcDeadline(deadline *time.Duration) *EthereumTransaction
- func (transaction *EthereumTransaction) SetMaxBackoff(max time.Duration) *EthereumTransaction
- func (transaction *EthereumTransaction) SetMaxGasAllowanceHbar(gas Hbar) *EthereumTransaction
- func (transaction *EthereumTransaction) SetMaxGasAllowed(gas int64) *EthereumTransaction
- func (transaction *EthereumTransaction) SetMaxRetry(count int) *EthereumTransaction
- func (transaction *EthereumTransaction) SetMaxTransactionFee(fee Hbar) *EthereumTransaction
- func (transaction *EthereumTransaction) SetMinBackoff(min time.Duration) *EthereumTransaction
- func (transaction *EthereumTransaction) SetNodeAccountIDs(nodeID []AccountID) *EthereumTransaction
- func (transaction *EthereumTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *EthereumTransaction
- func (transaction *EthereumTransaction) SetTransactionID(transactionID TransactionID) *EthereumTransaction
- func (transaction *EthereumTransaction) SetTransactionMemo(memo string) *EthereumTransaction
- func (transaction *EthereumTransaction) SetTransactionValidDuration(duration time.Duration) *EthereumTransaction
- func (transaction *EthereumTransaction) Sign(privateKey PrivateKey) *EthereumTransaction
- func (transaction *EthereumTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *EthereumTransaction
- func (transaction *EthereumTransaction) SignWithOperator(client *Client) (*EthereumTransaction, error)
- type EthereumTransactionData
- type ExchangeRate
- type Fee
- type FeeAssessmentMethod
- type FeeComponents
- type FeeData
- type FeeSchedule
- type FeeSchedules
- type FileAppendTransaction
- func (transaction *FileAppendTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileAppendTransaction
- func (transaction *FileAppendTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *FileAppendTransaction) ExecuteAll(client *Client) ([]TransactionResponse, error)
- func (transaction *FileAppendTransaction) Freeze() (*FileAppendTransaction, error)
- func (transaction *FileAppendTransaction) FreezeWith(client *Client) (*FileAppendTransaction, error)
- func (transaction *FileAppendTransaction) GetContents() []byte
- func (transaction *FileAppendTransaction) GetFileID() FileID
- func (transaction *FileAppendTransaction) GetMaxBackoff() time.Duration
- func (transaction *FileAppendTransaction) GetMaxChunkSize() int
- func (transaction *FileAppendTransaction) GetMaxChunks() uint64
- func (transaction *FileAppendTransaction) GetMaxTransactionFee() Hbar
- func (transaction *FileAppendTransaction) GetMinBackoff() time.Duration
- func (transaction *FileAppendTransaction) GetRegenerateTransactionID() bool
- func (transaction *FileAppendTransaction) GetTransactionID() TransactionID
- func (transaction *FileAppendTransaction) GetTransactionMemo() string
- func (transaction *FileAppendTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *FileAppendTransaction) IsFrozen() bool
- func (transaction *FileAppendTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *FileAppendTransaction) SetContents(contents []byte) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetFileID(fileID FileID) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetGrpcDeadline(deadline *time.Duration) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetLogLevel(level LogLevel) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetMaxBackoff(max time.Duration) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetMaxChunkSize(size int) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetMaxChunks(size uint64) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetMaxRetry(count int) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetMaxTransactionFee(fee Hbar) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetMinBackoff(min time.Duration) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetNodeAccountIDs(nodeAccountIDs []AccountID) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetTransactionID(transactionID TransactionID) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetTransactionMemo(memo string) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SetTransactionValidDuration(duration time.Duration) *FileAppendTransaction
- func (transaction *FileAppendTransaction) Sign(privateKey PrivateKey) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *FileAppendTransaction
- func (transaction *FileAppendTransaction) SignWithOperator(client *Client) (*FileAppendTransaction, error)
- type FileContentsQuery
- func (query *FileContentsQuery) Execute(client *Client) ([]byte, error)
- func (query *FileContentsQuery) GetCost(client *Client) (Hbar, error)
- func (query *FileContentsQuery) GetFileID() FileID
- func (query *FileContentsQuery) GetMaxBackoff() time.Duration
- func (query *FileContentsQuery) GetMinBackoff() time.Duration
- func (query *FileContentsQuery) SetFileID(fileID FileID) *FileContentsQuery
- func (query *FileContentsQuery) SetGrpcDeadline(deadline *time.Duration) *FileContentsQuery
- func (query *FileContentsQuery) SetLogLevel(level LogLevel) *FileContentsQuery
- func (query *FileContentsQuery) SetMaxBackoff(max time.Duration) *FileContentsQuery
- func (query *FileContentsQuery) SetMaxQueryPayment(maxPayment Hbar) *FileContentsQuery
- func (query *FileContentsQuery) SetMaxRetry(count int) *FileContentsQuery
- func (query *FileContentsQuery) SetMinBackoff(min time.Duration) *FileContentsQuery
- func (query *FileContentsQuery) SetNodeAccountIDs(accountID []AccountID) *FileContentsQuery
- func (query *FileContentsQuery) SetPaymentTransactionID(transactionID TransactionID) *FileContentsQuery
- func (query *FileContentsQuery) SetQueryPayment(paymentAmount Hbar) *FileContentsQuery
- type FileCreateTransaction
- func (transaction *FileCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileCreateTransaction
- func (transaction *FileCreateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *FileCreateTransaction) Freeze() (*FileCreateTransaction, error)
- func (transaction *FileCreateTransaction) FreezeWith(client *Client) (*FileCreateTransaction, error)
- func (transaction *FileCreateTransaction) GetContents() []byte
- func (transaction *FileCreateTransaction) GetExpirationTime() time.Time
- func (transaction *FileCreateTransaction) GetKeys() KeyList
- func (transaction *FileCreateTransaction) GetMaxBackoff() time.Duration
- func (transaction *FileCreateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *FileCreateTransaction) GetMemo() string
- func (transaction *FileCreateTransaction) GetMinBackoff() time.Duration
- func (transaction *FileCreateTransaction) GetRegenerateTransactionID() bool
- func (transaction *FileCreateTransaction) GetTransactionID() TransactionID
- func (transaction *FileCreateTransaction) GetTransactionMemo() string
- func (transaction *FileCreateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *FileCreateTransaction) IsFrozen() bool
- func (transaction *FileCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *FileCreateTransaction) SetContents(contents []byte) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetExpirationTime(expiration time.Time) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetKeys(keys ...Key) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetLogLevel(level LogLevel) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetMaxBackoff(max time.Duration) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetMaxRetry(count int) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetMaxTransactionFee(fee Hbar) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetMemo(memo string) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetMinBackoff(min time.Duration) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetTransactionID(transactionID TransactionID) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetTransactionMemo(memo string) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SetTransactionValidDuration(duration time.Duration) *FileCreateTransaction
- func (transaction *FileCreateTransaction) Sign(privateKey PrivateKey) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *FileCreateTransaction
- func (transaction *FileCreateTransaction) SignWithOperator(client *Client) (*FileCreateTransaction, error)
- type FileDeleteTransaction
- func (transaction *FileDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *FileDeleteTransaction) Freeze() (*FileDeleteTransaction, error)
- func (transaction *FileDeleteTransaction) FreezeWith(client *Client) (*FileDeleteTransaction, error)
- func (transaction *FileDeleteTransaction) GetFileID() FileID
- func (transaction *FileDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *FileDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *FileDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *FileDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *FileDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *FileDeleteTransaction) GetTransactionMemo() string
- func (transaction *FileDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *FileDeleteTransaction) IsFrozen() bool
- func (transaction *FileDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *FileDeleteTransaction) SetFileID(fileID FileID) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetLogLevel(level LogLevel) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetMaxBackoff(max time.Duration) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetMaxRetry(count int) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetMaxTransactionFee(fee Hbar) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetMinBackoff(min time.Duration) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetTransactionID(transactionID TransactionID) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetTransactionMemo(memo string) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) Sign(privateKey PrivateKey) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *FileDeleteTransaction
- func (transaction *FileDeleteTransaction) SignWithOperator(client *Client) (*FileDeleteTransaction, error)
- type FileID
- type FileInfo
- type FileInfoQuery
- func (query *FileInfoQuery) Execute(client *Client) (FileInfo, error)
- func (query *FileInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *FileInfoQuery) GetFileID() FileID
- func (query *FileInfoQuery) GetMaxBackoff() time.Duration
- func (query *FileInfoQuery) GetMinBackoff() time.Duration
- func (query *FileInfoQuery) GetNodeAccountIDs() []AccountID
- func (query *FileInfoQuery) SetFileID(fileID FileID) *FileInfoQuery
- func (query *FileInfoQuery) SetGrpcDeadline(deadline *time.Duration) *FileInfoQuery
- func (query *FileInfoQuery) SetLogLevel(level LogLevel) *FileInfoQuery
- func (query *FileInfoQuery) SetMaxBackoff(max time.Duration) *FileInfoQuery
- func (query *FileInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *FileInfoQuery
- func (query *FileInfoQuery) SetMaxRetry(count int) *FileInfoQuery
- func (query *FileInfoQuery) SetMinBackoff(min time.Duration) *FileInfoQuery
- func (query *FileInfoQuery) SetNodeAccountIDs(accountID []AccountID) *FileInfoQuery
- func (query *FileInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *FileInfoQuery
- func (query *FileInfoQuery) SetQueryPayment(paymentAmount Hbar) *FileInfoQuery
- type FileUpdateTransaction
- func (transaction *FileUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *FileUpdateTransaction) Freeze() (*FileUpdateTransaction, error)
- func (transaction *FileUpdateTransaction) FreezeWith(client *Client) (*FileUpdateTransaction, error)
- func (transaction *FileUpdateTransaction) GeFileMemo() string
- func (transaction *FileUpdateTransaction) GetContents() []byte
- func (transaction *FileUpdateTransaction) GetExpirationTime() time.Time
- func (transaction *FileUpdateTransaction) GetFileID() FileID
- func (transaction *FileUpdateTransaction) GetFileMemo() string
- func (transaction *FileUpdateTransaction) GetKeys() KeyList
- func (transaction *FileUpdateTransaction) GetMaxBackoff() time.Duration
- func (transaction *FileUpdateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *FileUpdateTransaction) GetMinBackoff() time.Duration
- func (transaction *FileUpdateTransaction) GetRegenerateTransactionID() bool
- func (transaction *FileUpdateTransaction) GetTransactionID() TransactionID
- func (transaction *FileUpdateTransaction) GetTransactionMemo() string
- func (transaction *FileUpdateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *FileUpdateTransaction) IsFrozen() bool
- func (transaction *FileUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *FileUpdateTransaction) SetContents(contents []byte) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetExpirationTime(expiration time.Time) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetFileID(fileID FileID) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetFileMemo(memo string) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetKeys(keys ...Key) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetLogLevel(level LogLevel) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetMaxBackoff(max time.Duration) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetMaxRetry(count int) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetMaxTransactionFee(fee Hbar) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetMinBackoff(min time.Duration) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetTransactionID(transactionID TransactionID) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetTransactionMemo(memo string) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) Sign(privateKey PrivateKey) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *FileUpdateTransaction
- func (transaction *FileUpdateTransaction) SignWithOperator(client *Client) (*FileUpdateTransaction, error)
- type FreezeTransaction
- func (transaction *FreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *FreezeTransaction
- func (transaction *FreezeTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *FreezeTransaction) Freeze() (*FreezeTransaction, error)
- func (transaction *FreezeTransaction) FreezeWith(client *Client) (*FreezeTransaction, error)
- func (transaction *FreezeTransaction) GetEndTime() time.Time
- func (transaction *FreezeTransaction) GetFileHash() []byte
- func (transaction *FreezeTransaction) GetFileID() *FileID
- func (transaction *FreezeTransaction) GetFreezeType() FreezeType
- func (transaction *FreezeTransaction) GetMaxBackoff() time.Duration
- func (transaction *FreezeTransaction) GetMaxTransactionFee() Hbar
- func (transaction *FreezeTransaction) GetMinBackoff() time.Duration
- func (transaction *FreezeTransaction) GetRegenerateTransactionID() bool
- func (transaction *FreezeTransaction) GetStartTime() time.Time
- func (transaction *FreezeTransaction) GetTransactionID() TransactionID
- func (transaction *FreezeTransaction) GetTransactionMemo() string
- func (transaction *FreezeTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *FreezeTransaction) IsFrozen() bool
- func (transaction *FreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *FreezeTransaction) SetEndTime(endTime time.Time) *FreezeTransaction
- func (transaction *FreezeTransaction) SetFileHash(hash []byte) *FreezeTransaction
- func (transaction *FreezeTransaction) SetFileID(id FileID) *FreezeTransaction
- func (transaction *FreezeTransaction) SetFreezeType(freezeType FreezeType) *FreezeTransaction
- func (transaction *FreezeTransaction) SetLogLevel(level LogLevel) *FreezeTransaction
- func (transaction *FreezeTransaction) SetMaxBackoff(max time.Duration) *FreezeTransaction
- func (transaction *FreezeTransaction) SetMaxRetry(count int) *FreezeTransaction
- func (transaction *FreezeTransaction) SetMaxTransactionFee(fee Hbar) *FreezeTransaction
- func (transaction *FreezeTransaction) SetMinBackoff(min time.Duration) *FreezeTransaction
- func (transaction *FreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *FreezeTransaction
- func (transaction *FreezeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FreezeTransaction
- func (transaction *FreezeTransaction) SetStartTime(startTime time.Time) *FreezeTransaction
- func (transaction *FreezeTransaction) SetTransactionID(transactionID TransactionID) *FreezeTransaction
- func (transaction *FreezeTransaction) SetTransactionMemo(memo string) *FreezeTransaction
- func (transaction *FreezeTransaction) SetTransactionValidDuration(duration time.Duration) *FreezeTransaction
- func (transaction *FreezeTransaction) Sign(privateKey PrivateKey) *FreezeTransaction
- func (transaction *FreezeTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *FreezeTransaction
- func (transaction *FreezeTransaction) SignWithOperator(client *Client) (*FreezeTransaction, error)
- type FreezeType
- type Hbar
- type HbarAllowance
- type HbarUnit
- type ITransaction
- type Key
- type KeyList
- type LedgerID
- type LiveHash
- type LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) AddSignature(publicKey PublicKey, signature []byte) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *LiveHashAddTransaction) Freeze() (*LiveHashAddTransaction, error)
- func (transaction *LiveHashAddTransaction) FreezeWith(client *Client) (*LiveHashAddTransaction, error)
- func (transaction *LiveHashAddTransaction) GetAccountID() AccountID
- func (transaction *LiveHashAddTransaction) GetDuration() time.Duration
- func (transaction *LiveHashAddTransaction) GetHash() []byte
- func (transaction *LiveHashAddTransaction) GetKeys() KeyList
- func (transaction *LiveHashAddTransaction) GetMaxBackoff() time.Duration
- func (transaction *LiveHashAddTransaction) GetMaxTransactionFee() Hbar
- func (transaction *LiveHashAddTransaction) GetMinBackoff() time.Duration
- func (transaction *LiveHashAddTransaction) GetRegenerateTransactionID() bool
- func (transaction *LiveHashAddTransaction) GetTransactionID() TransactionID
- func (transaction *LiveHashAddTransaction) GetTransactionMemo() string
- func (transaction *LiveHashAddTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *LiveHashAddTransaction) IsFrozen() bool
- func (transaction *LiveHashAddTransaction) SetAccountID(accountID AccountID) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetDuration(duration time.Duration) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetHash(hash []byte) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetKeys(keys ...Key) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetLogLevel(level LogLevel) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetMaxBackoff(max time.Duration) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetMaxRetry(count int) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetMaxTransactionFee(fee Hbar) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetMinBackoff(min time.Duration) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetNodeAccountIDs(nodeID []AccountID) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetTransactionID(transactionID TransactionID) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetTransactionMemo(memo string) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SetTransactionValidDuration(duration time.Duration) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) Sign(privateKey PrivateKey) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *LiveHashAddTransaction
- func (transaction *LiveHashAddTransaction) SignWithOperator(client *Client) (*LiveHashAddTransaction, error)
- type LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *LiveHashDeleteTransaction) Freeze() (*LiveHashDeleteTransaction, error)
- func (transaction *LiveHashDeleteTransaction) FreezeWith(client *Client) (*LiveHashDeleteTransaction, error)
- func (transaction *LiveHashDeleteTransaction) GetAccountID() AccountID
- func (transaction *LiveHashDeleteTransaction) GetHash() []byte
- func (transaction *LiveHashDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *LiveHashDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *LiveHashDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *LiveHashDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *LiveHashDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *LiveHashDeleteTransaction) GetTransactionMemo() string
- func (transaction *LiveHashDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *LiveHashDeleteTransaction) IsFrozen() bool
- func (transaction *LiveHashDeleteTransaction) SetAccountID(accountID AccountID) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetHash(hash []byte) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetLogLevel(level LogLevel) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetMaxBackoff(max time.Duration) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetMaxRetry(count int) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetMaxTransactionFee(fee Hbar) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetMinBackoff(min time.Duration) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetTransactionID(transactionID TransactionID) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetTransactionMemo(memo string) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) Sign(privateKey PrivateKey) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *LiveHashDeleteTransaction
- func (transaction *LiveHashDeleteTransaction) SignWithOperator(client *Client) (*LiveHashDeleteTransaction, error)
- type LiveHashQuery
- func (query *LiveHashQuery) Execute(client *Client) (LiveHash, error)
- func (query *LiveHashQuery) GetAccountID() AccountID
- func (query *LiveHashQuery) GetCost(client *Client) (Hbar, error)
- func (query *LiveHashQuery) GetGetHash() []byte
- func (query *LiveHashQuery) GetMaxBackoff() time.Duration
- func (query *LiveHashQuery) GetMaxRetry() int
- func (query *LiveHashQuery) GetMinBackoff() time.Duration
- func (query *LiveHashQuery) SetAccountID(accountID AccountID) *LiveHashQuery
- func (query *LiveHashQuery) SetGrpcDeadline(deadline *time.Duration) *LiveHashQuery
- func (query *LiveHashQuery) SetHash(hash []byte) *LiveHashQuery
- func (query *LiveHashQuery) SetLogLevel(level LogLevel) *LiveHashQuery
- func (query *LiveHashQuery) SetMaxBackoff(max time.Duration) *LiveHashQuery
- func (query *LiveHashQuery) SetMaxQueryPayment(maxPayment Hbar) *LiveHashQuery
- func (query *LiveHashQuery) SetMaxRetry(count int) *LiveHashQuery
- func (query *LiveHashQuery) SetMinBackoff(min time.Duration) *LiveHashQuery
- func (query *LiveHashQuery) SetNodeAccountIDs(accountID []AccountID) *LiveHashQuery
- func (query *LiveHashQuery) SetPaymentTransactionID(transactionID TransactionID) *LiveHashQuery
- func (query *LiveHashQuery) SetQueryPayment(paymentAmount Hbar) *LiveHashQuery
- type LogLevel
- type Logger
- 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) ToStandardEd25519PrivateKey(passPhrase string, index uint32) (PrivateKey, error)
- func (m Mnemonic) Words() []string
- type NetworkName
- type NetworkVersionInfo
- type NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) Execute(client *Client) (NetworkVersionInfo, error)
- func (query *NetworkVersionInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *NetworkVersionInfoQuery) GetMaxBackoff() time.Duration
- func (query *NetworkVersionInfoQuery) GetMinBackoff() time.Duration
- func (query *NetworkVersionInfoQuery) SetGrpcDeadline(deadline *time.Duration) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetLogLevel(level LogLevel) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetMaxBackoff(max time.Duration) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetMaxRetry(count int) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetMinBackoff(min time.Duration) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetNodeAccountIDs(accountID []AccountID) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *NetworkVersionInfoQuery
- func (query *NetworkVersionInfoQuery) SetQueryPayment(paymentAmount Hbar) *NetworkVersionInfoQuery
- type NftID
- type NodeAddress
- type NodeAddressBook
- 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)
- 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) 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(transaction *Transaction) ([]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
- func (transaction *PrngTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *PrngTransaction) Freeze() (*PrngTransaction, error)
- func (transaction *PrngTransaction) FreezeWith(client *Client) (*PrngTransaction, error)
- func (transaction *PrngTransaction) GetMaxBackoff() time.Duration
- func (transaction *PrngTransaction) GetMaxTransactionFee() Hbar
- func (transaction *PrngTransaction) GetMinBackoff() time.Duration
- func (transaction *PrngTransaction) GetRange() uint32
- func (transaction *PrngTransaction) GetRegenerateTransactionID() bool
- func (transaction *PrngTransaction) GetTransactionID() TransactionID
- func (transaction *PrngTransaction) GetTransactionMemo() string
- func (transaction *PrngTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *PrngTransaction) IsFrozen() bool
- func (transaction *PrngTransaction) SetGrpcDeadline(deadline *time.Duration) *PrngTransaction
- func (transaction *PrngTransaction) SetMaxBackoff(max time.Duration) *PrngTransaction
- func (transaction *PrngTransaction) SetMaxRetry(count int) *PrngTransaction
- func (transaction *PrngTransaction) SetMaxTransactionFee(fee Hbar) *PrngTransaction
- func (transaction *PrngTransaction) SetMinBackoff(min time.Duration) *PrngTransaction
- func (transaction *PrngTransaction) SetNodeAccountIDs(nodeID []AccountID) *PrngTransaction
- func (transaction *PrngTransaction) SetRange(r uint32) *PrngTransaction
- func (transaction *PrngTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *PrngTransaction
- func (transaction *PrngTransaction) SetTransactionID(transactionID TransactionID) *PrngTransaction
- func (transaction *PrngTransaction) SetTransactionMemo(memo string) *PrngTransaction
- func (transaction *PrngTransaction) SetTransactionValidDuration(duration time.Duration) *PrngTransaction
- func (transaction *PrngTransaction) Sign(privateKey PrivateKey) *PrngTransaction
- func (transaction *PrngTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *PrngTransaction
- func (transaction *PrngTransaction) SignWithOperator(client *Client) (*PrngTransaction, error)
- 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 (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() string
- func (pk PublicKey) ToEvmAddress() string
- func (pk PublicKey) Verify(message []byte, signature []byte) bool
- func (pk PublicKey) VerifyTransaction(transaction Transaction) bool
- type Query
- func (this *Query) GetGrpcDeadline() *time.Duration
- func (query *Query) GetLogLevel() *LogLevel
- func (this *Query) GetMaxQueryPayment() Hbar
- func (this *Query) GetMaxRetryCount() int
- func (this *Query) GetNodeAccountIDs() (nodeAccountIDs []AccountID)
- func (this *Query) GetPaymentTransactionID() TransactionID
- func (this *Query) GetQueryPayment() Hbar
- func (this *Query) SetGrpcDeadline(deadline *time.Duration) *Query
- func (query *Query) SetLogLevel(level LogLevel) *Query
- func (this *Query) SetMaxQueryPayment(maxPayment Hbar) *Query
- func (this *Query) SetMaxRetry(count int) *Query
- func (this *Query) SetNodeAccountIDs(nodeAccountIDs []AccountID) *Query
- func (this *Query) SetPaymentTransactionID(transactionID TransactionID) *Query
- func (this *Query) SetQueryPayment(paymentAmount Hbar) *Query
- type RequestType
- type ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ScheduleCreateTransaction) Freeze() (*ScheduleCreateTransaction, error)
- func (transaction *ScheduleCreateTransaction) FreezeWith(client *Client) (*ScheduleCreateTransaction, error)
- func (transaction *ScheduleCreateTransaction) GetAdminKey() *Key
- func (transaction *ScheduleCreateTransaction) GetExpirationTime() time.Time
- func (transaction *ScheduleCreateTransaction) GetMaxBackoff() time.Duration
- func (transaction *ScheduleCreateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ScheduleCreateTransaction) GetMinBackoff() time.Duration
- func (transaction *ScheduleCreateTransaction) GetPayerAccountID() AccountID
- func (transaction *ScheduleCreateTransaction) GetRegenerateTransactionID() bool
- func (transaction *ScheduleCreateTransaction) GetScheduleMemo() string
- func (transaction *ScheduleCreateTransaction) GetTransactionID() TransactionID
- func (transaction *ScheduleCreateTransaction) GetTransactionMemo() string
- func (transaction *ScheduleCreateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ScheduleCreateTransaction) GetWaitForExpiry() bool
- func (transaction *ScheduleCreateTransaction) IsFrozen() bool
- func (transaction *ScheduleCreateTransaction) SetAdminKey(key Key) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetExpirationTime(time time.Time) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetLogLevel(level LogLevel) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetMaxBackoff(max time.Duration) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetMaxRetry(count int) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetMinBackoff(min time.Duration) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetPayerAccountID(payerAccountID AccountID) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetScheduleMemo(memo string) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetScheduledTransaction(tx ITransaction) (*ScheduleCreateTransaction, error)
- func (transaction *ScheduleCreateTransaction) SetTransactionID(transactionID TransactionID) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetTransactionMemo(memo string) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SetWaitForExpiry(wait bool) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) Sign(privateKey PrivateKey) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ScheduleCreateTransaction
- func (transaction *ScheduleCreateTransaction) SignWithOperator(client *Client) (*ScheduleCreateTransaction, error)
- type ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ScheduleDeleteTransaction) Freeze() (*ScheduleDeleteTransaction, error)
- func (transaction *ScheduleDeleteTransaction) FreezeWith(client *Client) (*ScheduleDeleteTransaction, error)
- func (transaction *ScheduleDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *ScheduleDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ScheduleDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *ScheduleDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *ScheduleDeleteTransaction) GetScheduleID() ScheduleID
- func (transaction *ScheduleDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *ScheduleDeleteTransaction) GetTransactionMemo() string
- func (transaction *ScheduleDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ScheduleDeleteTransaction) IsFrozen() bool
- func (transaction *ScheduleDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *ScheduleDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetLogLevel(level LogLevel) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetMaxBackoff(max time.Duration) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetMaxRetry(count int) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetMinBackoff(min time.Duration) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetTransactionID(transactionID TransactionID) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetTransactionMemo(memo string) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) Sign(privateKey PrivateKey) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ScheduleDeleteTransaction
- func (transaction *ScheduleDeleteTransaction) SignWithOperator(client *Client) (*ScheduleDeleteTransaction, error)
- type ScheduleID
- type ScheduleInfo
- type ScheduleInfoQuery
- func (query *ScheduleInfoQuery) Execute(client *Client) (ScheduleInfo, error)
- func (query *ScheduleInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *ScheduleInfoQuery) GetMaxBackoff() time.Duration
- func (query *ScheduleInfoQuery) GetMinBackoff() time.Duration
- func (query *ScheduleInfoQuery) GetNodeAccountIDs() []AccountID
- func (query *ScheduleInfoQuery) GetScheduleID() ScheduleID
- func (query *ScheduleInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetLogLevel(level LogLevel) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetMaxBackoff(max time.Duration) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetMaxRetry(count int) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetMinBackoff(min time.Duration) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetQueryPayment(paymentAmount Hbar) *ScheduleInfoQuery
- func (query *ScheduleInfoQuery) SetScheduleID(scheduleID ScheduleID) *ScheduleInfoQuery
- type ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *ScheduleSignTransaction) Freeze() (*ScheduleSignTransaction, error)
- func (transaction *ScheduleSignTransaction) FreezeWith(client *Client) (*ScheduleSignTransaction, error)
- func (transaction *ScheduleSignTransaction) GetMaxBackoff() time.Duration
- func (transaction *ScheduleSignTransaction) GetMaxTransactionFee() Hbar
- func (transaction *ScheduleSignTransaction) GetMinBackoff() time.Duration
- func (transaction *ScheduleSignTransaction) GetRegenerateTransactionID() bool
- func (transaction *ScheduleSignTransaction) GetScheduleID() ScheduleID
- func (transaction *ScheduleSignTransaction) GetTransactionID() TransactionID
- func (transaction *ScheduleSignTransaction) GetTransactionMemo() string
- func (transaction *ScheduleSignTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *ScheduleSignTransaction) IsFrozen() bool
- func (transaction *ScheduleSignTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetLogLevel(level LogLevel) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetMaxBackoff(max time.Duration) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetMaxRetry(count int) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetMinBackoff(min time.Duration) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetTransactionID(transactionID TransactionID) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetTransactionMemo(memo string) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) Sign(privateKey PrivateKey) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *ScheduleSignTransaction
- func (transaction *ScheduleSignTransaction) SignWithOperator(client *Client) (*ScheduleSignTransaction, error)
- type SemanticVersion
- type StakingInfoHedera
- type Status
- type StorageChange
- type SubscriptionHandle
- type SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *SystemDeleteTransaction) Freeze() (*SystemDeleteTransaction, error)
- func (transaction *SystemDeleteTransaction) FreezeWith(client *Client) (*SystemDeleteTransaction, error)
- func (transaction *SystemDeleteTransaction) GetContractID() ContractID
- func (transaction *SystemDeleteTransaction) GetExpirationTime() int64
- func (transaction *SystemDeleteTransaction) GetFileID() FileID
- func (transaction *SystemDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *SystemDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *SystemDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *SystemDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *SystemDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *SystemDeleteTransaction) GetTransactionMemo() string
- func (transaction *SystemDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *SystemDeleteTransaction) IsFrozen() bool
- func (transaction *SystemDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *SystemDeleteTransaction) SetContractID(contractID ContractID) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetExpirationTime(expiration time.Time) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetFileID(fileID FileID) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetLogLevel(level LogLevel) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetMaxBackoff(max time.Duration) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetMaxRetry(count int) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetMaxTransactionFee(fee Hbar) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetMinBackoff(min time.Duration) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetTransactionID(transactionID TransactionID) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetTransactionMemo(memo string) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) Sign(privateKey PrivateKey) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *SystemDeleteTransaction
- func (transaction *SystemDeleteTransaction) SignWithOperator(client *Client) (*SystemDeleteTransaction, error)
- type SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *SystemUndeleteTransaction) Freeze() (*SystemUndeleteTransaction, error)
- func (transaction *SystemUndeleteTransaction) FreezeWith(client *Client) (*SystemUndeleteTransaction, error)
- func (transaction *SystemUndeleteTransaction) GetContractID() ContractID
- func (transaction *SystemUndeleteTransaction) GetFileID() FileID
- func (transaction *SystemUndeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *SystemUndeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *SystemUndeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *SystemUndeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *SystemUndeleteTransaction) GetTransactionID() TransactionID
- func (transaction *SystemUndeleteTransaction) GetTransactionMemo() string
- func (transaction *SystemUndeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *SystemUndeleteTransaction) IsFrozen() bool
- func (transaction *SystemUndeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *SystemUndeleteTransaction) SetContractID(contractID ContractID) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetFileID(fileID FileID) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetLogLevel(level LogLevel) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetMaxBackoff(max time.Duration) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetMaxRetry(count int) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetMaxTransactionFee(fee Hbar) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetMinBackoff(min time.Duration) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetTransactionID(transactionID TransactionID) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetTransactionMemo(memo string) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SetTransactionValidDuration(duration time.Duration) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) Sign(privateKey PrivateKey) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *SystemUndeleteTransaction
- func (transaction *SystemUndeleteTransaction) SignWithOperator(client *Client) (*SystemUndeleteTransaction, error)
- type TokenAllowance
- type TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) AddTokenID(id TokenID) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenAssociateTransaction) Freeze() (*TokenAssociateTransaction, error)
- func (transaction *TokenAssociateTransaction) FreezeWith(client *Client) (*TokenAssociateTransaction, error)
- func (transaction *TokenAssociateTransaction) GetAccountID() AccountID
- func (transaction *TokenAssociateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenAssociateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenAssociateTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenAssociateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenAssociateTransaction) GetTokenIDs() []TokenID
- func (transaction *TokenAssociateTransaction) GetTransactionID() TransactionID
- func (transaction *TokenAssociateTransaction) GetTransactionMemo() string
- func (transaction *TokenAssociateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenAssociateTransaction) IsFrozen() bool
- func (transaction *TokenAssociateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenAssociateTransaction) SetAccountID(accountID AccountID) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetLogLevel(level LogLevel) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetMaxBackoff(max time.Duration) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetMaxRetry(count int) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetMaxTransactionFee(fee Hbar) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetMinBackoff(min time.Duration) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetTokenIDs(ids ...TokenID) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetTransactionID(transactionID TransactionID) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetTransactionMemo(memo string) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) Sign(privateKey PrivateKey) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenAssociateTransaction
- func (transaction *TokenAssociateTransaction) SignWithOperator(client *Client) (*TokenAssociateTransaction, error)
- type TokenAssociation
- type TokenBalanceMap
- type TokenBurnTransaction
- func (transaction *TokenBurnTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenBurnTransaction) Freeze() (*TokenBurnTransaction, error)
- func (transaction *TokenBurnTransaction) FreezeWith(client *Client) (*TokenBurnTransaction, error)
- func (transaction *TokenBurnTransaction) GetAmmount() uint64deprecated
- func (transaction *TokenBurnTransaction) GetAmount() uint64
- func (transaction *TokenBurnTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenBurnTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenBurnTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenBurnTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenBurnTransaction) GetSerialNumbers() []int64
- func (transaction *TokenBurnTransaction) GetTokenID() TokenID
- func (transaction *TokenBurnTransaction) GetTransactionID() TransactionID
- func (transaction *TokenBurnTransaction) GetTransactionMemo() string
- func (transaction *TokenBurnTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenBurnTransaction) IsFrozen() bool
- func (transaction *TokenBurnTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenBurnTransaction) SetAmount(amount uint64) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetLogLevel(level LogLevel) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetMaxBackoff(max time.Duration) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetMaxRetry(count int) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetMaxTransactionFee(fee Hbar) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetMinBackoff(min time.Duration) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetSerialNumber(serial int64) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetSerialNumbers(serial []int64) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetTokenID(tokenID TokenID) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetTransactionID(transactionID TransactionID) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetTransactionMemo(memo string) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SetTransactionValidDuration(duration time.Duration) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) Sign(privateKey PrivateKey) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenBurnTransaction
- func (transaction *TokenBurnTransaction) SignWithOperator(client *Client) (*TokenBurnTransaction, error)
- type TokenCreateTransaction
- func (transaction *TokenCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenCreateTransaction) Freeze() (*TokenCreateTransaction, error)
- func (transaction *TokenCreateTransaction) FreezeWith(client *Client) (*TokenCreateTransaction, error)
- func (transaction *TokenCreateTransaction) GetAdminKey() Key
- func (transaction *TokenCreateTransaction) GetAutoRenewAccount() AccountID
- func (transaction *TokenCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *TokenCreateTransaction) GetCustomFees() []Fee
- func (transaction *TokenCreateTransaction) GetDecimals() uint
- func (transaction *TokenCreateTransaction) GetExpirationTime() time.Time
- func (transaction *TokenCreateTransaction) GetFeeScheduleKey() Key
- func (transaction *TokenCreateTransaction) GetFreezeDefault() bool
- func (transaction *TokenCreateTransaction) GetFreezeKey() Key
- func (transaction *TokenCreateTransaction) GetInitialSupply() uint64
- func (transaction *TokenCreateTransaction) GetKycKey() Key
- func (transaction *TokenCreateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenCreateTransaction) GetMaxSupply() int64
- func (transaction *TokenCreateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenCreateTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenCreateTransaction) GetPauseKey() Key
- func (transaction *TokenCreateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenCreateTransaction) GetSupplyKey() Key
- func (transaction *TokenCreateTransaction) GetSupplyType() TokenSupplyType
- func (transaction *TokenCreateTransaction) GetTokenMemo() string
- func (transaction *TokenCreateTransaction) GetTokenName() string
- func (transaction *TokenCreateTransaction) GetTokenSymbol() string
- func (transaction *TokenCreateTransaction) GetTokenType() TokenType
- func (transaction *TokenCreateTransaction) GetTransactionID() TransactionID
- func (transaction *TokenCreateTransaction) GetTransactionMemo() string
- func (transaction *TokenCreateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenCreateTransaction) GetTreasuryAccountID() AccountID
- func (transaction *TokenCreateTransaction) GetWipeKey() Key
- func (transaction *TokenCreateTransaction) IsFrozen() bool
- func (transaction *TokenCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenCreateTransaction) SetAdminKey(publicKey Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetAutoRenewAccount(autoRenewAccountID AccountID) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetCustomFees(customFee []Fee) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetDecimals(decimals uint) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetExpirationTime(expirationTime time.Time) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetFeeScheduleKey(key Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetFreezeDefault(freezeDefault bool) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetFreezeKey(publicKey Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetInitialSupply(initialSupply uint64) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetKycKey(publicKey Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetLogLevel(level LogLevel) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetMaxBackoff(max time.Duration) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetMaxRetry(count int) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetMaxSupply(maxSupply int64) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetMaxTransactionFee(fee Hbar) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetMinBackoff(min time.Duration) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetPauseKey(key Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetSupplyKey(publicKey Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetSupplyType(tokenSupply TokenSupplyType) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTokenMemo(memo string) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTokenName(name string) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTokenSymbol(symbol string) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTokenType(t TokenType) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTransactionID(transactionID TransactionID) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTransactionMemo(memo string) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetTreasuryAccountID(treasuryAccountID AccountID) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SetWipeKey(publicKey Key) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) Sign(privateKey PrivateKey) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenCreateTransaction
- func (transaction *TokenCreateTransaction) SignWithOperator(client *Client) (*TokenCreateTransaction, error)
- type TokenDecimalMap
- type TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenDeleteTransaction) Freeze() (*TokenDeleteTransaction, error)
- func (transaction *TokenDeleteTransaction) FreezeWith(client *Client) (*TokenDeleteTransaction, error)
- func (transaction *TokenDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenDeleteTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenDeleteTransaction) GetTokenID() TokenID
- func (transaction *TokenDeleteTransaction) GetTransactionID() TransactionID
- func (transaction *TokenDeleteTransaction) GetTransactionMemo() string
- func (transaction *TokenDeleteTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenDeleteTransaction) IsFrozen() bool
- func (transaction *TokenDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetLogLevel(level LogLevel) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetMaxBackoff(max time.Duration) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetMaxRetry(count int) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetMaxTransactionFee(fee Hbar) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetMinBackoff(min time.Duration) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetTokenID(tokenID TokenID) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetTransactionID(transactionID TransactionID) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetTransactionMemo(memo string) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) Sign(privateKey PrivateKey) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenDeleteTransaction
- func (transaction *TokenDeleteTransaction) SignWithOperator(client *Client) (*TokenDeleteTransaction, error)
- type TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) AddTokenID(id TokenID) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenDissociateTransaction) Freeze() (*TokenDissociateTransaction, error)
- func (transaction *TokenDissociateTransaction) FreezeWith(client *Client) (*TokenDissociateTransaction, error)
- func (transaction *TokenDissociateTransaction) GetAccountID() AccountID
- func (transaction *TokenDissociateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenDissociateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenDissociateTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenDissociateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenDissociateTransaction) GetTokenIDs() []TokenID
- func (transaction *TokenDissociateTransaction) GetTransactionID() TransactionID
- func (transaction *TokenDissociateTransaction) GetTransactionMemo() string
- func (transaction *TokenDissociateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenDissociateTransaction) IsFrozen() bool
- func (transaction *TokenDissociateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenDissociateTransaction) SetAccountID(accountID AccountID) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetLogLevel(level LogLevel) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetMaxBackoff(max time.Duration) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetMaxRetry(count int) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetMaxTransactionFee(fee Hbar) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetMinBackoff(min time.Duration) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetTokenIDs(ids ...TokenID) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetTransactionID(transactionID TransactionID) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetTransactionMemo(memo string) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) Sign(privateKey PrivateKey) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenDissociateTransaction
- func (transaction *TokenDissociateTransaction) SignWithOperator(client *Client) (*TokenDissociateTransaction, error)
- type TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenFeeScheduleUpdateTransaction) Freeze() (*TokenFeeScheduleUpdateTransaction, error)
- func (transaction *TokenFeeScheduleUpdateTransaction) FreezeWith(client *Client) (*TokenFeeScheduleUpdateTransaction, error)
- func (transaction *TokenFeeScheduleUpdateTransaction) GetCustomFees() []Fee
- func (transaction *TokenFeeScheduleUpdateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenFeeScheduleUpdateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenFeeScheduleUpdateTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenFeeScheduleUpdateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenFeeScheduleUpdateTransaction) GetTokenID() TokenID
- func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionID() TransactionID
- func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionMemo() string
- func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenFeeScheduleUpdateTransaction) IsFrozen() bool
- func (transaction *TokenFeeScheduleUpdateTransaction) SetCustomFees(fees []Fee) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetLogLevel(level LogLevel) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxBackoff(max time.Duration) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxRetry(count int) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetMinBackoff(min time.Duration) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetTokenID(tokenID TokenID) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionID(transactionID TransactionID) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionMemo(memo string) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) Sign(privateKey PrivateKey) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenFeeScheduleUpdateTransaction
- func (transaction *TokenFeeScheduleUpdateTransaction) SignWithOperator(client *Client) (*TokenFeeScheduleUpdateTransaction, error)
- type TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenFreezeTransaction) Freeze() (*TokenFreezeTransaction, error)
- func (transaction *TokenFreezeTransaction) FreezeWith(client *Client) (*TokenFreezeTransaction, error)
- func (transaction *TokenFreezeTransaction) GetAccountID() AccountID
- func (transaction *TokenFreezeTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenFreezeTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenFreezeTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenFreezeTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenFreezeTransaction) GetTokenID() TokenID
- func (transaction *TokenFreezeTransaction) GetTransactionID() TransactionID
- func (transaction *TokenFreezeTransaction) GetTransactionMemo() string
- func (transaction *TokenFreezeTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenFreezeTransaction) IsFrozen() bool
- func (transaction *TokenFreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenFreezeTransaction) SetAccountID(accountID AccountID) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetLogLevel(level LogLevel) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetMaxBackoff(max time.Duration) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetMaxRetry(count int) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetMaxTransactionFee(fee Hbar) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetMinBackoff(min time.Duration) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetTokenID(tokenID TokenID) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetTransactionID(transactionID TransactionID) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetTransactionMemo(memo string) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SetTransactionValidDuration(duration time.Duration) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) Sign(privateKey PrivateKey) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenFreezeTransaction
- func (transaction *TokenFreezeTransaction) SignWithOperator(client *Client) (*TokenFreezeTransaction, error)
- type TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenGrantKycTransaction) Freeze() (*TokenGrantKycTransaction, error)
- func (transaction *TokenGrantKycTransaction) FreezeWith(client *Client) (*TokenGrantKycTransaction, error)
- func (transaction *TokenGrantKycTransaction) GetAccountID() AccountID
- func (transaction *TokenGrantKycTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenGrantKycTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenGrantKycTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenGrantKycTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenGrantKycTransaction) GetTokenID() TokenID
- func (transaction *TokenGrantKycTransaction) GetTransactionID() TransactionID
- func (transaction *TokenGrantKycTransaction) GetTransactionMemo() string
- func (transaction *TokenGrantKycTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenGrantKycTransaction) IsFrozen() bool
- func (transaction *TokenGrantKycTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenGrantKycTransaction) SetAccountID(accountID AccountID) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetLogLevel(level LogLevel) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetMaxBackoff(max time.Duration) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetMaxRetry(count int) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetMaxTransactionFee(fee Hbar) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetMinBackoff(min time.Duration) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetTokenID(tokenID TokenID) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetTransactionID(transactionID TransactionID) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetTransactionMemo(memo string) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SetTransactionValidDuration(duration time.Duration) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) Sign(privateKey PrivateKey) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenGrantKycTransaction
- func (transaction *TokenGrantKycTransaction) SignWithOperator(client *Client) (*TokenGrantKycTransaction, error)
- 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) 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 (query *TokenInfoQuery) Execute(client *Client) (TokenInfo, error)
- func (query *TokenInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *TokenInfoQuery) GetMaxBackoff() time.Duration
- func (query *TokenInfoQuery) GetMinBackoff() time.Duration
- func (query *TokenInfoQuery) GetTokenID() TokenID
- func (query *TokenInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenInfoQuery
- func (query *TokenInfoQuery) SetLogLevel(level LogLevel) *TokenInfoQuery
- func (query *TokenInfoQuery) SetMaxBackoff(max time.Duration) *TokenInfoQuery
- func (query *TokenInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenInfoQuery
- func (query *TokenInfoQuery) SetMaxRetry(count int) *TokenInfoQuery
- func (query *TokenInfoQuery) SetMinBackoff(min time.Duration) *TokenInfoQuery
- func (query *TokenInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenInfoQuery
- func (query *TokenInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenInfoQuery
- func (query *TokenInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenInfoQuery
- func (query *TokenInfoQuery) SetTokenID(tokenID TokenID) *TokenInfoQuery
- type TokenMintTransaction
- func (transaction *TokenMintTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenMintTransaction
- func (transaction *TokenMintTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenMintTransaction) Freeze() (*TokenMintTransaction, error)
- func (transaction *TokenMintTransaction) FreezeWith(client *Client) (*TokenMintTransaction, error)
- func (transaction *TokenMintTransaction) GetAmount() uint64
- func (transaction *TokenMintTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenMintTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenMintTransaction) GetMetadatas() [][]byte
- func (transaction *TokenMintTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenMintTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenMintTransaction) GetTokenID() TokenID
- func (transaction *TokenMintTransaction) GetTransactionID() TransactionID
- func (transaction *TokenMintTransaction) GetTransactionMemo() string
- func (transaction *TokenMintTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenMintTransaction) IsFrozen() bool
- func (transaction *TokenMintTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenMintTransaction) SetAmount(amount uint64) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetLogLevel(level LogLevel) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetMaxBackoff(max time.Duration) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetMaxRetry(count int) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetMaxTransactionFee(fee Hbar) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetMetadata(meta []byte) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetMetadatas(meta [][]byte) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetMinBackoff(min time.Duration) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetTokenID(tokenID TokenID) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetTransactionID(transactionID TransactionID) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetTransactionMemo(memo string) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SetTransactionValidDuration(duration time.Duration) *TokenMintTransaction
- func (transaction *TokenMintTransaction) Sign(privateKey PrivateKey) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenMintTransaction
- func (transaction *TokenMintTransaction) SignWithOperator(client *Client) (*TokenMintTransaction, error)
- type TokenNftAllowance
- type TokenNftInfo
- type TokenNftInfoQuery
- func (query *TokenNftInfoQuery) ByAccountID(id AccountID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) ByNftID(id NftID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) ByTokenID(id TokenID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) Execute(client *Client) ([]TokenNftInfo, error)
- func (query *TokenNftInfoQuery) GetAccountID() AccountID
- func (query *TokenNftInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *TokenNftInfoQuery) GetEnd() int64
- func (query *TokenNftInfoQuery) GetMaxBackoff() time.Duration
- func (query *TokenNftInfoQuery) GetMinBackoff() time.Duration
- func (query *TokenNftInfoQuery) GetNftID() NftID
- func (query *TokenNftInfoQuery) GetStart() int64
- func (query *TokenNftInfoQuery) GetTokenID() TokenID
- func (query *TokenNftInfoQuery) SetAccountID(id AccountID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetEnd(end int64) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetLogLevel(level LogLevel) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetMaxBackoff(max time.Duration) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetMaxRetry(count int) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetMinBackoff(min time.Duration) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetNftID(nftID NftID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetStart(start int64) *TokenNftInfoQuery
- func (query *TokenNftInfoQuery) SetTokenID(id TokenID) *TokenNftInfoQuery
- type TokenNftTransfer
- type TokenPauseTransaction
- func (transaction *TokenPauseTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenPauseTransaction) Freeze() (*TokenPauseTransaction, error)
- func (transaction *TokenPauseTransaction) FreezeWith(client *Client) (*TokenPauseTransaction, error)
- func (transaction *TokenPauseTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenPauseTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenPauseTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenPauseTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenPauseTransaction) GetTokenID() TokenID
- func (transaction *TokenPauseTransaction) GetTransactionID() TransactionID
- func (transaction *TokenPauseTransaction) GetTransactionMemo() string
- func (transaction *TokenPauseTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenPauseTransaction) IsFrozen() bool
- func (transaction *TokenPauseTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenPauseTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetLogLevel(level LogLevel) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetMaxBackoff(max time.Duration) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetMaxRetry(count int) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetMaxTransactionFee(fee Hbar) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetMinBackoff(min time.Duration) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetTokenID(tokenID TokenID) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetTransactionID(transactionID TransactionID) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetTransactionMemo(memo string) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SetTransactionValidDuration(duration time.Duration) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) Sign(privateKey PrivateKey) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenPauseTransaction
- func (transaction *TokenPauseTransaction) SignWithOperator(client *Client) (*TokenPauseTransaction, error)
- type TokenRelationship
- type TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenRevokeKycTransaction) Freeze() (*TokenRevokeKycTransaction, error)
- func (transaction *TokenRevokeKycTransaction) FreezeWith(client *Client) (*TokenRevokeKycTransaction, error)
- func (transaction *TokenRevokeKycTransaction) GetAccountID() AccountID
- func (transaction *TokenRevokeKycTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenRevokeKycTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenRevokeKycTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenRevokeKycTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenRevokeKycTransaction) GetTokenID() TokenID
- func (transaction *TokenRevokeKycTransaction) GetTransactionID() TransactionID
- func (transaction *TokenRevokeKycTransaction) GetTransactionMemo() string
- func (transaction *TokenRevokeKycTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenRevokeKycTransaction) IsFrozen() bool
- func (transaction *TokenRevokeKycTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenRevokeKycTransaction) SetAccountID(accountID AccountID) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetLogLevel(level LogLevel) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetMaxBackoff(max time.Duration) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetMaxRetry(count int) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetMaxTransactionFee(fee Hbar) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetMinBackoff(min time.Duration) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetTokenID(tokenID TokenID) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetTransactionID(transactionID TransactionID) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetTransactionMemo(memo string) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SetTransactionValidDuration(duration time.Duration) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) Sign(privateKey PrivateKey) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenRevokeKycTransaction
- func (transaction *TokenRevokeKycTransaction) SignWithOperator(client *Client) (*TokenRevokeKycTransaction, error)
- type TokenSupplyType
- type TokenTransfer
- type TokenType
- type TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenUnfreezeTransaction) Freeze() (*TokenUnfreezeTransaction, error)
- func (transaction *TokenUnfreezeTransaction) FreezeWith(client *Client) (*TokenUnfreezeTransaction, error)
- func (transaction *TokenUnfreezeTransaction) GetAccountID() AccountID
- func (transaction *TokenUnfreezeTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenUnfreezeTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenUnfreezeTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenUnfreezeTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenUnfreezeTransaction) GetTokenID() TokenID
- func (transaction *TokenUnfreezeTransaction) GetTransactionID() TransactionID
- func (transaction *TokenUnfreezeTransaction) GetTransactionMemo() string
- func (transaction *TokenUnfreezeTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenUnfreezeTransaction) IsFrozen() bool
- func (transaction *TokenUnfreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenUnfreezeTransaction) SetAccountID(accountID AccountID) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetLogLevel(level LogLevel) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetMaxBackoff(max time.Duration) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetMaxRetry(count int) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetMaxTransactionFee(fee Hbar) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetMinBackoff(min time.Duration) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetTokenID(tokenID TokenID) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetTransactionID(transactionID TransactionID) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetTransactionMemo(memo string) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) Sign(privateKey PrivateKey) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenUnfreezeTransaction
- func (transaction *TokenUnfreezeTransaction) SignWithOperator(client *Client) (*TokenUnfreezeTransaction, error)
- type TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenUnpauseTransaction) Freeze() (*TokenUnpauseTransaction, error)
- func (transaction *TokenUnpauseTransaction) FreezeWith(client *Client) (*TokenUnpauseTransaction, error)
- func (transaction *TokenUnpauseTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenUnpauseTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenUnpauseTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenUnpauseTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenUnpauseTransaction) GetTokenID() TokenID
- func (transaction *TokenUnpauseTransaction) GetTransactionID() TransactionID
- func (transaction *TokenUnpauseTransaction) GetTransactionMemo() string
- func (transaction *TokenUnpauseTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenUnpauseTransaction) IsFrozen() bool
- func (transaction *TokenUnpauseTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenUnpauseTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetLogLevel(level LogLevel) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetMaxBackoff(max time.Duration) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetMaxRetry(count int) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetMaxTransactionFee(fee Hbar) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetMinBackoff(min time.Duration) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetTokenID(tokenID TokenID) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetTransactionID(transactionID TransactionID) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetTransactionMemo(memo string) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) Sign(privateKey PrivateKey) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenUnpauseTransaction
- func (transaction *TokenUnpauseTransaction) SignWithOperator(client *Client) (*TokenUnpauseTransaction, error)
- type TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenUpdateTransaction) Freeze() (*TokenUpdateTransaction, error)
- func (transaction *TokenUpdateTransaction) FreezeWith(client *Client) (*TokenUpdateTransaction, error)
- func (transaction *TokenUpdateTransaction) GeTokenMemo() string
- func (transaction *TokenUpdateTransaction) GetAdminKey() Key
- func (transaction *TokenUpdateTransaction) GetAutoRenewAccount() AccountID
- func (transaction *TokenUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *TokenUpdateTransaction) GetExpirationTime() time.Time
- func (transaction *TokenUpdateTransaction) GetFeeScheduleKey() Key
- func (transaction *TokenUpdateTransaction) GetFreezeKey() Key
- func (transaction *TokenUpdateTransaction) GetKycKey() Key
- func (transaction *TokenUpdateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenUpdateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenUpdateTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenUpdateTransaction) GetPauseKey() Key
- func (transaction *TokenUpdateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenUpdateTransaction) GetSupplyKey() Key
- func (transaction *TokenUpdateTransaction) GetTokenID() TokenID
- func (transaction *TokenUpdateTransaction) GetTokenName() string
- func (transaction *TokenUpdateTransaction) GetTokenSymbol() string
- func (transaction *TokenUpdateTransaction) GetTransactionID() TransactionID
- func (transaction *TokenUpdateTransaction) GetTransactionMemo() string
- func (transaction *TokenUpdateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenUpdateTransaction) GetTreasuryAccountID() AccountID
- func (transaction *TokenUpdateTransaction) GetWipeKey() Key
- func (transaction *TokenUpdateTransaction) IsFrozen() bool
- func (transaction *TokenUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenUpdateTransaction) SetAdminKey(publicKey Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetAutoRenewAccount(autoRenewAccountID AccountID) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetExpirationTime(expirationTime time.Time) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetFeeScheduleKey(key Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetFreezeKey(publicKey Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetKycKey(publicKey Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetLogLevel(level LogLevel) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetMaxBackoff(max time.Duration) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetMaxRetry(count int) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetMinBackoff(min time.Duration) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetPauseKey(publicKey Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetSupplyKey(publicKey Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTokenID(tokenID TokenID) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTokenMemo(memo string) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTokenName(name string) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTokenSymbol(symbol string) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTransactionID(transactionID TransactionID) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTransactionMemo(memo string) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetTreasuryAccountID(treasuryAccountID AccountID) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SetWipeKey(publicKey Key) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) Sign(privateKey PrivateKey) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenUpdateTransaction
- func (transaction *TokenUpdateTransaction) SignWithOperator(client *Client) (*TokenUpdateTransaction, error)
- type TokenWipeTransaction
- func (transaction *TokenWipeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TokenWipeTransaction) Freeze() (*TokenWipeTransaction, error)
- func (transaction *TokenWipeTransaction) FreezeWith(client *Client) (*TokenWipeTransaction, error)
- func (transaction *TokenWipeTransaction) GetAccountID() AccountID
- func (transaction *TokenWipeTransaction) GetAmount() uint64
- func (transaction *TokenWipeTransaction) GetMaxBackoff() time.Duration
- func (transaction *TokenWipeTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TokenWipeTransaction) GetMinBackoff() time.Duration
- func (transaction *TokenWipeTransaction) GetRegenerateTransactionID() bool
- func (transaction *TokenWipeTransaction) GetSerialNumbers() []int64
- func (transaction *TokenWipeTransaction) GetTokenID() TokenID
- func (transaction *TokenWipeTransaction) GetTransactionID() TransactionID
- func (transaction *TokenWipeTransaction) GetTransactionMemo() string
- func (transaction *TokenWipeTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TokenWipeTransaction) IsFrozen() bool
- func (transaction *TokenWipeTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TokenWipeTransaction) SetAccountID(accountID AccountID) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetAmount(amount uint64) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetLogLevel(level LogLevel) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetMaxBackoff(max time.Duration) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetMaxRetry(count int) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetMaxTransactionFee(fee Hbar) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetMinBackoff(min time.Duration) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetSerialNumbers(serial []int64) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetTokenID(tokenID TokenID) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetTransactionID(transactionID TransactionID) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetTransactionMemo(memo string) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SetTransactionValidDuration(duration time.Duration) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) Sign(privateKey PrivateKey) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TokenWipeTransaction
- func (transaction *TokenWipeTransaction) SignWithOperator(client *Client) (*TokenWipeTransaction, error)
- type TopicCreateTransaction
- func (transaction *TopicCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TopicCreateTransaction) Freeze() (*TopicCreateTransaction, error)
- func (transaction *TopicCreateTransaction) FreezeWith(client *Client) (*TopicCreateTransaction, error)
- func (transaction *TopicCreateTransaction) GetAdminKey() (Key, error)
- func (transaction *TopicCreateTransaction) GetAutoRenewAccountID() AccountID
- func (transaction *TopicCreateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *TopicCreateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TopicCreateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TopicCreateTransaction) GetMinBackoff() time.Duration
- func (transaction *TopicCreateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TopicCreateTransaction) GetSubmitKey() (Key, error)
- func (transaction *TopicCreateTransaction) GetTopicMemo() string
- func (transaction *TopicCreateTransaction) GetTransactionID() TransactionID
- func (transaction *TopicCreateTransaction) GetTransactionMemo() string
- func (transaction *TopicCreateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TopicCreateTransaction) IsFrozen() bool
- func (transaction *TopicCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TopicCreateTransaction) SetAdminKey(publicKey Key) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetAutoRenewAccountID(autoRenewAccountID AccountID) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetAutoRenewPeriod(period time.Duration) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetLogLevel(level LogLevel) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetMaxBackoff(max time.Duration) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetMaxRetry(count int) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetMaxTransactionFee(fee Hbar) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetMinBackoff(min time.Duration) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetSubmitKey(publicKey Key) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetTopicMemo(memo string) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetTransactionID(transactionID TransactionID) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetTransactionMemo(memo string) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SetTransactionValidDuration(duration time.Duration) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) Sign(privateKey PrivateKey) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TopicCreateTransaction
- func (transaction *TopicCreateTransaction) SignWithOperator(client *Client) (*TopicCreateTransaction, error)
- type TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TopicDeleteTransaction) Freeze() (*TopicDeleteTransaction, error)
- func (transaction *TopicDeleteTransaction) FreezeWith(client *Client) (*TopicDeleteTransaction, error)
- func (transaction *TopicDeleteTransaction) GetMaxBackoff() time.Duration
- func (transaction *TopicDeleteTransaction) GetMinBackoff() time.Duration
- func (transaction *TopicDeleteTransaction) GetRegenerateTransactionID() bool
- func (transaction *TopicDeleteTransaction) GetTopicID() TopicID
- func (transaction *TopicDeleteTransaction) IsFrozen() bool
- func (transaction *TopicDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TopicDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetLogLevel(level LogLevel) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetMaxBackoff(max time.Duration) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetMaxRetry(count int) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetMaxTransactionFee(fee Hbar) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetMinBackoff(min time.Duration) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetTopicID(topicID TopicID) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetTransactionID(transactionID TransactionID) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetTransactionMemo(memo string) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) Sign(privateKey PrivateKey) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TopicDeleteTransaction
- func (transaction *TopicDeleteTransaction) SignWithOperator(client *Client) (*TopicDeleteTransaction, error)
- type TopicID
- type TopicInfo
- type TopicInfoQuery
- func (query *TopicInfoQuery) Execute(client *Client) (TopicInfo, error)
- func (query *TopicInfoQuery) GetCost(client *Client) (Hbar, error)
- func (query *TopicInfoQuery) GetMaxBackoff() time.Duration
- func (query *TopicInfoQuery) GetMinBackoff() time.Duration
- func (query *TopicInfoQuery) GetTopicID() TopicID
- func (query *TopicInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TopicInfoQuery
- func (query *TopicInfoQuery) SetLogLevel(level LogLevel) *TopicInfoQuery
- func (query *TopicInfoQuery) SetMaxBackoff(max time.Duration) *TopicInfoQuery
- func (query *TopicInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TopicInfoQuery
- func (query *TopicInfoQuery) SetMaxRetry(count int) *TopicInfoQuery
- func (query *TopicInfoQuery) SetMinBackoff(min time.Duration) *TopicInfoQuery
- func (query *TopicInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TopicInfoQuery
- func (query *TopicInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TopicInfoQuery
- func (query *TopicInfoQuery) SetQueryPayment(paymentAmount Hbar) *TopicInfoQuery
- func (query *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 (transaction *TopicMessageSubmitTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TopicMessageSubmitTransaction) ExecuteAll(client *Client) ([]TransactionResponse, error)
- func (transaction *TopicMessageSubmitTransaction) Freeze() (*TopicMessageSubmitTransaction, error)
- func (transaction *TopicMessageSubmitTransaction) FreezeWith(client *Client) (*TopicMessageSubmitTransaction, error)
- func (transaction *TopicMessageSubmitTransaction) GetMaxBackoff() time.Duration
- func (transaction *TopicMessageSubmitTransaction) GetMaxChunks() uint64
- func (transaction *TopicMessageSubmitTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TopicMessageSubmitTransaction) GetMessage() []byte
- func (transaction *TopicMessageSubmitTransaction) GetMinBackoff() time.Duration
- func (transaction *TopicMessageSubmitTransaction) GetRegenerateTransactionID() bool
- func (transaction *TopicMessageSubmitTransaction) GetTopicID() TopicID
- func (transaction *TopicMessageSubmitTransaction) GetTransactionID() TransactionID
- func (transaction *TopicMessageSubmitTransaction) GetTransactionMemo() string
- func (transaction *TopicMessageSubmitTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TopicMessageSubmitTransaction) IsFrozen() bool
- func (transaction *TopicMessageSubmitTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TopicMessageSubmitTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetLogLevel(level LogLevel) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetMaxBackoff(max time.Duration) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetMaxChunks(maxChunks uint64) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetMaxRetry(count int) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetMaxTransactionFee(fee Hbar) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetMessage(message []byte) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetMinBackoff(min time.Duration) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetTopicID(topicID TopicID) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetTransactionID(transactionID TransactionID) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetTransactionMemo(memo string) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SetTransactionValidDuration(duration time.Duration) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) Sign(privateKey PrivateKey) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TopicMessageSubmitTransaction
- func (transaction *TopicMessageSubmitTransaction) SignWithOperator(client *Client) (*TopicMessageSubmitTransaction, error)
- type TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) ClearAdminKey() *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) ClearAutoRenewAccountID() *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) ClearSubmitKey() *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) ClearTopicMemo() *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TopicUpdateTransaction) Freeze() (*TopicUpdateTransaction, error)
- func (transaction *TopicUpdateTransaction) FreezeWith(client *Client) (*TopicUpdateTransaction, error)
- func (transaction *TopicUpdateTransaction) GetAdminKey() (Key, error)
- func (transaction *TopicUpdateTransaction) GetAutoRenewAccountID() AccountID
- func (transaction *TopicUpdateTransaction) GetAutoRenewPeriod() time.Duration
- func (transaction *TopicUpdateTransaction) GetExpirationTime() time.Time
- func (transaction *TopicUpdateTransaction) GetMaxBackoff() time.Duration
- func (transaction *TopicUpdateTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TopicUpdateTransaction) GetMinBackoff() time.Duration
- func (transaction *TopicUpdateTransaction) GetRegenerateTransactionID() bool
- func (transaction *TopicUpdateTransaction) GetSubmitKey() (Key, error)
- func (transaction *TopicUpdateTransaction) GetTopicID() TopicID
- func (transaction *TopicUpdateTransaction) GetTopicMemo() string
- func (transaction *TopicUpdateTransaction) GetTransactionID() TransactionID
- func (transaction *TopicUpdateTransaction) GetTransactionMemo() string
- func (transaction *TopicUpdateTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TopicUpdateTransaction) IsFrozen() bool
- func (transaction *TopicUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TopicUpdateTransaction) SetAdminKey(publicKey Key) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetAutoRenewAccountID(autoRenewAccountID AccountID) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetAutoRenewPeriod(period time.Duration) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetExpirationTime(expiration time.Time) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetLogLevel(level LogLevel) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetMaxBackoff(max time.Duration) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetMaxRetry(count int) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetMinBackoff(min time.Duration) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetSubmitKey(publicKey Key) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetTopicID(topicID TopicID) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetTopicMemo(memo string) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetTransactionID(transactionID TransactionID) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetTransactionMemo(memo string) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) Sign(privateKey PrivateKey) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TopicUpdateTransaction
- func (transaction *TopicUpdateTransaction) SignWithOperator(client *Client) (*TopicUpdateTransaction, error)
- type Transaction
- func (this *Transaction) GetDefaultMaxTransactionFee() Hbar
- func (this *Transaction) GetGrpcDeadline() *time.Duration
- func (transaction *Transaction) GetLogLevel() *LogLevel
- func (this *Transaction) GetMaxRetry() int
- func (this *Transaction) GetMaxTransactionFee() Hbar
- func (this *Transaction) GetNodeAccountIDs() (nodeAccountIDs []AccountID)
- func (this *Transaction) GetRegenerateTransactionID() bool
- func (this *Transaction) GetSignatures() (map[AccountID]map[*PublicKey][]byte, error)
- func (this *Transaction) GetSignedTransactionBodyBytes(transactionIndex int) []byte
- func (this *Transaction) GetTransactionHash() ([]byte, error)
- func (this *Transaction) GetTransactionHashPerNode() (map[AccountID][]byte, error)
- func (this *Transaction) GetTransactionID() TransactionID
- func (this *Transaction) GetTransactionMemo() string
- func (this *Transaction) GetTransactionValidDuration() time.Duration
- func (this *Transaction) SetGrpcDeadline(deadline *time.Duration) *Transaction
- func (transaction *Transaction) SetLogLevel(level LogLevel) *Transaction
- func (this *Transaction) SetMaxRetry(count int) *Transaction
- func (this *Transaction) SetMaxTransactionFee(fee Hbar) *Transaction
- func (this *Transaction) SetNodeAccountIDs(nodeAccountIDs []AccountID) *Transaction
- func (this *Transaction) SetRegenerateTransactionID(regenerateTransactionID bool) *Transaction
- func (this *Transaction) SetTransactionID(transactionID TransactionID) *Transaction
- func (this *Transaction) SetTransactionMemo(memo string) *Transaction
- func (this *Transaction) SetTransactionValidDuration(duration time.Duration) *Transaction
- func (this *Transaction) String() string
- func (this *Transaction) ToBytes() ([]byte, error)
- type TransactionFeeSchedule
- type TransactionID
- func NewTransactionIDWithValidStart(accountID AccountID, validStart time.Time) TransactionID
- func TransactionGetTransactionID(transaction interface{}) (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 TransactionReceipt
- type TransactionReceiptQuery
- func (query *TransactionReceiptQuery) Execute(client *Client) (TransactionReceipt, error)
- func (query *TransactionReceiptQuery) GetCost(client *Client) (Hbar, error)
- func (query *TransactionReceiptQuery) GetIncludeChildren() bool
- func (query *TransactionReceiptQuery) GetIncludeDuplicates() bool
- func (query *TransactionReceiptQuery) GetMaxBackoff() time.Duration
- func (query *TransactionReceiptQuery) GetMinBackoff() time.Duration
- func (query *TransactionReceiptQuery) GetTransactionID() TransactionID
- func (query *TransactionReceiptQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetIncludeChildren(includeChildReceipts bool) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetLogLevel(level LogLevel) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetMaxBackoff(max time.Duration) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetMaxRetry(count int) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetMinBackoff(min time.Duration) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionReceiptQuery
- func (query *TransactionReceiptQuery) SetQueryPayment(queryPayment Hbar) *TransactionReceiptQuery
- func (query *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 (query *TransactionRecordQuery) Execute(client *Client) (TransactionRecord, error)
- func (query *TransactionRecordQuery) GetCost(client *Client) (Hbar, error)
- func (query *TransactionRecordQuery) GetIncludeChildren() bool
- func (query *TransactionRecordQuery) GetIncludeDuplicates() bool
- func (query *TransactionRecordQuery) GetMaxBackoff() time.Duration
- func (query *TransactionRecordQuery) GetMinBackoff() time.Duration
- func (query *TransactionRecordQuery) GetTransactionID() TransactionID
- func (query *TransactionRecordQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetIncludeChildren(includeChildRecords bool) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetLogLevel(level LogLevel) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetMaxBackoff(max time.Duration) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetMaxRetry(count int) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetMinBackoff(min time.Duration) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetQueryPayment(queryPayment Hbar) *TransactionRecordQuery
- func (query *TransactionRecordQuery) SetTransactionID(transactionID TransactionID) *TransactionRecordQuery
- type TransactionResponse
- 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) SetValidateStatus(validate bool) *TransactionResponse
- type TransactionSigner
- type Transfer
- type TransferTransaction
- func (transaction *TransferTransaction) AddApprovedHbarTransfer(accountID AccountID, amount Hbar, approve bool) *TransferTransaction
- func (transaction *TransferTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TransferTransaction
- func (transaction *TransferTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TransferTransaction
- func (transaction *TransferTransaction) AddApprovedTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32, ...) *TransferTransaction
- func (transaction *TransferTransaction) AddHbarTransfer(accountID AccountID, amount Hbar) *TransferTransaction
- func (transaction *TransferTransaction) AddNftTransfer(nftID NftID, sender AccountID, receiver AccountID) *TransferTransaction
- func (transaction *TransferTransaction) AddSignature(publicKey PublicKey, signature []byte) *TransferTransaction
- func (transaction *TransferTransaction) AddTokenTransfer(tokenID TokenID, accountID AccountID, value int64) *TransferTransaction
- func (transaction *TransferTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TransferTransaction
- func (transaction *TransferTransaction) Execute(client *Client) (TransactionResponse, error)
- func (transaction *TransferTransaction) Freeze() (*TransferTransaction, error)
- func (transaction *TransferTransaction) FreezeWith(client *Client) (*TransferTransaction, error)
- func (transaction *TransferTransaction) GetHbarTransfers() map[AccountID]Hbar
- func (transaction *TransferTransaction) GetMaxBackoff() time.Duration
- func (transaction *TransferTransaction) GetMaxTransactionFee() Hbar
- func (transaction *TransferTransaction) GetMinBackoff() time.Duration
- func (transaction *TransferTransaction) GetNftTransfers() map[TokenID][]TokenNftTransfer
- func (transaction *TransferTransaction) GetRegenerateTransactionID() bool
- func (transaction *TransferTransaction) GetTokenIDDecimals() map[TokenID]uint32
- func (transaction *TransferTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer
- func (transaction *TransferTransaction) GetTransactionID() TransactionID
- func (transaction *TransferTransaction) GetTransactionMemo() string
- func (transaction *TransferTransaction) GetTransactionValidDuration() time.Duration
- func (transaction *TransferTransaction) IsFrozen() bool
- func (transaction *TransferTransaction) Schedule() (*ScheduleCreateTransaction, error)
- func (transaction *TransferTransaction) SetGrpcDeadline(deadline *time.Duration) *TransferTransaction
- func (transaction *TransferTransaction) SetHbarTransferApproval(spenderAccountID AccountID, approval bool) *TransferTransaction
- func (transaction *TransferTransaction) SetLogLevel(level LogLevel) *TransferTransaction
- func (transaction *TransferTransaction) SetMaxBackoff(max time.Duration) *TransferTransaction
- func (transaction *TransferTransaction) SetMaxRetry(count int) *TransferTransaction
- func (transaction *TransferTransaction) SetMaxTransactionFee(fee Hbar) *TransferTransaction
- func (transaction *TransferTransaction) SetMinBackoff(min time.Duration) *TransferTransaction
- func (transaction *TransferTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TransferTransaction
- func (transaction *TransferTransaction) SetNodeAccountIDs(nodeID []AccountID) *TransferTransaction
- func (transaction *TransferTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TransferTransaction
- func (transaction *TransferTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TransferTransaction
- func (transaction *TransferTransaction) SetTransactionID(transactionID TransactionID) *TransferTransaction
- func (transaction *TransferTransaction) SetTransactionMemo(memo string) *TransferTransaction
- func (transaction *TransferTransaction) SetTransactionValidDuration(duration time.Duration) *TransferTransaction
- func (transaction *TransferTransaction) Sign(privateKey PrivateKey) *TransferTransaction
- func (transaction *TransferTransaction) SignWith(publicKey PublicKey, signer TransactionSigner) *TransferTransaction
- func (transaction *TransferTransaction) SignWithOperator(client *Client) (*TransferTransaction, error)
Constants ¶
const Aes128Ctr = "aes-128-ctr"
const HmacSha256 = "hmac-sha256"
Variables ¶
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, transaction Transaction, signature []byte) (bool, error)
AccountInfoFlowVerifyTransaction Verifies transaction using AccountInfoQuery
func TransactionAddSignature ¶
func TransactionFromBytes ¶
TransactionFromBytes converts Transaction bytes to a related *Transaction.
func TransactionSetTransactionID ¶
func TransactionSetTransactionID(transaction interface{}, transactionID TransactionID) (interface{}, error)
func TransactionSign ¶
func TransactionSign(transaction interface{}, privateKey PrivateKey) (interface{}, error)
func TransactionSignWth ¶
func TransactionSignWth(transaction interface{}, publicKKey PublicKey, signer TransactionSigner) (interface{}, error)
func TransactionString ¶
func TransactionToBytes ¶
Types ¶
type AccountAllowanceAdjustTransaction ¶
type AccountAllowanceAdjustTransaction struct { Transaction // contains filtered or unexported fields }
Deprecated
func NewAccountAllowanceAdjustTransaction ¶
func NewAccountAllowanceAdjustTransaction() *AccountAllowanceAdjustTransaction
func (*AccountAllowanceAdjustTransaction) AddAllTokenNftAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) AddAllTokenNftAllowance(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) AddHbarAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) AddHbarAllowance(id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) AddSignature ¶
func (transaction *AccountAllowanceAdjustTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceAdjustTransaction
func (*AccountAllowanceAdjustTransaction) AddTokenAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) AddTokenAllowance(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) AddTokenNftAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) AddTokenNftAllowance(nftID NftID, accountID AccountID) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) Execute ¶
func (transaction *AccountAllowanceAdjustTransaction) Execute( client *Client, ) (TransactionResponse, error)
Deprecated
func (*AccountAllowanceAdjustTransaction) Freeze ¶
func (transaction *AccountAllowanceAdjustTransaction) Freeze() (*AccountAllowanceAdjustTransaction, error)
Deprecated
func (*AccountAllowanceAdjustTransaction) FreezeWith ¶
func (transaction *AccountAllowanceAdjustTransaction) FreezeWith(client *Client) (*AccountAllowanceAdjustTransaction, error)
Deprecated
func (*AccountAllowanceAdjustTransaction) GetHbarAllowances ¶
func (transaction *AccountAllowanceAdjustTransaction) GetHbarAllowances() []*HbarAllowance
Deprecated
func (*AccountAllowanceAdjustTransaction) GetMaxBackoff ¶
func (transaction *AccountAllowanceAdjustTransaction) GetMaxBackoff() time.Duration
func (*AccountAllowanceAdjustTransaction) GetMaxTransactionFee ¶
func (transaction *AccountAllowanceAdjustTransaction) GetMaxTransactionFee() Hbar
func (*AccountAllowanceAdjustTransaction) GetMinBackoff ¶
func (transaction *AccountAllowanceAdjustTransaction) GetMinBackoff() time.Duration
func (*AccountAllowanceAdjustTransaction) GetRegenerateTransactionID ¶
func (transaction *AccountAllowanceAdjustTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*AccountAllowanceAdjustTransaction) GetTokenAllowances ¶
func (transaction *AccountAllowanceAdjustTransaction) GetTokenAllowances() []*TokenAllowance
Deprecated
func (*AccountAllowanceAdjustTransaction) GetTokenNftAllowances ¶
func (transaction *AccountAllowanceAdjustTransaction) GetTokenNftAllowances() []*TokenNftAllowance
Deprecated
func (*AccountAllowanceAdjustTransaction) GetTransactionID ¶
func (transaction *AccountAllowanceAdjustTransaction) GetTransactionID() TransactionID
func (*AccountAllowanceAdjustTransaction) GetTransactionMemo ¶
func (transaction *AccountAllowanceAdjustTransaction) GetTransactionMemo() string
func (*AccountAllowanceAdjustTransaction) GetTransactionValidDuration ¶
func (transaction *AccountAllowanceAdjustTransaction) GetTransactionValidDuration() time.Duration
func (*AccountAllowanceAdjustTransaction) GrantHbarAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) GrantHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) GrantTokenAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) GrantTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) GrantTokenNftAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) GrantTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) GrantTokenNftAllowanceAllSerials ¶
func (transaction *AccountAllowanceAdjustTransaction) GrantTokenNftAllowanceAllSerials(ownerAccountID AccountID, tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) IsFrozen ¶
func (transaction *AccountAllowanceAdjustTransaction) IsFrozen() bool
Deprecated
func (*AccountAllowanceAdjustTransaction) RevokeHbarAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) RevokeHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) RevokeTokenAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount uint64) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) RevokeTokenNftAllowance ¶
func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) RevokeTokenNftAllowanceAllSerials ¶
func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenNftAllowanceAllSerials(ownerAccountID AccountID, tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) Schedule ¶
func (transaction *AccountAllowanceAdjustTransaction) Schedule() (*ScheduleCreateTransaction, error)
Deprecated
func (*AccountAllowanceAdjustTransaction) SetMaxBackoff ¶
func (transaction *AccountAllowanceAdjustTransaction) SetMaxBackoff(max time.Duration) *AccountAllowanceAdjustTransaction
func (*AccountAllowanceAdjustTransaction) SetMaxRetry ¶
func (transaction *AccountAllowanceAdjustTransaction) SetMaxRetry(count int) *AccountAllowanceAdjustTransaction
func (*AccountAllowanceAdjustTransaction) SetMaxTransactionFee ¶
func (transaction *AccountAllowanceAdjustTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceAdjustTransaction
SetMaxTransactionFee sets the max transaction fee for this AccountAllowanceAdjustTransaction.
func (*AccountAllowanceAdjustTransaction) SetMinBackoff ¶
func (transaction *AccountAllowanceAdjustTransaction) SetMinBackoff(min time.Duration) *AccountAllowanceAdjustTransaction
func (*AccountAllowanceAdjustTransaction) SetNodeAccountIDs ¶
func (transaction *AccountAllowanceAdjustTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceAdjustTransaction
SetNodeAccountIDs sets the _Node AccountID for this AccountAllowanceAdjustTransaction.
func (*AccountAllowanceAdjustTransaction) SetRegenerateTransactionID ¶
func (transaction *AccountAllowanceAdjustTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceAdjustTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*AccountAllowanceAdjustTransaction) SetTransactionID ¶
func (transaction *AccountAllowanceAdjustTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceAdjustTransaction
SetTransactionID sets the TransactionID for this AccountAllowanceAdjustTransaction.
func (*AccountAllowanceAdjustTransaction) SetTransactionMemo ¶
func (transaction *AccountAllowanceAdjustTransaction) SetTransactionMemo(memo string) *AccountAllowanceAdjustTransaction
SetTransactionMemo sets the memo for this AccountAllowanceAdjustTransaction.
func (*AccountAllowanceAdjustTransaction) SetTransactionValidDuration ¶
func (transaction *AccountAllowanceAdjustTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceAdjustTransaction
SetTransactionValidDuration sets the valid duration for this AccountAllowanceAdjustTransaction.
func (*AccountAllowanceAdjustTransaction) Sign ¶
func (transaction *AccountAllowanceAdjustTransaction) Sign( privateKey PrivateKey, ) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) SignWith ¶
func (transaction *AccountAllowanceAdjustTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *AccountAllowanceAdjustTransaction
Deprecated
func (*AccountAllowanceAdjustTransaction) SignWithOperator ¶
func (transaction *AccountAllowanceAdjustTransaction) SignWithOperator( client *Client, ) (*AccountAllowanceAdjustTransaction, error)
Deprecated
type AccountAllowanceApproveTransaction ¶
type AccountAllowanceApproveTransaction struct { Transaction // 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 this 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 this 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 (transaction *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 (transaction *AccountAllowanceApproveTransaction) AddHbarApproval(id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
AddHbarApproval Deprecated - Use ApproveHbarAllowance instead
func (*AccountAllowanceApproveTransaction) AddSignature ¶
func (transaction *AccountAllowanceApproveTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceApproveTransaction
AddSignature adds a signature to the Transaction.
func (*AccountAllowanceApproveTransaction) AddTokenApproval ¶
func (transaction *AccountAllowanceApproveTransaction) AddTokenApproval(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
Deprecated - Use ApproveTokenAllowance instead
func (*AccountAllowanceApproveTransaction) AddTokenNftApproval ¶
func (transaction *AccountAllowanceApproveTransaction) AddTokenNftApproval(nftID NftID, accountID AccountID) *AccountAllowanceApproveTransaction
AddTokenNftApproval Deprecated - Use ApproveTokenNftAllowance instead
func (*AccountAllowanceApproveTransaction) ApproveHbarAllowance ¶
func (transaction *AccountAllowanceApproveTransaction) ApproveHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
ApproveHbarAllowance Approves allowance of hbar transfers for a spender.
func (*AccountAllowanceApproveTransaction) ApproveHbarApproval ¶
func (transaction *AccountAllowanceApproveTransaction) ApproveHbarApproval(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction
ApproveHbarApproval Deprecated - Use ApproveHbarAllowance instead
func (*AccountAllowanceApproveTransaction) ApproveTokenAllowance ¶
func (transaction *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 (transaction *AccountAllowanceApproveTransaction) ApproveTokenApproval(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction
ApproveTokenApproval Deprecated - Use ApproveTokenAllowance instead
func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowance ¶
func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
ApproveTokenNftAllowance Approve allowance of non-fungible token transfers for a spender.
func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials ¶
func (transaction *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 (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceWithDelegatingSpender(nftID NftID, ownerAccountID AccountID, spenderAccountId AccountID, delegatingSpenderAccountID AccountID) *AccountAllowanceApproveTransaction
func (*AccountAllowanceApproveTransaction) ApproveTokenNftApproval ¶
func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftApproval(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction
ApproveTokenNftApproval Deprecated - Use ApproveTokenNftAllowance instead
func (*AccountAllowanceApproveTransaction) Execute ¶
func (transaction *AccountAllowanceApproveTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*AccountAllowanceApproveTransaction) Freeze ¶
func (transaction *AccountAllowanceApproveTransaction) Freeze() (*AccountAllowanceApproveTransaction, error)
func (*AccountAllowanceApproveTransaction) FreezeWith ¶
func (transaction *AccountAllowanceApproveTransaction) FreezeWith(client *Client) (*AccountAllowanceApproveTransaction, error)
func (*AccountAllowanceApproveTransaction) GetHbarAllowances ¶
func (transaction *AccountAllowanceApproveTransaction) GetHbarAllowances() []*HbarAllowance
List of hbar allowance records
func (*AccountAllowanceApproveTransaction) GetMaxBackoff ¶
func (transaction *AccountAllowanceApproveTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the max back off for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) GetMaxTransactionFee ¶
func (transaction *AccountAllowanceApproveTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountAllowanceApproveTransaction) GetMinBackoff ¶
func (transaction *AccountAllowanceApproveTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the min back off for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) GetRegenerateTransactionID ¶
func (transaction *AccountAllowanceApproveTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*AccountAllowanceApproveTransaction) GetTokenAllowances ¶
func (transaction *AccountAllowanceApproveTransaction) GetTokenAllowances() []*TokenAllowance
List of token allowance records
func (*AccountAllowanceApproveTransaction) GetTokenNftAllowances ¶
func (transaction *AccountAllowanceApproveTransaction) GetTokenNftAllowances() []*TokenNftAllowance
List of NFT allowance records
func (*AccountAllowanceApproveTransaction) GetTransactionID ¶
func (transaction *AccountAllowanceApproveTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) GetTransactionMemo ¶
func (transaction *AccountAllowanceApproveTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) GetTransactionValidDuration ¶
func (transaction *AccountAllowanceApproveTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*AccountAllowanceApproveTransaction) IsFrozen ¶
func (transaction *AccountAllowanceApproveTransaction) IsFrozen() bool
func (*AccountAllowanceApproveTransaction) Schedule ¶
func (transaction *AccountAllowanceApproveTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*AccountAllowanceApproveTransaction) SetMaxBackoff ¶
func (transaction *AccountAllowanceApproveTransaction) SetMaxBackoff(max time.Duration) *AccountAllowanceApproveTransaction
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 (*AccountAllowanceApproveTransaction) SetMaxRetry ¶
func (transaction *AccountAllowanceApproveTransaction) SetMaxRetry(count int) *AccountAllowanceApproveTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountAllowanceApproveTransaction) SetMaxTransactionFee ¶
func (transaction *AccountAllowanceApproveTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceApproveTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountAllowanceApproveTransaction) SetMinBackoff ¶
func (transaction *AccountAllowanceApproveTransaction) SetMinBackoff(min time.Duration) *AccountAllowanceApproveTransaction
SetMinBackoff sets the min back off for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) SetNodeAccountIDs ¶
func (transaction *AccountAllowanceApproveTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceApproveTransaction
SetNodeAccountIDs sets the _Node AccountID for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) SetRegenerateTransactionID ¶
func (transaction *AccountAllowanceApproveTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceApproveTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*AccountAllowanceApproveTransaction) SetTransactionID ¶
func (transaction *AccountAllowanceApproveTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceApproveTransaction
SetTransactionID sets the TransactionID for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) SetTransactionMemo ¶
func (transaction *AccountAllowanceApproveTransaction) SetTransactionMemo(memo string) *AccountAllowanceApproveTransaction
SetTransactionMemo sets the memo for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) SetTransactionValidDuration ¶
func (transaction *AccountAllowanceApproveTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceApproveTransaction
SetTransactionValidDuration sets the valid duration for this AccountAllowanceApproveTransaction.
func (*AccountAllowanceApproveTransaction) Sign ¶
func (transaction *AccountAllowanceApproveTransaction) Sign( privateKey PrivateKey, ) *AccountAllowanceApproveTransaction
Sign uses the provided privateKey to sign the transaction.
func (*AccountAllowanceApproveTransaction) SignWith ¶
func (transaction *AccountAllowanceApproveTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *AccountAllowanceApproveTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*AccountAllowanceApproveTransaction) SignWithOperator ¶
func (transaction *AccountAllowanceApproveTransaction) SignWithOperator( client *Client, ) (*AccountAllowanceApproveTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type AccountAllowanceDeleteTransaction ¶
type AccountAllowanceDeleteTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *AccountAllowanceDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceDeleteTransaction
AddSignature adds a signature to the transaction.
func (*AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances ¶
func (transaction *AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances(ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
Deprecated
func (*AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances ¶
func (transaction *AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances(tokenID TokenID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
Deprecated
func (*AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances ¶
func (transaction *AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances(nftID NftID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction
DeleteAllTokenNftAllowances The non-fungible token allowance/allowances to remove.
func (*AccountAllowanceDeleteTransaction) Execute ¶
func (transaction *AccountAllowanceDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*AccountAllowanceDeleteTransaction) Freeze ¶
func (transaction *AccountAllowanceDeleteTransaction) Freeze() (*AccountAllowanceDeleteTransaction, error)
func (*AccountAllowanceDeleteTransaction) FreezeWith ¶
func (transaction *AccountAllowanceDeleteTransaction) FreezeWith(client *Client) (*AccountAllowanceDeleteTransaction, error)
func (*AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances ¶
func (transaction *AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances() []*HbarAllowance
Deprecated
func (*AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances ¶
func (transaction *AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances() []*TokenAllowance
Deprecated
func (*AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances ¶
func (transaction *AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances() []*TokenNftAllowance
GetAllTokenNftDeleteAllowances Get the non-fungible token allowance/allowances that will be removed.
func (*AccountAllowanceDeleteTransaction) GetMaxBackoff ¶
func (transaction *AccountAllowanceDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the max back off for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *AccountAllowanceDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountAllowanceDeleteTransaction) GetMinBackoff ¶
func (transaction *AccountAllowanceDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountAllowanceDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *AccountAllowanceDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*AccountAllowanceDeleteTransaction) GetTransactionID ¶
func (transaction *AccountAllowanceDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID returns the TransactionID for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) GetTransactionMemo ¶
func (transaction *AccountAllowanceDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *AccountAllowanceDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*AccountAllowanceDeleteTransaction) IsFrozen ¶
func (transaction *AccountAllowanceDeleteTransaction) IsFrozen() bool
func (*AccountAllowanceDeleteTransaction) Schedule ¶
func (transaction *AccountAllowanceDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*AccountAllowanceDeleteTransaction) SetMaxBackoff ¶
func (transaction *AccountAllowanceDeleteTransaction) SetMaxBackoff(max time.Duration) *AccountAllowanceDeleteTransaction
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 (*AccountAllowanceDeleteTransaction) SetMaxRetry ¶
func (transaction *AccountAllowanceDeleteTransaction) SetMaxRetry(count int) *AccountAllowanceDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountAllowanceDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *AccountAllowanceDeleteTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceDeleteTransaction
SetMaxTransactionFee sets the max transaction fee for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) SetMinBackoff ¶
func (transaction *AccountAllowanceDeleteTransaction) SetMinBackoff(min time.Duration) *AccountAllowanceDeleteTransaction
SetMinBackoff sets the min back off for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *AccountAllowanceDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceDeleteTransaction
SetNodeAccountIDs sets the _Node AccountID for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *AccountAllowanceDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*AccountAllowanceDeleteTransaction) SetTransactionID ¶
func (transaction *AccountAllowanceDeleteTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceDeleteTransaction
SetTransactionID sets the TransactionID for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) SetTransactionMemo ¶
func (transaction *AccountAllowanceDeleteTransaction) SetTransactionMemo(memo string) *AccountAllowanceDeleteTransaction
SetTransactionMemo sets the memo for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *AccountAllowanceDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceDeleteTransaction
SetTransactionValidDuration sets the valid duration for this AccountAllowanceDeleteTransaction.
func (*AccountAllowanceDeleteTransaction) Sign ¶
func (transaction *AccountAllowanceDeleteTransaction) Sign( privateKey PrivateKey, ) *AccountAllowanceDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*AccountAllowanceDeleteTransaction) SignWith ¶
func (transaction *AccountAllowanceDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *AccountAllowanceDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*AccountAllowanceDeleteTransaction) SignWithOperator ¶
func (transaction *AccountAllowanceDeleteTransaction) SignWithOperator( client *Client, ) (*AccountAllowanceDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type AccountBalance ¶
type AccountBalance struct { Hbars Hbar // Deprecated: Use `AccountBalance.Tokens` instead Token map[TokenID]uint64 // Deprecated Tokens TokenBalanceMap // Deprecated 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 (query *AccountBalanceQuery) Execute(client *Client) (AccountBalance, error)
Execute executes the Query with the provided client
func (*AccountBalanceQuery) GetAccountID ¶
func (query *AccountBalanceQuery) GetAccountID() AccountID
GetAccountID returns the AccountID for which you wish to query the balance.
func (*AccountBalanceQuery) GetContractID ¶
func (query *AccountBalanceQuery) GetContractID() ContractID
GetContractID returns the ContractID for which you wish to query the balance.
func (*AccountBalanceQuery) GetCost ¶
func (query *AccountBalanceQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*AccountBalanceQuery) GetMaxBackoff ¶
func (query *AccountBalanceQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountBalanceQuery) GetMinBackoff ¶
func (query *AccountBalanceQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountBalanceQuery) SetAccountID ¶
func (query *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 (query *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 (query *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 (query *AccountBalanceQuery) SetLogLevel(level LogLevel) *AccountBalanceQuery
func (*AccountBalanceQuery) SetMaxBackoff ¶
func (query *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 (query *AccountBalanceQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountBalanceQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*AccountBalanceQuery) SetMaxRetry ¶
func (query *AccountBalanceQuery) SetMaxRetry(count int) *AccountBalanceQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountBalanceQuery) SetMinBackoff ¶
func (query *AccountBalanceQuery) SetMinBackoff(min time.Duration) *AccountBalanceQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountBalanceQuery) SetNodeAccountIDs ¶
func (query *AccountBalanceQuery) SetNodeAccountIDs(accountID []AccountID) *AccountBalanceQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountBalanceQuery.
func (*AccountBalanceQuery) SetPaymentTransactionID ¶
func (query *AccountBalanceQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountBalanceQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountBalanceQuery) SetQueryPayment ¶
func (query *AccountBalanceQuery) SetQueryPayment(paymentAmount Hbar) *AccountBalanceQuery
SetQueryPayment sets the payment amount for this Query.
type AccountCreateTransaction ¶
type AccountCreateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *AccountCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountCreateTransaction
AddSignature adds a signature to the Transaction.
func (*AccountCreateTransaction) Execute ¶
func (transaction *AccountCreateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*AccountCreateTransaction) Freeze ¶
func (transaction *AccountCreateTransaction) Freeze() (*AccountCreateTransaction, error)
func (*AccountCreateTransaction) FreezeWith ¶
func (transaction *AccountCreateTransaction) FreezeWith(client *Client) (*AccountCreateTransaction, error)
func (*AccountCreateTransaction) GetAccountMemo ¶
func (transaction *AccountCreateTransaction) GetAccountMemo() string
GetAccountMemo Gets the memo associated with the account (UTF-8 encoding max 100 bytes)
func (*AccountCreateTransaction) GetAlias ¶
func (transaction *AccountCreateTransaction) GetAlias() []byte
func (*AccountCreateTransaction) GetAutoRenewPeriod ¶
func (transaction *AccountCreateTransaction) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the time duration for when account is charged to extend its expiration date.
func (*AccountCreateTransaction) GetDeclineStakingReward ¶
func (transaction *AccountCreateTransaction) GetDeclineStakingReward() bool
GetDeclineStakingReward returns true if the account declines receiving a staking reward.
func (*AccountCreateTransaction) GetInitialBalance ¶
func (transaction *AccountCreateTransaction) GetInitialBalance() Hbar
GetInitialBalance returns the initial number of Hbar to put into the account
func (*AccountCreateTransaction) GetKey ¶
func (transaction *AccountCreateTransaction) GetKey() (Key, error)
GetKey returns the key that must sign each transfer out of the account.
func (*AccountCreateTransaction) GetMaxAutomaticTokenAssociations ¶
func (transaction *AccountCreateTransaction) GetMaxAutomaticTokenAssociations() uint32
GetMaxAutomaticTokenAssociations returns the maximum number of tokens that an Account can be implicitly associated with.
func (*AccountCreateTransaction) GetMaxBackoff ¶
func (transaction *AccountCreateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountCreateTransaction) GetMaxTransactionFee ¶
func (transaction *AccountCreateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountCreateTransaction) GetMinBackoff ¶
func (transaction *AccountCreateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountCreateTransaction) GetProxyAccountID ¶
func (transaction *AccountCreateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*AccountCreateTransaction) GetReceiverSignatureRequired ¶
func (transaction *AccountCreateTransaction) GetReceiverSignatureRequired() bool
GetReceiverSignatureRequired returns the receiverSigRequired flag.
func (*AccountCreateTransaction) GetRegenerateTransactionID ¶
func (transaction *AccountCreateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*AccountCreateTransaction) GetStakedAccountID ¶
func (transaction *AccountCreateTransaction) GetStakedAccountID() AccountID
GetStakedAccountID returns the account to which this account will stake.
func (*AccountCreateTransaction) GetStakedNodeID ¶
func (transaction *AccountCreateTransaction) GetStakedNodeID() int64
GetStakedNodeID returns the node to which this account will stake
func (*AccountCreateTransaction) GetTransactionID ¶
func (transaction *AccountCreateTransaction) GetTransactionID() TransactionID
GetTransactionID returns the TransactionID for this AccountCreateTransaction.
func (*AccountCreateTransaction) GetTransactionMemo ¶
func (transaction *AccountCreateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this AccountCreateTransaction.
func (*AccountCreateTransaction) GetTransactionValidDuration ¶
func (transaction *AccountCreateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*AccountCreateTransaction) IsFrozen ¶
func (transaction *AccountCreateTransaction) IsFrozen() bool
func (*AccountCreateTransaction) Schedule ¶
func (transaction *AccountCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
Schedule a Create Account transaction
func (*AccountCreateTransaction) SetAccountMemo ¶
func (transaction *AccountCreateTransaction) SetAccountMemo(memo string) *AccountCreateTransaction
SetAccountMemo Sets the memo associated with the account (UTF-8 encoding max 100 bytes)
func (*AccountCreateTransaction) SetAlias ¶
func (transaction *AccountCreateTransaction) SetAlias(evmAddress string) *AccountCreateTransaction
func (*AccountCreateTransaction) SetAutoRenewPeriod ¶
func (transaction *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.
func (*AccountCreateTransaction) SetDeclineStakingReward ¶
func (transaction *AccountCreateTransaction) SetDeclineStakingReward(decline bool) *AccountCreateTransaction
SetDeclineStakingReward If set to true, the account declines receiving a staking reward. The default value is false.
func (*AccountCreateTransaction) SetGrpcDeadline ¶
func (transaction *AccountCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountCreateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountCreateTransaction) SetInitialBalance ¶
func (transaction *AccountCreateTransaction) SetInitialBalance(initialBalance Hbar) *AccountCreateTransaction
SetInitialBalance sets the initial number of Hbar to put into the account
func (*AccountCreateTransaction) SetKey ¶
func (transaction *AccountCreateTransaction) SetKey(key Key) *AccountCreateTransaction
SetKey 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) SetLogLevel ¶
func (transaction *AccountCreateTransaction) SetLogLevel(level LogLevel) *AccountCreateTransaction
func (*AccountCreateTransaction) SetMaxAutomaticTokenAssociations ¶
func (transaction *AccountCreateTransaction) SetMaxAutomaticTokenAssociations(max uint32) *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 1000.
func (*AccountCreateTransaction) SetMaxBackoff ¶
func (transaction *AccountCreateTransaction) SetMaxBackoff(max time.Duration) *AccountCreateTransaction
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 (*AccountCreateTransaction) SetMaxRetry ¶
func (transaction *AccountCreateTransaction) SetMaxRetry(count int) *AccountCreateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountCreateTransaction) SetMaxTransactionFee ¶
func (transaction *AccountCreateTransaction) SetMaxTransactionFee(fee Hbar) *AccountCreateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountCreateTransaction) SetMinBackoff ¶
func (transaction *AccountCreateTransaction) SetMinBackoff(min time.Duration) *AccountCreateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountCreateTransaction) SetNodeAccountIDs ¶
func (transaction *AccountCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountCreateTransaction
SetNodeAccountIDs sets the _Node AccountID for this AccountCreateTransaction.
func (*AccountCreateTransaction) SetProxyAccountID ¶
func (transaction *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 (transaction *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) SetRegenerateTransactionID ¶
func (transaction *AccountCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountCreateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*AccountCreateTransaction) SetStakedAccountID ¶
func (transaction *AccountCreateTransaction) SetStakedAccountID(id AccountID) *AccountCreateTransaction
SetStakedAccountID Set the account to which this account will stake.
func (*AccountCreateTransaction) SetStakedNodeID ¶
func (transaction *AccountCreateTransaction) SetStakedNodeID(id int64) *AccountCreateTransaction
SetStakedNodeID Set the node to which this account will stake
func (*AccountCreateTransaction) SetTransactionID ¶
func (transaction *AccountCreateTransaction) SetTransactionID(transactionID TransactionID) *AccountCreateTransaction
SetTransactionID sets the TransactionID for this AccountCreateTransaction.
func (*AccountCreateTransaction) SetTransactionMemo ¶
func (transaction *AccountCreateTransaction) SetTransactionMemo(memo string) *AccountCreateTransaction
SetTransactionMemo sets the memo for this AccountCreateTransaction.
func (*AccountCreateTransaction) SetTransactionValidDuration ¶
func (transaction *AccountCreateTransaction) SetTransactionValidDuration(duration time.Duration) *AccountCreateTransaction
SetTransactionValidDuration sets the valid duration for this AccountCreateTransaction.
func (*AccountCreateTransaction) Sign ¶
func (transaction *AccountCreateTransaction) Sign( privateKey PrivateKey, ) *AccountCreateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*AccountCreateTransaction) SignWith ¶
func (transaction *AccountCreateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *AccountCreateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*AccountCreateTransaction) SignWithOperator ¶
func (transaction *AccountCreateTransaction) SignWithOperator( client *Client, ) (*AccountCreateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type AccountDeleteTransaction ¶
type AccountDeleteTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *AccountDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountDeleteTransaction
AddSignature adds a signature to the Transaction.
func (*AccountDeleteTransaction) Execute ¶
func (transaction *AccountDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*AccountDeleteTransaction) Freeze ¶
func (transaction *AccountDeleteTransaction) Freeze() (*AccountDeleteTransaction, error)
func (*AccountDeleteTransaction) FreezeWith ¶
func (transaction *AccountDeleteTransaction) FreezeWith(client *Client) (*AccountDeleteTransaction, error)
func (*AccountDeleteTransaction) GetAccountID ¶
func (transaction *AccountDeleteTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID which will be deleted.
func (*AccountDeleteTransaction) GetMaxBackoff ¶
func (transaction *AccountDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *AccountDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountDeleteTransaction) GetMinBackoff ¶
func (transaction *AccountDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *AccountDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*AccountDeleteTransaction) GetTransactionID ¶
func (transaction *AccountDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) GetTransactionMemo ¶
func (transaction *AccountDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *AccountDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*AccountDeleteTransaction) GetTransferAccountID ¶
func (transaction *AccountDeleteTransaction) GetTransferAccountID() AccountID
GetTransferAccountID returns the AccountID which will receive all remaining hbars.
func (*AccountDeleteTransaction) IsFrozen ¶
func (transaction *AccountDeleteTransaction) IsFrozen() bool
func (*AccountDeleteTransaction) Schedule ¶
func (transaction *AccountDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*AccountDeleteTransaction) SetAccountID ¶
func (transaction *AccountDeleteTransaction) SetAccountID(accountID AccountID) *AccountDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) SetGrpcDeadline ¶
func (transaction *AccountDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountDeleteTransaction) SetLogLevel ¶
func (transaction *AccountDeleteTransaction) SetLogLevel(level LogLevel) *AccountDeleteTransaction
func (*AccountDeleteTransaction) SetMaxBackoff ¶
func (transaction *AccountDeleteTransaction) SetMaxBackoff(max time.Duration) *AccountDeleteTransaction
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 (*AccountDeleteTransaction) SetMaxRetry ¶
func (transaction *AccountDeleteTransaction) SetMaxRetry(count int) *AccountDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *AccountDeleteTransaction) SetMaxTransactionFee(fee Hbar) *AccountDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountDeleteTransaction) SetMinBackoff ¶
func (transaction *AccountDeleteTransaction) SetMinBackoff(min time.Duration) *AccountDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *AccountDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountDeleteTransaction
SetNodeAccountIDs sets the _Node AccountID for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *AccountDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*AccountDeleteTransaction) SetTransactionID ¶
func (transaction *AccountDeleteTransaction) SetTransactionID(transactionID TransactionID) *AccountDeleteTransaction
SetTransactionID sets the TransactionID for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) SetTransactionMemo ¶
func (transaction *AccountDeleteTransaction) SetTransactionMemo(memo string) *AccountDeleteTransaction
SetTransactionMemo sets the memo for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *AccountDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *AccountDeleteTransaction
SetTransactionValidDuration sets the valid duration for this AccountDeleteTransaction.
func (*AccountDeleteTransaction) SetTransferAccountID ¶
func (transaction *AccountDeleteTransaction) SetTransferAccountID(transferAccountID AccountID) *AccountDeleteTransaction
SetTransferAccountID sets the AccountID which will receive all remaining hbars.
func (*AccountDeleteTransaction) Sign ¶
func (transaction *AccountDeleteTransaction) Sign( privateKey PrivateKey, ) *AccountDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*AccountDeleteTransaction) SignWith ¶
func (transaction *AccountDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *AccountDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*AccountDeleteTransaction) SignWithOperator ¶
func (transaction *AccountDeleteTransaction) SignWithOperator( client *Client, ) (*AccountDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 Hedera account
func AccountIDFromBytes ¶
AccountIDFromBytes converts wire-format encoding to Account ID
func AccountIDFromEvmAddress ¶
AccountIDFromEvmAddress constructs an AccountID from a string formatted as 0.0.<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
func AccountIDFromString ¶
AccountIDFromString constructs an AccountID from a string formatted as `Shard.Realm.Account` (for example "0.0.3")
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) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of the AccountID as a _Solidity address.
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 // Deprecated TokenRelationships []*TokenRelationship AccountMemo string OwnedNfts int64 MaxAutomaticTokenAssociations uint32 AliasKey *PublicKey LedgerID LedgerID // Deprecated HbarAllowances []HbarAllowance // Deprecated NftAllowances []TokenNftAllowance // Deprecated TokenAllowances []TokenAllowance EthereumNonce int64 StakingInfoHedera *StakingInfoHedera }
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 (query *AccountInfoQuery) Execute(client *Client) (AccountInfo, error)
Execute executes the Query with the provided client
func (*AccountInfoQuery) GetAccountID ¶
func (query *AccountInfoQuery) GetAccountID() AccountID
GetAccountID returns the AccountID for this AccountInfoQuery.
func (*AccountInfoQuery) GetCost ¶
func (query *AccountInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*AccountInfoQuery) GetMaxBackoff ¶
func (query *AccountInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountInfoQuery) GetMinBackoff ¶
func (query *AccountInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountInfoQuery) SetAccountID ¶
func (query *AccountInfoQuery) SetAccountID(accountID AccountID) *AccountInfoQuery
SetAccountID sets the AccountID for this AccountInfoQuery.
func (*AccountInfoQuery) SetGrpcDeadline ¶
func (query *AccountInfoQuery) SetGrpcDeadline(deadline *time.Duration) *AccountInfoQuery
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 (query *AccountInfoQuery) SetLogLevel(level LogLevel) *AccountInfoQuery
func (*AccountInfoQuery) SetMaxBackoff ¶
func (query *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 (query *AccountInfoQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *AccountInfoQuery
SetMaxQueryPayment sets the maximum payment allowable for this query.
func (*AccountInfoQuery) SetMaxRetry ¶
func (query *AccountInfoQuery) SetMaxRetry(count int) *AccountInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountInfoQuery) SetMinBackoff ¶
func (query *AccountInfoQuery) SetMinBackoff(min time.Duration) *AccountInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountInfoQuery) SetNodeAccountIDs ¶
func (query *AccountInfoQuery) SetNodeAccountIDs(accountID []AccountID) *AccountInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountInfoQuery.
func (*AccountInfoQuery) SetPaymentTransactionID ¶
func (query *AccountInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountInfoQuery) SetQueryPayment ¶
func (query *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 (query *AccountRecordsQuery) Execute(client *Client) ([]TransactionRecord, error)
Execute executes the Query with the provided client
func (*AccountRecordsQuery) GetAccountID ¶
func (query *AccountRecordsQuery) GetAccountID() AccountID
GetAccountID returns the account ID for which the records will be retrieved.
func (*AccountRecordsQuery) GetCost ¶
func (query *AccountRecordsQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*AccountRecordsQuery) GetMaxBackoff ¶
func (query *AccountRecordsQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountRecordsQuery) GetMinBackoff ¶
func (query *AccountRecordsQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountRecordsQuery) SetAccountID ¶
func (query *AccountRecordsQuery) SetAccountID(accountID AccountID) *AccountRecordsQuery
SetAccountID sets the account ID for which the records should be retrieved.
func (*AccountRecordsQuery) SetGrpcDeadline ¶
func (query *AccountRecordsQuery) SetGrpcDeadline(deadline *time.Duration) *AccountRecordsQuery
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 (query *AccountRecordsQuery) SetLogLevel(level LogLevel) *AccountRecordsQuery
func (*AccountRecordsQuery) SetMaxBackoff ¶
func (query *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 (query *AccountRecordsQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountRecordsQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*AccountRecordsQuery) SetMaxRetry ¶
func (query *AccountRecordsQuery) SetMaxRetry(count int) *AccountRecordsQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountRecordsQuery) SetMinBackoff ¶
func (query *AccountRecordsQuery) SetMinBackoff(min time.Duration) *AccountRecordsQuery
func (*AccountRecordsQuery) SetNodeAccountIDs ¶
func (query *AccountRecordsQuery) SetNodeAccountIDs(accountID []AccountID) *AccountRecordsQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountRecordsQuery.
func (*AccountRecordsQuery) SetPaymentTransactionID ¶
func (query *AccountRecordsQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountRecordsQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountRecordsQuery) SetQueryPayment ¶
func (query *AccountRecordsQuery) SetQueryPayment(paymentAmount Hbar) *AccountRecordsQuery
SetQueryPayment sets the payment amount for this Query.
type AccountStakersQuery ¶
type AccountStakersQuery struct { Query // contains filtered or unexported fields }
AccountStakersQuery gets all of the accounts that are proxy staking to this account. For each of them, the amount currently staked will be given. This is not yet implemented, but will be in a future version of the API.
func NewAccountStakersQuery ¶
func NewAccountStakersQuery() *AccountStakersQuery
NewAccountStakersQuery creates an AccountStakersQuery query which can be used to construct and execute an AccountStakersQuery.
It is recommended that you use this for creating new instances of an AccountStakersQuery instead of manually creating an instance of the struct.
func (*AccountStakersQuery) Execute ¶
func (query *AccountStakersQuery) Execute(client *Client) ([]Transfer, error)
func (*AccountStakersQuery) GetAccountID ¶
func (query *AccountStakersQuery) GetAccountID() AccountID
GetAccountID returns the AccountID for this AccountStakersQuery.
func (*AccountStakersQuery) GetCost ¶
func (query *AccountStakersQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*AccountStakersQuery) GetMaxBackoff ¶
func (query *AccountStakersQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountStakersQuery) GetMinBackoff ¶
func (query *AccountStakersQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountStakersQuery) SetAccountID ¶
func (query *AccountStakersQuery) SetAccountID(accountID AccountID) *AccountStakersQuery
SetAccountID sets the Account ID for which the stakers should be retrieved
func (*AccountStakersQuery) SetGrpcDeadline ¶
func (query *AccountStakersQuery) SetGrpcDeadline(deadline *time.Duration) *AccountStakersQuery
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountStakersQuery) SetLogLevel ¶
func (query *AccountStakersQuery) SetLogLevel(level LogLevel) *AccountStakersQuery
func (*AccountStakersQuery) SetMaxBackoff ¶
func (query *AccountStakersQuery) SetMaxBackoff(max time.Duration) *AccountStakersQuery
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 (*AccountStakersQuery) SetMaxQueryPayment ¶
func (query *AccountStakersQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountStakersQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*AccountStakersQuery) SetMaxRetry ¶
func (query *AccountStakersQuery) SetMaxRetry(count int) *AccountStakersQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountStakersQuery) SetMinBackoff ¶
func (query *AccountStakersQuery) SetMinBackoff(min time.Duration) *AccountStakersQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountStakersQuery) SetNodeAccountIDs ¶
func (query *AccountStakersQuery) SetNodeAccountIDs(accountID []AccountID) *AccountStakersQuery
SetNodeAccountIDs sets the _Node AccountID for this AccountStakersQuery.
func (*AccountStakersQuery) SetPaymentTransactionID ¶
func (query *AccountStakersQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountStakersQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*AccountStakersQuery) SetQueryPayment ¶
func (query *AccountStakersQuery) SetQueryPayment(paymentAmount Hbar) *AccountStakersQuery
SetQueryPayment sets the payment amount for this Query.
type AccountUpdateTransaction ¶
type AccountUpdateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *AccountUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountUpdateTransaction
AddSignature adds a signature to the Transaction.
func (*AccountUpdateTransaction) ClearStakedAccountID ¶
func (transaction *AccountUpdateTransaction) ClearStakedAccountID() *AccountUpdateTransaction
func (*AccountUpdateTransaction) ClearStakedNodeID ¶
func (transaction *AccountUpdateTransaction) ClearStakedNodeID() *AccountUpdateTransaction
func (*AccountUpdateTransaction) Execute ¶
func (transaction *AccountUpdateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*AccountUpdateTransaction) Freeze ¶
func (transaction *AccountUpdateTransaction) Freeze() (*AccountUpdateTransaction, error)
func (*AccountUpdateTransaction) FreezeWith ¶
func (transaction *AccountUpdateTransaction) FreezeWith(client *Client) (*AccountUpdateTransaction, error)
func (*AccountUpdateTransaction) GetAccountID ¶
func (transaction *AccountUpdateTransaction) GetAccountID() AccountID
func (*AccountUpdateTransaction) GetAccountMemo ¶
func (transaction *AccountUpdateTransaction) GetAccountMemo() string
func (*AccountUpdateTransaction) GetAliasKey ¶
func (transaction *AccountUpdateTransaction) GetAliasKey() PublicKey
Deprecated
func (*AccountUpdateTransaction) GetAutoRenewPeriod ¶
func (transaction *AccountUpdateTransaction) GetAutoRenewPeriod() time.Duration
func (*AccountUpdateTransaction) GetDeclineStakingReward ¶
func (transaction *AccountUpdateTransaction) GetDeclineStakingReward() bool
func (*AccountUpdateTransaction) GetExpirationTime ¶
func (transaction *AccountUpdateTransaction) GetExpirationTime() time.Time
func (*AccountUpdateTransaction) GetKey ¶
func (transaction *AccountUpdateTransaction) GetKey() (Key, error)
func (*AccountUpdateTransaction) GetMaxAutomaticTokenAssociations ¶
func (transaction *AccountUpdateTransaction) GetMaxAutomaticTokenAssociations() uint32
func (*AccountUpdateTransaction) GetMaxBackoff ¶
func (transaction *AccountUpdateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*AccountUpdateTransaction) GetMaxTransactionFee ¶
func (transaction *AccountUpdateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountUpdateTransaction) GetMinBackoff ¶
func (transaction *AccountUpdateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*AccountUpdateTransaction) GetProxyAccountID ¶
func (transaction *AccountUpdateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*AccountUpdateTransaction) GetReceiverSignatureRequired ¶
func (transaction *AccountUpdateTransaction) GetReceiverSignatureRequired() bool
func (*AccountUpdateTransaction) GetRegenerateTransactionID ¶
func (transaction *AccountUpdateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*AccountUpdateTransaction) GetStakedAccountID ¶
func (transaction *AccountUpdateTransaction) GetStakedAccountID() AccountID
func (*AccountUpdateTransaction) GetStakedNodeID ¶
func (transaction *AccountUpdateTransaction) GetStakedNodeID() int64
func (*AccountUpdateTransaction) GetTransactionID ¶
func (transaction *AccountUpdateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this AccountUpdateTransaction.
func (*AccountUpdateTransaction) GetTransactionMemo ¶
func (transaction *AccountUpdateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this AccountUpdateTransaction.
func (*AccountUpdateTransaction) GetTransactionValidDuration ¶
func (transaction *AccountUpdateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*AccountUpdateTransaction) IsFrozen ¶
func (transaction *AccountUpdateTransaction) IsFrozen() bool
func (*AccountUpdateTransaction) Schedule ¶
func (transaction *AccountUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
Schedule Prepares a ScheduleCreateTransaction containing this transaction.
func (*AccountUpdateTransaction) SetAccountID ¶
func (transaction *AccountUpdateTransaction) SetAccountID(accountID AccountID) *AccountUpdateTransaction
SetAccountID Sets the account ID which is being updated in this transaction.
func (*AccountUpdateTransaction) SetAccountMemo ¶
func (transaction *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 (transaction *AccountUpdateTransaction) SetAliasKey(alias PublicKey) *AccountUpdateTransaction
Deprecated
func (*AccountUpdateTransaction) SetAutoRenewPeriod ¶
func (transaction *AccountUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountUpdateTransaction
SetAutoRenewPeriod Sets the duration in which it will automatically extend the expiration period.
func (*AccountUpdateTransaction) SetDeclineStakingReward ¶
func (transaction *AccountUpdateTransaction) SetDeclineStakingReward(decline bool) *AccountUpdateTransaction
func (*AccountUpdateTransaction) SetExpirationTime ¶
func (transaction *AccountUpdateTransaction) SetExpirationTime(expirationTime time.Time) *AccountUpdateTransaction
SetExpirationTime sets the new expiration time to extend to (ignored if equal to or before the current one)
func (*AccountUpdateTransaction) SetGrpcDeadline ¶
func (transaction *AccountUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountUpdateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*AccountUpdateTransaction) SetKey ¶
func (transaction *AccountUpdateTransaction) SetKey(key Key) *AccountUpdateTransaction
SetKey Sets the new key for the Account
func (*AccountUpdateTransaction) SetLogLevel ¶
func (transaction *AccountUpdateTransaction) SetLogLevel(level LogLevel) *AccountUpdateTransaction
func (*AccountUpdateTransaction) SetMaxAutomaticTokenAssociations ¶
func (transaction *AccountUpdateTransaction) SetMaxAutomaticTokenAssociations(max uint32) *AccountUpdateTransaction
SetMaxAutomaticTokenAssociations Sets the maximum number of tokens that an Account can be implicitly associated with. Up to a 1000 including implicit and explicit associations.
func (*AccountUpdateTransaction) SetMaxBackoff ¶
func (transaction *AccountUpdateTransaction) SetMaxBackoff(max time.Duration) *AccountUpdateTransaction
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 (*AccountUpdateTransaction) SetMaxRetry ¶
func (transaction *AccountUpdateTransaction) SetMaxRetry(count int) *AccountUpdateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*AccountUpdateTransaction) SetMaxTransactionFee ¶
func (transaction *AccountUpdateTransaction) SetMaxTransactionFee(fee Hbar) *AccountUpdateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*AccountUpdateTransaction) SetMinBackoff ¶
func (transaction *AccountUpdateTransaction) SetMinBackoff(min time.Duration) *AccountUpdateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*AccountUpdateTransaction) SetNodeAccountIDs ¶
func (transaction *AccountUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountUpdateTransaction
SetNodeAccountIDs sets the _Node AccountID for this AccountUpdateTransaction.
func (*AccountUpdateTransaction) SetProxyAccountID ¶
func (transaction *AccountUpdateTransaction) SetProxyAccountID(proxyAccountID AccountID) *AccountUpdateTransaction
Deprecated SetProxyAccountID Sets the ID of the account to which this account is proxy staked.
func (*AccountUpdateTransaction) SetReceiverSignatureRequired ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *AccountUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountUpdateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*AccountUpdateTransaction) SetStakedAccountID ¶
func (transaction *AccountUpdateTransaction) SetStakedAccountID(id AccountID) *AccountUpdateTransaction
func (*AccountUpdateTransaction) SetStakedNodeID ¶
func (transaction *AccountUpdateTransaction) SetStakedNodeID(id int64) *AccountUpdateTransaction
func (*AccountUpdateTransaction) SetTransactionID ¶
func (transaction *AccountUpdateTransaction) SetTransactionID(transactionID TransactionID) *AccountUpdateTransaction
SetTransactionID sets the TransactionID for this AccountUpdateTransaction.
func (*AccountUpdateTransaction) SetTransactionMemo ¶
func (transaction *AccountUpdateTransaction) SetTransactionMemo(memo string) *AccountUpdateTransaction
SetTransactionMemo sets the memo for this AccountUpdateTransaction.
func (*AccountUpdateTransaction) SetTransactionValidDuration ¶
func (transaction *AccountUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *AccountUpdateTransaction
SetTransactionValidDuration sets the valid duration for this AccountUpdateTransaction.
func (*AccountUpdateTransaction) Sign ¶
func (transaction *AccountUpdateTransaction) Sign( privateKey PrivateKey, ) *AccountUpdateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*AccountUpdateTransaction) SignWith ¶
func (transaction *AccountUpdateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *AccountUpdateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*AccountUpdateTransaction) SignWithOperator ¶
func (transaction *AccountUpdateTransaction) SignWithOperator( client *Client, ) (*AccountUpdateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 (query *AddressBookQuery) Execute(client *Client) (NodeAddressBook, error)
Execute executes the Query with the provided client
func (*AddressBookQuery) GetFileID ¶
func (query *AddressBookQuery) GetFileID() FileID
func (*AddressBookQuery) GetLimit ¶
func (query *AddressBookQuery) GetLimit() int32
func (*AddressBookQuery) GetMaxAttempts ¶
func (query *AddressBookQuery) GetMaxAttempts() uint64
func (*AddressBookQuery) SetFileID ¶
func (query *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 (query *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 (query *AddressBookQuery) SetMaxAttempts(maxAttempts uint64) *AddressBookQuery
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 Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Hedera 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 Hedera mainnet. Most users will want to set an _Operator account with .SetOperator so transactions can be automatically given TransactionIDs and signed.
func ClientForName ¶
ClientForName set up the client for the selected network.
func ClientForNetwork ¶
ClientForNetwork constructs a client given a set of nodes.
func ClientForPreviewnet ¶
func ClientForPreviewnet() *Client
ClientForPreviewnet returns a preconfigured client for use with the standard Hedera 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 Hedera 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 (*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.
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) GetNetwork ¶
GetNetwork returns the current set of nodes in this Client.
func (*Client) GetNetworkName
deprecated
func (client *Client) GetNetworkName() *NetworkName
Deprecated: Use GetLedgerID instead
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 (query *ContractBytecodeQuery) Execute(client *Client) ([]byte, error)
Execute executes the Query with the provided client
func (*ContractBytecodeQuery) GetContractID ¶
func (query *ContractBytecodeQuery) GetContractID() ContractID
GetContractID returns the contract for which the bytecode is requested
func (*ContractBytecodeQuery) GetCost ¶
func (query *ContractBytecodeQuery) GetCost(client *Client) (Hbar, error)
func (*ContractBytecodeQuery) GetMaxBackoff ¶
func (query *ContractBytecodeQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractBytecodeQuery) GetMinBackoff ¶
func (query *ContractBytecodeQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ContractBytecodeQuery) SetContractID ¶
func (query *ContractBytecodeQuery) SetContractID(contractID ContractID) *ContractBytecodeQuery
SetContractID sets the contract for which the bytecode is requested
func (*ContractBytecodeQuery) SetGrpcDeadline ¶
func (query *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 (query *ContractBytecodeQuery) SetLogLevel(level LogLevel) *ContractBytecodeQuery
func (*ContractBytecodeQuery) SetMaxBackoff ¶
func (query *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 (query *ContractBytecodeQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractBytecodeQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ContractBytecodeQuery) SetMaxRetry ¶
func (query *ContractBytecodeQuery) SetMaxRetry(count int) *ContractBytecodeQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractBytecodeQuery) SetMinBackoff ¶
func (query *ContractBytecodeQuery) SetMinBackoff(min time.Duration) *ContractBytecodeQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractBytecodeQuery) SetNodeAccountIDs ¶
func (query *ContractBytecodeQuery) SetNodeAccountIDs(accountID []AccountID) *ContractBytecodeQuery
SetNodeAccountIDs sets the _Node AccountID for this ContractBytecodeQuery.
func (*ContractBytecodeQuery) SetPaymentTransactionID ¶
func (query *ContractBytecodeQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractBytecodeQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*ContractBytecodeQuery) SetQueryPayment ¶
func (query *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 Hedera 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 (query *ContractCallQuery) Execute(client *Client) (ContractFunctionResult, error)
Execute executes the Query with the provided client
func (*ContractCallQuery) GetContractID ¶
func (query *ContractCallQuery) GetContractID() ContractID
GetContractID returns the contract instance to call
func (*ContractCallQuery) GetCost ¶
func (query *ContractCallQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*ContractCallQuery) GetFunctionParameters ¶
func (query *ContractCallQuery) GetFunctionParameters() []byte
GetFunctionParameters returns the function parameters as their raw bytes.
func (*ContractCallQuery) GetGas ¶
func (query *ContractCallQuery) GetGas() uint64
GetGas returns the amount of gas to use for the call.
func (*ContractCallQuery) GetMaxBackoff ¶
func (query *ContractCallQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractCallQuery) GetMinBackoff ¶
func (query *ContractCallQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ContractCallQuery) GetSenderID ¶
func (query *ContractCallQuery) GetSenderID() AccountID
GetSenderID returns the AccountID that is the "sender."
func (*ContractCallQuery) SetContractID ¶
func (query *ContractCallQuery) SetContractID(contractID ContractID) *ContractCallQuery
SetContractID sets the contract instance to call
func (*ContractCallQuery) SetFunction ¶
func (query *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 (query *ContractCallQuery) SetFunctionParameters(byteArray []byte) *ContractCallQuery
SetFunctionParameters sets the function parameters as their raw bytes.
func (*ContractCallQuery) SetGas ¶
func (query *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 (query *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 (query *ContractCallQuery) SetLogLevel(level LogLevel) *ContractCallQuery
func (*ContractCallQuery) SetMaxBackoff ¶
func (query *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 (query *ContractCallQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractCallQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ContractCallQuery) SetMaxResultSize ¶
func (query *ContractCallQuery) SetMaxResultSize(size uint64) *ContractCallQuery
Deprecated
func (*ContractCallQuery) SetMaxRetry ¶
func (query *ContractCallQuery) SetMaxRetry(count int) *ContractCallQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractCallQuery) SetMinBackoff ¶
func (query *ContractCallQuery) SetMinBackoff(min time.Duration) *ContractCallQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractCallQuery) SetNodeAccountIDs ¶
func (query *ContractCallQuery) SetNodeAccountIDs(accountID []AccountID) *ContractCallQuery
SetNodeAccountIDs sets the _Node AccountID for this ContractCallQuery.
func (*ContractCallQuery) SetPaymentTransactionID ¶
func (query *ContractCallQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractCallQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*ContractCallQuery) SetQueryPayment ¶
func (query *ContractCallQuery) SetQueryPayment(paymentAmount Hbar) *ContractCallQuery
SetQueryPayment sets the payment amount for this Query.
func (*ContractCallQuery) SetSenderID ¶
func (query *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 hedera transaction or foreign transaction data.
type ContractCreateFlow ¶
type ContractCreateFlow struct { Transaction // contains filtered or unexported fields }
func NewContractCreateFlow ¶
func NewContractCreateFlow() *ContractCreateFlow
NewContractCreateFlow creates a new ContractCreateFlow transaction builder object.
func (*ContractCreateFlow) Execute ¶
func (this *ContractCreateFlow) Execute(client *Client) (TransactionResponse, error)
func (*ContractCreateFlow) GetAdminKey ¶
func (this *ContractCreateFlow) GetAdminKey() Key
GetAdminKey returns the admin key of the contract.
func (*ContractCreateFlow) GetAutoRenewAccountID ¶
func (this *ContractCreateFlow) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the account to charge for auto-renewal of this contract.
func (*ContractCreateFlow) GetAutoRenewPeriod ¶
func (this *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 (this *ContractCreateFlow) GetBytecode() string
GetBytecode returns the hex-encoded bytecode of the contract.
func (*ContractCreateFlow) GetConstructorParameters ¶
func (this *ContractCreateFlow) GetConstructorParameters() []byte
func (*ContractCreateFlow) GetContractMemo ¶
func (this *ContractCreateFlow) GetContractMemo() string
Gets the memo to be associated with this contract.
func (*ContractCreateFlow) GetGas ¶
func (this *ContractCreateFlow) GetGas() int64
GetGas returns the gas to run the constructor.
func (*ContractCreateFlow) GetInitialBalance ¶
func (this *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 (this *ContractCreateFlow) GetMaxAutomaticTokenAssociations() int32
GetMaxAutomaticTokenAssociations returns the maximum number of tokens that this contract can be automatically associated with.
func (*ContractCreateFlow) GetMaxChunks ¶
func (this *ContractCreateFlow) GetMaxChunks() uint64
GetMaxChunks returns the maximum number of chunks that the contract bytecode can be split into.
func (*ContractCreateFlow) GetNodeAccountIDs ¶
func (this *ContractCreateFlow) GetNodeAccountIDs() []AccountID
GetNodeAccountIDs returns the node AccountID for this ContractCreateFlow.
func (*ContractCreateFlow) GetProxyAccountID ¶
func (this *ContractCreateFlow) GetProxyAccountID() AccountID
Deprecated
func (*ContractCreateFlow) SetAdminKey ¶
func (this *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 (this *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 (this *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 (this *ContractCreateFlow) SetBytecode(bytecode []byte) *ContractCreateFlow
SetBytecode sets the bytecode of the contract in raw bytes.
func (*ContractCreateFlow) SetBytecodeWithString ¶
func (this *ContractCreateFlow) SetBytecodeWithString(bytecode string) *ContractCreateFlow
SetBytecodeWithString sets the bytecode of the contract in hex-encoded string format.
func (*ContractCreateFlow) SetConstructorParameters ¶
func (this *ContractCreateFlow) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateFlow
Sets the constructor parameters
func (*ContractCreateFlow) SetConstructorParametersRaw ¶
func (this *ContractCreateFlow) SetConstructorParametersRaw(params []byte) *ContractCreateFlow
Sets the constructor parameters as their raw bytes.
func (*ContractCreateFlow) SetContractMemo ¶
func (this *ContractCreateFlow) SetContractMemo(memo string) *ContractCreateFlow
Sets the memo to be associated with this contract.
func (*ContractCreateFlow) SetGas ¶
func (this *ContractCreateFlow) SetGas(gas int64) *ContractCreateFlow
SetGas sets the gas to run the constructor.
func (*ContractCreateFlow) SetInitialBalance ¶
func (this *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 (this *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 (this *ContractCreateFlow) SetMaxChunks(max uint64) *ContractCreateFlow
SetMaxChunks sets the maximum number of chunks that the contract bytecode can be split into.
func (*ContractCreateFlow) SetNodeAccountIDs ¶
func (this *ContractCreateFlow) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateFlow
SetNodeAccountIDs sets the node AccountID for this ContractCreateFlow.
func (*ContractCreateFlow) SetProxyAccountID ¶
func (this *ContractCreateFlow) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateFlow
Deprecated
type ContractCreateTransaction ¶
type ContractCreateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *ContractCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractCreateTransaction
AddSignature adds a signature to the Transaction.
func (*ContractCreateTransaction) Execute ¶
func (transaction *ContractCreateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ContractCreateTransaction) Freeze ¶
func (transaction *ContractCreateTransaction) Freeze() (*ContractCreateTransaction, error)
func (*ContractCreateTransaction) FreezeWith ¶
func (transaction *ContractCreateTransaction) FreezeWith(client *Client) (*ContractCreateTransaction, error)
func (*ContractCreateTransaction) GetAdminKey ¶
func (transaction *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 (transaction *ContractCreateTransaction) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the account to be used at the end of the auto renewal period
func (*ContractCreateTransaction) GetAutoRenewPeriod ¶
func (transaction *ContractCreateTransaction) GetAutoRenewPeriod() time.Duration
func (*ContractCreateTransaction) GetBytecode ¶
func (transaction *ContractCreateTransaction) GetBytecode() []byte
GetBytecode returns the bytecode for the contract.
func (*ContractCreateTransaction) GetBytecodeFileID ¶
func (transaction *ContractCreateTransaction) GetBytecodeFileID() FileID
GetBytecodeFileID returns the FileID of the file containing the contract's bytecode.
func (*ContractCreateTransaction) GetConstructorParameters ¶
func (transaction *ContractCreateTransaction) GetConstructorParameters() []byte
GetConstructorParameters returns the constructor parameters
func (*ContractCreateTransaction) GetContractMemo ¶
func (transaction *ContractCreateTransaction) GetContractMemo() string
GetContractMemo returns the memo associated with this contract.
func (*ContractCreateTransaction) GetDeclineStakingReward ¶
func (transaction *ContractCreateTransaction) GetDeclineStakingReward() bool
GetDeclineStakingReward returns if the contract should decline to pay the account's staking revenue.
func (*ContractCreateTransaction) GetGas ¶
func (transaction *ContractCreateTransaction) GetGas() uint64
GetGas returns the gas to run the constructor.
func (*ContractCreateTransaction) GetInitialBalance ¶
func (transaction *ContractCreateTransaction) GetInitialBalance() Hbar
GetInitialBalance gets the initial number of Hbar in the account
func (*ContractCreateTransaction) GetMaxAutomaticTokenAssociations ¶
func (transaction *ContractCreateTransaction) GetMaxAutomaticTokenAssociations() int32
GetMaxAutomaticTokenAssociations returns the maximum number of tokens that this contract can be automatically associated
func (*ContractCreateTransaction) GetMaxBackoff ¶
func (transaction *ContractCreateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractCreateTransaction) GetMaxTransactionFee ¶
func (transaction *ContractCreateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractCreateTransaction) GetMinBackoff ¶
func (transaction *ContractCreateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ContractCreateTransaction) GetProxyAccountID ¶
func (transaction *ContractCreateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*ContractCreateTransaction) GetRegenerateTransactionID ¶
func (transaction *ContractCreateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ContractCreateTransaction) GetStakedAccountID ¶
func (transaction *ContractCreateTransaction) GetStakedAccountID() AccountID
GetStakedAccountID returns the account ID of the account to which this contract is staked.
func (*ContractCreateTransaction) GetStakedNodeID ¶
func (transaction *ContractCreateTransaction) GetStakedNodeID() int64
GetStakedNodeID returns the node ID of the node to which this contract is staked.
func (*ContractCreateTransaction) GetTransactionID ¶
func (transaction *ContractCreateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ContractCreateTransaction.
func (*ContractCreateTransaction) GetTransactionMemo ¶
func (transaction *ContractCreateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ContractCreateTransaction.
func (*ContractCreateTransaction) GetTransactionValidDuration ¶
func (transaction *ContractCreateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ContractCreateTransaction) IsFrozen ¶
func (transaction *ContractCreateTransaction) IsFrozen() bool
func (*ContractCreateTransaction) Schedule ¶
func (transaction *ContractCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*ContractCreateTransaction) SetAdminKey ¶
func (transaction *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 (transaction *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 (transaction *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) SetBytecode ¶
func (transaction *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 (transaction *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 (transaction *ContractCreateTransaction) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateTransaction
SetConstructorParameters Sets the constructor parameters
func (*ContractCreateTransaction) SetConstructorParametersRaw ¶
func (transaction *ContractCreateTransaction) SetConstructorParametersRaw(params []byte) *ContractCreateTransaction
SetConstructorParametersRaw Sets the constructor parameters as their raw bytes.
func (*ContractCreateTransaction) SetContractMemo ¶
func (transaction *ContractCreateTransaction) SetContractMemo(memo string) *ContractCreateTransaction
SetContractMemo Sets the memo to be associated with this contract.
func (*ContractCreateTransaction) SetDeclineStakingReward ¶
func (transaction *ContractCreateTransaction) SetDeclineStakingReward(decline bool) *ContractCreateTransaction
SetDeclineStakingReward sets if the contract should decline to pay the account's staking revenue.
func (*ContractCreateTransaction) SetGas ¶
func (transaction *ContractCreateTransaction) SetGas(gas uint64) *ContractCreateTransaction
Sets the gas to run the constructor.
func (*ContractCreateTransaction) SetGrpcDeadline ¶
func (transaction *ContractCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractCreateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractCreateTransaction) SetInitialBalance ¶
func (transaction *ContractCreateTransaction) SetInitialBalance(initialBalance Hbar) *ContractCreateTransaction
SetInitialBalance sets the initial number of Hbar to put into the account
func (*ContractCreateTransaction) SetLogLevel ¶
func (transaction *ContractCreateTransaction) SetLogLevel(level LogLevel) *ContractCreateTransaction
func (*ContractCreateTransaction) SetMaxAutomaticTokenAssociations ¶
func (transaction *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) SetMaxBackoff ¶
func (transaction *ContractCreateTransaction) SetMaxBackoff(max time.Duration) *ContractCreateTransaction
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 (*ContractCreateTransaction) SetMaxRetry ¶
func (transaction *ContractCreateTransaction) SetMaxRetry(count int) *ContractCreateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractCreateTransaction) SetMaxTransactionFee ¶
func (transaction *ContractCreateTransaction) SetMaxTransactionFee(fee Hbar) *ContractCreateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractCreateTransaction) SetMinBackoff ¶
func (transaction *ContractCreateTransaction) SetMinBackoff(min time.Duration) *ContractCreateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractCreateTransaction) SetNodeAccountIDs ¶
func (transaction *ContractCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateTransaction
SetNodeAccountIDs sets the _Node AccountID for this ContractCreateTransaction.
func (*ContractCreateTransaction) SetProxyAccountID ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *ContractCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractCreateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ContractCreateTransaction) SetStakedAccountID ¶
func (transaction *ContractCreateTransaction) SetStakedAccountID(id AccountID) *ContractCreateTransaction
SetStakedAccountID sets the account ID of the account to which this contract is staked.
func (*ContractCreateTransaction) SetStakedNodeID ¶
func (transaction *ContractCreateTransaction) SetStakedNodeID(id int64) *ContractCreateTransaction
SetStakedNodeID sets the node ID of the node to which this contract is staked.
func (*ContractCreateTransaction) SetTransactionID ¶
func (transaction *ContractCreateTransaction) SetTransactionID(transactionID TransactionID) *ContractCreateTransaction
SetTransactionID sets the TransactionID for this ContractCreateTransaction.
func (*ContractCreateTransaction) SetTransactionMemo ¶
func (transaction *ContractCreateTransaction) SetTransactionMemo(memo string) *ContractCreateTransaction
SetTransactionMemo sets the memo for this ContractCreateTransaction.
func (*ContractCreateTransaction) SetTransactionValidDuration ¶
func (transaction *ContractCreateTransaction) SetTransactionValidDuration(duration time.Duration) *ContractCreateTransaction
SetTransactionValidDuration sets the valid duration for this ContractCreateTransaction.
func (*ContractCreateTransaction) Sign ¶
func (transaction *ContractCreateTransaction) Sign( privateKey PrivateKey, ) *ContractCreateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ContractCreateTransaction) SignWith ¶
func (transaction *ContractCreateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ContractCreateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ContractCreateTransaction) SignWithOperator ¶
func (transaction *ContractCreateTransaction) SignWithOperator( client *Client, ) (*ContractCreateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type ContractDeleteTransaction ¶
type ContractDeleteTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *ContractDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractDeleteTransaction
func (*ContractDeleteTransaction) Execute ¶
func (transaction *ContractDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ContractDeleteTransaction) Freeze ¶
func (transaction *ContractDeleteTransaction) Freeze() (*ContractDeleteTransaction, error)
func (*ContractDeleteTransaction) FreezeWith ¶
func (transaction *ContractDeleteTransaction) FreezeWith(client *Client) (*ContractDeleteTransaction, error)
func (*ContractDeleteTransaction) GetContractID ¶
func (transaction *ContractDeleteTransaction) GetContractID() ContractID
Returns the contract ID which will be deleted.
func (*ContractDeleteTransaction) GetMaxBackoff ¶
func (transaction *ContractDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *ContractDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractDeleteTransaction) GetMinBackoff ¶
func (transaction *ContractDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ContractDeleteTransaction) GetPermanentRemoval ¶
func (transaction *ContractDeleteTransaction) GetPermanentRemoval() bool
GetPermanentRemoval returns true if this is a "synthetic" system transaction.
func (*ContractDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *ContractDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ContractDeleteTransaction) GetTransactionID ¶
func (transaction *ContractDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ContractDeleteTransaction.
func (*ContractDeleteTransaction) GetTransactionMemo ¶
func (transaction *ContractDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ContractDeleteTransaction.
func (*ContractDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *ContractDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ContractDeleteTransaction) GetTransferAccountID ¶
func (transaction *ContractDeleteTransaction) GetTransferAccountID() AccountID
Returns the account ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) GetTransferContractID ¶
func (transaction *ContractDeleteTransaction) GetTransferContractID() ContractID
Returns the contract ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) IsFrozen ¶
func (transaction *ContractDeleteTransaction) IsFrozen() bool
func (*ContractDeleteTransaction) Schedule ¶
func (transaction *ContractDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*ContractDeleteTransaction) SetContractID ¶
func (transaction *ContractDeleteTransaction) SetContractID(contractID ContractID) *ContractDeleteTransaction
Sets the contract ID which will be deleted.
func (*ContractDeleteTransaction) SetGrpcDeadline ¶
func (transaction *ContractDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractDeleteTransaction) SetLogLevel ¶
func (transaction *ContractDeleteTransaction) SetLogLevel(level LogLevel) *ContractDeleteTransaction
func (*ContractDeleteTransaction) SetMaxBackoff ¶
func (transaction *ContractDeleteTransaction) SetMaxBackoff(max time.Duration) *ContractDeleteTransaction
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 (*ContractDeleteTransaction) SetMaxRetry ¶
func (transaction *ContractDeleteTransaction) SetMaxRetry(count int) *ContractDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *ContractDeleteTransaction) SetMaxTransactionFee(fee Hbar) *ContractDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractDeleteTransaction) SetMinBackoff ¶
func (transaction *ContractDeleteTransaction) SetMinBackoff(min time.Duration) *ContractDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *ContractDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractDeleteTransaction
SetNodeAccountIDs sets the _Node AccountID for this ContractDeleteTransaction.
func (*ContractDeleteTransaction) SetPermanentRemoval ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *ContractDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ContractDeleteTransaction) SetTransactionID ¶
func (transaction *ContractDeleteTransaction) SetTransactionID(transactionID TransactionID) *ContractDeleteTransaction
SetTransactionID sets the TransactionID for this ContractDeleteTransaction.
func (*ContractDeleteTransaction) SetTransactionMemo ¶
func (transaction *ContractDeleteTransaction) SetTransactionMemo(memo string) *ContractDeleteTransaction
SetTransactionMemo sets the memo for this ContractDeleteTransaction.
func (*ContractDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *ContractDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *ContractDeleteTransaction
SetTransactionValidDuration sets the valid duration for this ContractDeleteTransaction.
func (*ContractDeleteTransaction) SetTransferAccountID ¶
func (transaction *ContractDeleteTransaction) SetTransferAccountID(accountID AccountID) *ContractDeleteTransaction
Sets the account ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) SetTransferContractID ¶
func (transaction *ContractDeleteTransaction) SetTransferContractID(transferContactID ContractID) *ContractDeleteTransaction
Sets the contract ID which will receive all remaining hbars.
func (*ContractDeleteTransaction) Sign ¶
func (transaction *ContractDeleteTransaction) Sign( privateKey PrivateKey, ) *ContractDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ContractDeleteTransaction) SignWith ¶
func (transaction *ContractDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ContractDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ContractDeleteTransaction) SignWithOperator ¶
func (transaction *ContractDeleteTransaction) SignWithOperator( client *Client, ) (*ContractDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type ContractExecuteTransaction ¶
type ContractExecuteTransaction struct { Transaction // 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 this 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) AddSignature ¶
func (transaction *ContractExecuteTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractExecuteTransaction
AddSignature adds a signature to the Transaction.
func (*ContractExecuteTransaction) Execute ¶
func (transaction *ContractExecuteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ContractExecuteTransaction) Freeze ¶
func (transaction *ContractExecuteTransaction) Freeze() (*ContractExecuteTransaction, error)
func (*ContractExecuteTransaction) FreezeWith ¶
func (transaction *ContractExecuteTransaction) FreezeWith(client *Client) (*ContractExecuteTransaction, error)
func (*ContractExecuteTransaction) GetContractID ¶
func (transaction *ContractExecuteTransaction) GetContractID() ContractID
GetContractID returns the contract instance to call.
func (*ContractExecuteTransaction) GetFunctionParameters ¶
func (transaction *ContractExecuteTransaction) GetFunctionParameters() []byte
GetFunctionParameters returns the function parameters
func (*ContractExecuteTransaction) GetGas ¶
func (transaction *ContractExecuteTransaction) GetGas() uint64
GetGas returns the maximum amount of gas to use for the call.
func (*ContractExecuteTransaction) GetMaxBackoff ¶
func (transaction *ContractExecuteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractExecuteTransaction) GetMaxTransactionFee ¶
func (transaction *ContractExecuteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractExecuteTransaction) GetMinBackoff ¶
func (transaction *ContractExecuteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (ContractExecuteTransaction) GetPayableAmount ¶
func (transaction ContractExecuteTransaction) GetPayableAmount() Hbar
GetPayableAmount returns the amount of Hbar sent (the function must be payable if this is nonzero)
func (*ContractExecuteTransaction) GetRegenerateTransactionID ¶
func (transaction *ContractExecuteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ContractExecuteTransaction) GetTransactionID ¶
func (transaction *ContractExecuteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ContractExecuteTransaction.
func (*ContractExecuteTransaction) GetTransactionMemo ¶
func (transaction *ContractExecuteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ContractExecuteTransaction.
func (*ContractExecuteTransaction) GetTransactionValidDuration ¶
func (transaction *ContractExecuteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ContractExecuteTransaction) IsFrozen ¶
func (transaction *ContractExecuteTransaction) IsFrozen() bool
func (*ContractExecuteTransaction) Schedule ¶
func (transaction *ContractExecuteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*ContractExecuteTransaction) SetContractID ¶
func (transaction *ContractExecuteTransaction) SetContractID(contractID ContractID) *ContractExecuteTransaction
SetContractID sets the contract instance to call.
func (*ContractExecuteTransaction) SetFunction ¶
func (transaction *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 (transaction *ContractExecuteTransaction) SetFunctionParameters(params []byte) *ContractExecuteTransaction
SetFunctionParameters sets the function parameters
func (*ContractExecuteTransaction) SetGas ¶
func (transaction *ContractExecuteTransaction) SetGas(gas uint64) *ContractExecuteTransaction
SetGas sets the maximum amount of gas to use for the call.
func (*ContractExecuteTransaction) SetGrpcDeadline ¶
func (transaction *ContractExecuteTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractExecuteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractExecuteTransaction) SetLogLevel ¶
func (transaction *ContractExecuteTransaction) SetLogLevel(level LogLevel) *ContractExecuteTransaction
func (*ContractExecuteTransaction) SetMaxBackoff ¶
func (transaction *ContractExecuteTransaction) SetMaxBackoff(max time.Duration) *ContractExecuteTransaction
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 (*ContractExecuteTransaction) SetMaxRetry ¶
func (transaction *ContractExecuteTransaction) SetMaxRetry(count int) *ContractExecuteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractExecuteTransaction) SetMaxTransactionFee ¶
func (transaction *ContractExecuteTransaction) SetMaxTransactionFee(fee Hbar) *ContractExecuteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractExecuteTransaction) SetMinBackoff ¶
func (transaction *ContractExecuteTransaction) SetMinBackoff(min time.Duration) *ContractExecuteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractExecuteTransaction) SetNodeAccountIDs ¶
func (transaction *ContractExecuteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractExecuteTransaction
SetNodeAccountIDs sets the _Node AccountID for this ContractExecuteTransaction.
func (*ContractExecuteTransaction) SetPayableAmount ¶
func (transaction *ContractExecuteTransaction) SetPayableAmount(amount Hbar) *ContractExecuteTransaction
SetPayableAmount sets the amount of Hbar sent (the function must be payable if this is nonzero)
func (*ContractExecuteTransaction) SetRegenerateTransactionID ¶
func (transaction *ContractExecuteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractExecuteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ContractExecuteTransaction) SetTransactionID ¶
func (transaction *ContractExecuteTransaction) SetTransactionID(transactionID TransactionID) *ContractExecuteTransaction
SetTransactionID sets the TransactionID for this ContractExecuteTransaction.
func (*ContractExecuteTransaction) SetTransactionMemo ¶
func (transaction *ContractExecuteTransaction) SetTransactionMemo(memo string) *ContractExecuteTransaction
SetTransactionMemo sets the memo for this ContractExecuteTransaction.
func (*ContractExecuteTransaction) SetTransactionValidDuration ¶
func (transaction *ContractExecuteTransaction) SetTransactionValidDuration(duration time.Duration) *ContractExecuteTransaction
SetTransactionValidDuration sets the valid duration for this ContractExecuteTransaction.
func (*ContractExecuteTransaction) Sign ¶
func (transaction *ContractExecuteTransaction) Sign( privateKey PrivateKey, ) *ContractExecuteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ContractExecuteTransaction) SignWith ¶
func (transaction *ContractExecuteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ContractExecuteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ContractExecuteTransaction) SignWithOperator ¶
func (transaction *ContractExecuteTransaction) SignWithOperator( client *Client, ) (*ContractExecuteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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`. This is a little unintuitive, so here is an example of how to use those larger number variants using "github.com/ethereum/go-ethereum/common/math" and "math/big" ``` AddUint88(math.PaddedBigBytes(n, 88 / 8)) ``` If you're using `Uint256` specifically you can opt into using ``` AddUin256(math.PaddedBigBytes(math.U256(n), 32)) ```
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 }
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. To convert those bytes into a usable integer using "github.com/ethereum/go-ethereum/common/math" and "math/big" do the following: ``` 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 Hedera 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, evmAddress string) (ContractID, error)
ContractIDFromEvmAddress constructs a ContractID from a string representation of an 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) ToSolidityAddress ¶
func (id ContractID) ToSolidityAddress() string
ToSolidityAddress returns the string representation of the ContractID as a _Solidity address.
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 LedgerID LedgerID AutoRenewAccountID *AccountID MaxAutomaticTokenAssociations int32 StakingInfoHedera *StakingInfoHedera }
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 (query *ContractInfoQuery) Execute(client *Client) (ContractInfo, error)
Execute executes the Query with the provided client
func (*ContractInfoQuery) GetContractID ¶
func (query *ContractInfoQuery) GetContractID() ContractID
func (*ContractInfoQuery) GetCost ¶
func (query *ContractInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*ContractInfoQuery) GetMaxBackoff ¶
func (query *ContractInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractInfoQuery) GetMinBackoff ¶
func (query *ContractInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ContractInfoQuery) SetContractID ¶
func (query *ContractInfoQuery) SetContractID(contractID ContractID) *ContractInfoQuery
SetContractID sets the contract for which information is requested
func (*ContractInfoQuery) SetGrpcDeadline ¶
func (query *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 (query *ContractInfoQuery) SetLogLevel(level LogLevel) *ContractInfoQuery
func (*ContractInfoQuery) SetMaxBackoff ¶
func (query *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 (query *ContractInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ContractInfoQuery) SetMaxRetry ¶
func (query *ContractInfoQuery) SetMaxRetry(count int) *ContractInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractInfoQuery) SetMinBackoff ¶
func (query *ContractInfoQuery) SetMinBackoff(min time.Duration) *ContractInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractInfoQuery) SetNodeAccountIDs ¶
func (query *ContractInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ContractInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this ContractInfoQuery.
func (*ContractInfoQuery) SetPaymentTransactionID ¶
func (query *ContractInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractInfoQuery
func (*ContractInfoQuery) SetQueryPayment ¶
func (query *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 Hedera smart contract
type ContractStateChange ¶
type ContractStateChange struct { ContractID *ContractID StorageChanges []*StorageChange }
type ContractUpdateTransaction ¶
type ContractUpdateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *ContractUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractUpdateTransaction
AddSignature adds a signature to the Transaction.
func (*ContractUpdateTransaction) ClearStakedAccountID ¶
func (transaction *ContractUpdateTransaction) ClearStakedAccountID() *ContractUpdateTransaction
func (*ContractUpdateTransaction) ClearStakedNodeID ¶
func (transaction *ContractUpdateTransaction) ClearStakedNodeID() *ContractUpdateTransaction
func (*ContractUpdateTransaction) Execute ¶
func (transaction *ContractUpdateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ContractUpdateTransaction) Freeze ¶
func (transaction *ContractUpdateTransaction) Freeze() (*ContractUpdateTransaction, error)
func (*ContractUpdateTransaction) FreezeWith ¶
func (transaction *ContractUpdateTransaction) FreezeWith(client *Client) (*ContractUpdateTransaction, error)
func (*ContractUpdateTransaction) GetAdminKey ¶
func (transaction *ContractUpdateTransaction) GetAdminKey() (Key, error)
func (*ContractUpdateTransaction) GetAutoRenewAccountID ¶
func (transaction *ContractUpdateTransaction) GetAutoRenewAccountID() AccountID
func (*ContractUpdateTransaction) GetAutoRenewPeriod ¶
func (transaction *ContractUpdateTransaction) GetAutoRenewPeriod() time.Duration
func (*ContractUpdateTransaction) GetBytecodeFileID ¶
func (transaction *ContractUpdateTransaction) GetBytecodeFileID() FileID
Deprecated
func (*ContractUpdateTransaction) GetContractID ¶
func (transaction *ContractUpdateTransaction) GetContractID() ContractID
func (*ContractUpdateTransaction) GetContractMemo ¶
func (transaction *ContractUpdateTransaction) GetContractMemo() string
func (*ContractUpdateTransaction) GetDeclineStakingReward ¶
func (transaction *ContractUpdateTransaction) GetDeclineStakingReward() bool
func (*ContractUpdateTransaction) GetExpirationTime ¶
func (transaction *ContractUpdateTransaction) GetExpirationTime() time.Time
func (*ContractUpdateTransaction) GetMaxAutomaticTokenAssociations ¶
func (transaction *ContractUpdateTransaction) GetMaxAutomaticTokenAssociations() int32
func (*ContractUpdateTransaction) GetMaxBackoff ¶
func (transaction *ContractUpdateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ContractUpdateTransaction) GetMaxTransactionFee ¶
func (transaction *ContractUpdateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractUpdateTransaction) GetMinBackoff ¶
func (transaction *ContractUpdateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ContractUpdateTransaction) GetProxyAccountID ¶
func (transaction *ContractUpdateTransaction) GetProxyAccountID() AccountID
Deprecated
func (*ContractUpdateTransaction) GetRegenerateTransactionID ¶
func (transaction *ContractUpdateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ContractUpdateTransaction) GetStakedAccountID ¶
func (transaction *ContractUpdateTransaction) GetStakedAccountID() AccountID
func (*ContractUpdateTransaction) GetStakedNodeID ¶
func (transaction *ContractUpdateTransaction) GetStakedNodeID() int64
func (*ContractUpdateTransaction) GetTransactionID ¶
func (transaction *ContractUpdateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ContractUpdateTransaction.
func (*ContractUpdateTransaction) GetTransactionMemo ¶
func (transaction *ContractUpdateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ContractUpdateTransaction.
func (*ContractUpdateTransaction) GetTransactionValidDuration ¶
func (transaction *ContractUpdateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ContractUpdateTransaction) IsFrozen ¶
func (transaction *ContractUpdateTransaction) IsFrozen() bool
func (*ContractUpdateTransaction) Schedule ¶
func (transaction *ContractUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*ContractUpdateTransaction) SetAdminKey ¶
func (transaction *ContractUpdateTransaction) SetAdminKey(publicKey PublicKey) *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 (transaction *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 (transaction *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) SetBytecodeFileID ¶
func (transaction *ContractUpdateTransaction) SetBytecodeFileID(bytecodeFileID FileID) *ContractUpdateTransaction
Deprecated
func (*ContractUpdateTransaction) SetContractID ¶
func (transaction *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 (transaction *ContractUpdateTransaction) SetContractMemo(memo string) *ContractUpdateTransaction
SetContractMemo sets the memo associated with the contract (max 100 bytes)
func (*ContractUpdateTransaction) SetDeclineStakingReward ¶
func (transaction *ContractUpdateTransaction) SetDeclineStakingReward(decline bool) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetExpirationTime ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *ContractUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractUpdateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ContractUpdateTransaction) SetLogLevel ¶
func (transaction *ContractUpdateTransaction) SetLogLevel(level LogLevel) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetMaxAutomaticTokenAssociations ¶
func (transaction *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) SetMaxBackoff ¶
func (transaction *ContractUpdateTransaction) SetMaxBackoff(max time.Duration) *ContractUpdateTransaction
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 (*ContractUpdateTransaction) SetMaxRetry ¶
func (transaction *ContractUpdateTransaction) SetMaxRetry(count int) *ContractUpdateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ContractUpdateTransaction) SetMaxTransactionFee ¶
func (transaction *ContractUpdateTransaction) SetMaxTransactionFee(fee Hbar) *ContractUpdateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ContractUpdateTransaction) SetMinBackoff ¶
func (transaction *ContractUpdateTransaction) SetMinBackoff(min time.Duration) *ContractUpdateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ContractUpdateTransaction) SetNodeAccountIDs ¶
func (transaction *ContractUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractUpdateTransaction
SetNodeAccountID sets the _Node AccountID for this ContractUpdateTransaction.
func (*ContractUpdateTransaction) SetProxyAccountID ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *ContractUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractUpdateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ContractUpdateTransaction) SetStakedAccountID ¶
func (transaction *ContractUpdateTransaction) SetStakedAccountID(id AccountID) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetStakedNodeID ¶
func (transaction *ContractUpdateTransaction) SetStakedNodeID(id int64) *ContractUpdateTransaction
func (*ContractUpdateTransaction) SetTransactionID ¶
func (transaction *ContractUpdateTransaction) SetTransactionID(transactionID TransactionID) *ContractUpdateTransaction
SetTransactionID sets the TransactionID for this ContractUpdateTransaction.
func (*ContractUpdateTransaction) SetTransactionMemo ¶
func (transaction *ContractUpdateTransaction) SetTransactionMemo(memo string) *ContractUpdateTransaction
SetTransactionMemo sets the memo for this ContractUpdateTransaction.
func (*ContractUpdateTransaction) SetTransactionValidDuration ¶
func (transaction *ContractUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *ContractUpdateTransaction
SetTransactionValidDuration sets the valid duration for this ContractUpdateTransaction.
func (*ContractUpdateTransaction) Sign ¶
func (transaction *ContractUpdateTransaction) Sign( privateKey PrivateKey, ) *ContractUpdateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ContractUpdateTransaction) SignWith ¶
func (transaction *ContractUpdateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ContractUpdateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ContractUpdateTransaction) SignWithOperator ¶
func (transaction *ContractUpdateTransaction) SignWithOperator( client *Client, ) (*ContractUpdateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 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 Hedera 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, evmAddress string) (DelegatableContractID, error)
DelegatableContractIDFromEvmAddress constructs a DelegatableContractID from a string representation of a _Solidity 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
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) ToSolidityAddress ¶
func (id DelegatableContractID) ToSolidityAddress() string
ToSolidityAddress returns the string representation of the DelegatableContractID as a _Solidity address.
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 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 Hedera _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 EthereumFlow ¶
type EthereumFlow struct { Transaction // contains filtered or unexported fields }
Execute an Ethereum transaction on Hedera
func NewEthereumFlow ¶
func NewEthereumFlow() *EthereumFlow
Execute an Ethereum transaction on Hedera
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 EthereumTransaction ¶
type EthereumTransaction struct { Transaction 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) AddSignature ¶
func (transaction *EthereumTransaction) AddSignature(publicKey PublicKey, signature []byte) *EthereumTransaction
AddSignature adds a signature to the Transaction.
func (*EthereumTransaction) Execute ¶
func (transaction *EthereumTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*EthereumTransaction) Freeze ¶
func (transaction *EthereumTransaction) Freeze() (*EthereumTransaction, error)
func (*EthereumTransaction) FreezeWith ¶
func (transaction *EthereumTransaction) FreezeWith(client *Client) (*EthereumTransaction, error)
func (*EthereumTransaction) GetCallData ¶
func (transaction *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 (transaction *EthereumTransaction) GetEthereumData() []byte
GetEthereumData returns the raw Ethereum transaction (RLP encoded type 0, 1, and 2).
func (*EthereumTransaction) GetMaxBackoff ¶
func (transaction *EthereumTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*EthereumTransaction) GetMaxGasAllowed ¶
func (transaction *EthereumTransaction) GetMaxGasAllowed() int64
GetMaxGasAllowed returns the maximum amount, that the payer of the hedera transaction is willing to pay to complete the transaction.
func (*EthereumTransaction) GetMaxTransactionFee ¶
func (transaction *EthereumTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*EthereumTransaction) GetMinBackoff ¶
func (transaction *EthereumTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*EthereumTransaction) GetRegenerateTransactionID ¶
func (transaction *EthereumTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*EthereumTransaction) GetTransactionID ¶
func (transaction *EthereumTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this EthereumTransaction.
func (*EthereumTransaction) GetTransactionMemo ¶
func (transaction *EthereumTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this EthereumTransaction.
func (*EthereumTransaction) GetTransactionValidDuration ¶
func (transaction *EthereumTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*EthereumTransaction) IsFrozen ¶
func (transaction *EthereumTransaction) IsFrozen() bool
func (*EthereumTransaction) SetCallData ¶
func (transaction *EthereumTransaction) SetCallData(file FileID) *EthereumTransaction
Deprecated
func (*EthereumTransaction) SetCallDataFileID ¶
func (transaction *EthereumTransaction) SetCallDataFileID(file FileID) *EthereumTransaction
SetCallDataFileID sets the file ID containing the call data.
func (*EthereumTransaction) SetEthereumData ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *EthereumTransaction) SetGrpcDeadline(deadline *time.Duration) *EthereumTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*EthereumTransaction) SetMaxBackoff ¶
func (transaction *EthereumTransaction) SetMaxBackoff(max time.Duration) *EthereumTransaction
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 (*EthereumTransaction) SetMaxGasAllowanceHbar ¶
func (transaction *EthereumTransaction) SetMaxGasAllowanceHbar(gas Hbar) *EthereumTransaction
SetMaxGasAllowanceHbar sets the maximum amount, that the payer of the hedera transaction is willing to pay to complete the transaction.
func (*EthereumTransaction) SetMaxGasAllowed ¶
func (transaction *EthereumTransaction) SetMaxGasAllowed(gas int64) *EthereumTransaction
SetMaxGasAllowed The maximum amount, in tinybars, that the payer of the hedera transaction is willing to pay to complete the transaction.
func (*EthereumTransaction) SetMaxRetry ¶
func (transaction *EthereumTransaction) SetMaxRetry(count int) *EthereumTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*EthereumTransaction) SetMaxTransactionFee ¶
func (transaction *EthereumTransaction) SetMaxTransactionFee(fee Hbar) *EthereumTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*EthereumTransaction) SetMinBackoff ¶
func (transaction *EthereumTransaction) SetMinBackoff(min time.Duration) *EthereumTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*EthereumTransaction) SetNodeAccountIDs ¶
func (transaction *EthereumTransaction) SetNodeAccountIDs(nodeID []AccountID) *EthereumTransaction
SetNodeAccountIDs sets the _Node AccountID for this EthereumTransaction.
func (*EthereumTransaction) SetRegenerateTransactionID ¶
func (transaction *EthereumTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *EthereumTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*EthereumTransaction) SetTransactionID ¶
func (transaction *EthereumTransaction) SetTransactionID(transactionID TransactionID) *EthereumTransaction
SetTransactionID sets the TransactionID for this EthereumTransaction.
func (*EthereumTransaction) SetTransactionMemo ¶
func (transaction *EthereumTransaction) SetTransactionMemo(memo string) *EthereumTransaction
SetTransactionMemo sets the memo for this EthereumTransaction.
func (*EthereumTransaction) SetTransactionValidDuration ¶
func (transaction *EthereumTransaction) SetTransactionValidDuration(duration time.Duration) *EthereumTransaction
SetTransactionValidDuration sets the valid duration for this EthereumTransaction.
func (*EthereumTransaction) Sign ¶
func (transaction *EthereumTransaction) Sign( privateKey PrivateKey, ) *EthereumTransaction
Sign uses the provided privateKey to sign the transaction.
func (*EthereumTransaction) SignWith ¶
func (transaction *EthereumTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *EthereumTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*EthereumTransaction) SignWithOperator ¶
func (transaction *EthereumTransaction) SignWithOperator( client *Client, ) (*EthereumTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type EthereumTransactionData ¶
type EthereumTransactionData struct {
// contains filtered or unexported fields
}
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 EthereumTransactionDataFromJson ¶
func EthereumTransactionDataFromJson(b []byte) (*EthereumTransactionData, error)
EthereumTransactionDataFromJson constructs an EthereumTransactionData from a JSON string.
func (*EthereumTransactionData) ToBytes ¶
func (ethereumTxData *EthereumTransactionData) ToBytes() ([]byte, error)
ToBytes returns the raw bytes of the Ethereum transaction.
func (*EthereumTransactionData) ToJson ¶
func (ethereumTxData *EthereumTransactionData) ToJson() ([]byte, error)
ToJson returns a JSON representation of the Ethereum transaction.
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 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 // 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) AddSignature ¶
func (transaction *FileAppendTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileAppendTransaction
AddSignature adds a signature to the Transaction.
func (*FileAppendTransaction) Execute ¶
func (transaction *FileAppendTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*FileAppendTransaction) ExecuteAll ¶
func (transaction *FileAppendTransaction) ExecuteAll( client *Client, ) ([]TransactionResponse, error)
ExecuteAll executes the all the Transactions with the provided client
func (*FileAppendTransaction) Freeze ¶
func (transaction *FileAppendTransaction) Freeze() (*FileAppendTransaction, error)
func (*FileAppendTransaction) FreezeWith ¶
func (transaction *FileAppendTransaction) FreezeWith(client *Client) (*FileAppendTransaction, error)
func (*FileAppendTransaction) GetContents ¶
func (transaction *FileAppendTransaction) GetContents() []byte
GetContents returns the bytes to append to the contents of the file.
func (*FileAppendTransaction) GetFileID ¶
func (transaction *FileAppendTransaction) GetFileID() FileID
GetFileID returns the FileID of the file to which the bytes are appended to.
func (*FileAppendTransaction) GetMaxBackoff ¶
func (transaction *FileAppendTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FileAppendTransaction) GetMaxChunkSize ¶
func (transaction *FileAppendTransaction) GetMaxChunkSize() int
GetMaxChunkSize returns maximum amount of chunks append function can create
func (*FileAppendTransaction) GetMaxChunks ¶
func (transaction *FileAppendTransaction) GetMaxChunks() uint64
GetMaxChunks returns the maximum number of chunks that can be created
func (*FileAppendTransaction) GetMaxTransactionFee ¶
func (transaction *FileAppendTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileAppendTransaction) GetMinBackoff ¶
func (transaction *FileAppendTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FileAppendTransaction) GetRegenerateTransactionID ¶
func (transaction *FileAppendTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*FileAppendTransaction) GetTransactionID ¶
func (transaction *FileAppendTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this FileAppendTransaction.
func (*FileAppendTransaction) GetTransactionMemo ¶
func (transaction *FileAppendTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this FileAppendTransaction.
func (*FileAppendTransaction) GetTransactionValidDuration ¶
func (transaction *FileAppendTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*FileAppendTransaction) IsFrozen ¶
func (transaction *FileAppendTransaction) IsFrozen() bool
func (*FileAppendTransaction) Schedule ¶
func (transaction *FileAppendTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*FileAppendTransaction) SetContents ¶
func (transaction *FileAppendTransaction) SetContents(contents []byte) *FileAppendTransaction
SetContents sets the bytes to append to the contents of the file.
func (*FileAppendTransaction) SetFileID ¶
func (transaction *FileAppendTransaction) SetFileID(fileID FileID) *FileAppendTransaction
SetFileID sets the FileID of the file to which the bytes are appended to.
func (*FileAppendTransaction) SetGrpcDeadline ¶
func (transaction *FileAppendTransaction) SetGrpcDeadline(deadline *time.Duration) *FileAppendTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*FileAppendTransaction) SetLogLevel ¶
func (transaction *FileAppendTransaction) SetLogLevel(level LogLevel) *FileAppendTransaction
func (*FileAppendTransaction) SetMaxBackoff ¶
func (transaction *FileAppendTransaction) SetMaxBackoff(max time.Duration) *FileAppendTransaction
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 (*FileAppendTransaction) SetMaxChunkSize ¶
func (transaction *FileAppendTransaction) SetMaxChunkSize(size int) *FileAppendTransaction
SetMaxChunkSize Sets maximum amount of chunks append function can create
func (*FileAppendTransaction) SetMaxChunks ¶
func (transaction *FileAppendTransaction) SetMaxChunks(size uint64) *FileAppendTransaction
SetMaxChunks sets the maximum number of chunks that can be created
func (*FileAppendTransaction) SetMaxRetry ¶
func (transaction *FileAppendTransaction) SetMaxRetry(count int) *FileAppendTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileAppendTransaction) SetMaxTransactionFee ¶
func (transaction *FileAppendTransaction) SetMaxTransactionFee(fee Hbar) *FileAppendTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileAppendTransaction) SetMinBackoff ¶
func (transaction *FileAppendTransaction) SetMinBackoff(min time.Duration) *FileAppendTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileAppendTransaction) SetNodeAccountIDs ¶
func (transaction *FileAppendTransaction) SetNodeAccountIDs(nodeAccountIDs []AccountID) *FileAppendTransaction
SetNodeAccountID sets the _Node AccountID for this FileAppendTransaction.
func (*FileAppendTransaction) SetRegenerateTransactionID ¶
func (transaction *FileAppendTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileAppendTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*FileAppendTransaction) SetTransactionID ¶
func (transaction *FileAppendTransaction) SetTransactionID(transactionID TransactionID) *FileAppendTransaction
SetTransactionID sets the TransactionID for this FileAppendTransaction.
func (*FileAppendTransaction) SetTransactionMemo ¶
func (transaction *FileAppendTransaction) SetTransactionMemo(memo string) *FileAppendTransaction
SetTransactionMemo sets the memo for this FileAppendTransaction.
func (*FileAppendTransaction) SetTransactionValidDuration ¶
func (transaction *FileAppendTransaction) SetTransactionValidDuration(duration time.Duration) *FileAppendTransaction
SetTransactionValidDuration sets the valid duration for this FileAppendTransaction.
func (*FileAppendTransaction) Sign ¶
func (transaction *FileAppendTransaction) Sign( privateKey PrivateKey, ) *FileAppendTransaction
Sign uses the provided privateKey to sign the transaction.
func (*FileAppendTransaction) SignWith ¶
func (transaction *FileAppendTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *FileAppendTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*FileAppendTransaction) SignWithOperator ¶
func (transaction *FileAppendTransaction) SignWithOperator( client *Client, ) (*FileAppendTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 (query *FileContentsQuery) Execute(client *Client) ([]byte, error)
Execute executes the Query with the provided client
func (*FileContentsQuery) GetCost ¶
func (query *FileContentsQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*FileContentsQuery) GetFileID ¶
func (query *FileContentsQuery) GetFileID() FileID
GetFileID returns the FileID of the file whose contents are requested.
func (*FileContentsQuery) GetMaxBackoff ¶
func (query *FileContentsQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FileContentsQuery) GetMinBackoff ¶
func (query *FileContentsQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FileContentsQuery) SetFileID ¶
func (query *FileContentsQuery) SetFileID(fileID FileID) *FileContentsQuery
SetFileID sets the FileID of the file whose contents are requested.
func (*FileContentsQuery) SetGrpcDeadline ¶
func (query *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 (query *FileContentsQuery) SetLogLevel(level LogLevel) *FileContentsQuery
func (*FileContentsQuery) SetMaxBackoff ¶
func (query *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 (query *FileContentsQuery) SetMaxQueryPayment(maxPayment Hbar) *FileContentsQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*FileContentsQuery) SetMaxRetry ¶
func (query *FileContentsQuery) SetMaxRetry(count int) *FileContentsQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileContentsQuery) SetMinBackoff ¶
func (query *FileContentsQuery) SetMinBackoff(min time.Duration) *FileContentsQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileContentsQuery) SetNodeAccountIDs ¶
func (query *FileContentsQuery) SetNodeAccountIDs(accountID []AccountID) *FileContentsQuery
SetNodeAccountIDs sets the _Node AccountID for this FileContentsQuery.
func (*FileContentsQuery) SetPaymentTransactionID ¶
func (query *FileContentsQuery) SetPaymentTransactionID(transactionID TransactionID) *FileContentsQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*FileContentsQuery) SetQueryPayment ¶
func (query *FileContentsQuery) SetQueryPayment(paymentAmount Hbar) *FileContentsQuery
SetQueryPayment sets the payment amount for this Query.
type FileCreateTransaction ¶
type FileCreateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *FileCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileCreateTransaction
AddSignature adds a signature to the Transaction.
func (*FileCreateTransaction) Execute ¶
func (transaction *FileCreateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*FileCreateTransaction) Freeze ¶
func (transaction *FileCreateTransaction) Freeze() (*FileCreateTransaction, error)
func (*FileCreateTransaction) FreezeWith ¶
func (transaction *FileCreateTransaction) FreezeWith(client *Client) (*FileCreateTransaction, error)
func (*FileCreateTransaction) GetContents ¶
func (transaction *FileCreateTransaction) GetContents() []byte
GetContents returns the bytes that are the contents of the file (which can be empty).
func (*FileCreateTransaction) GetExpirationTime ¶
func (transaction *FileCreateTransaction) GetExpirationTime() time.Time
func (*FileCreateTransaction) GetKeys ¶
func (transaction *FileCreateTransaction) GetKeys() KeyList
func (*FileCreateTransaction) GetMaxBackoff ¶
func (transaction *FileCreateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FileCreateTransaction) GetMaxTransactionFee ¶
func (transaction *FileCreateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileCreateTransaction) GetMemo ¶
func (transaction *FileCreateTransaction) GetMemo() string
GetMemo returns the memo associated with the file (UTF-8 encoding max 100 bytes)
func (*FileCreateTransaction) GetMinBackoff ¶
func (transaction *FileCreateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FileCreateTransaction) GetRegenerateTransactionID ¶
func (transaction *FileCreateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*FileCreateTransaction) GetTransactionID ¶
func (transaction *FileCreateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this FileCreateTransaction.
func (*FileCreateTransaction) GetTransactionMemo ¶
func (transaction *FileCreateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this FileCreateTransaction.
func (*FileCreateTransaction) GetTransactionValidDuration ¶
func (transaction *FileCreateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*FileCreateTransaction) IsFrozen ¶
func (transaction *FileCreateTransaction) IsFrozen() bool
func (*FileCreateTransaction) Schedule ¶
func (transaction *FileCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*FileCreateTransaction) SetContents ¶
func (transaction *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 (transaction *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) SetGrpcDeadline ¶
func (transaction *FileCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *FileCreateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*FileCreateTransaction) SetKeys ¶
func (transaction *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) SetLogLevel ¶
func (transaction *FileCreateTransaction) SetLogLevel(level LogLevel) *FileCreateTransaction
func (*FileCreateTransaction) SetMaxBackoff ¶
func (transaction *FileCreateTransaction) SetMaxBackoff(max time.Duration) *FileCreateTransaction
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 (*FileCreateTransaction) SetMaxRetry ¶
func (transaction *FileCreateTransaction) SetMaxRetry(count int) *FileCreateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileCreateTransaction) SetMaxTransactionFee ¶
func (transaction *FileCreateTransaction) SetMaxTransactionFee(fee Hbar) *FileCreateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileCreateTransaction) SetMemo ¶
func (transaction *FileCreateTransaction) SetMemo(memo string) *FileCreateTransaction
SetMemo Sets the memo associated with the file (UTF-8 encoding max 100 bytes)
func (*FileCreateTransaction) SetMinBackoff ¶
func (transaction *FileCreateTransaction) SetMinBackoff(min time.Duration) *FileCreateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileCreateTransaction) SetNodeAccountIDs ¶
func (transaction *FileCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileCreateTransaction
SetNodeAccountID sets the _Node AccountID for this FileCreateTransaction.
func (*FileCreateTransaction) SetRegenerateTransactionID ¶
func (transaction *FileCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileCreateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*FileCreateTransaction) SetTransactionID ¶
func (transaction *FileCreateTransaction) SetTransactionID(transactionID TransactionID) *FileCreateTransaction
SetTransactionID sets the TransactionID for this FileCreateTransaction.
func (*FileCreateTransaction) SetTransactionMemo ¶
func (transaction *FileCreateTransaction) SetTransactionMemo(memo string) *FileCreateTransaction
SetTransactionMemo sets the memo for this FileCreateTransaction.
func (*FileCreateTransaction) SetTransactionValidDuration ¶
func (transaction *FileCreateTransaction) SetTransactionValidDuration(duration time.Duration) *FileCreateTransaction
SetTransactionValidDuration sets the valid duration for this FileCreateTransaction.
func (*FileCreateTransaction) Sign ¶
func (transaction *FileCreateTransaction) Sign( privateKey PrivateKey, ) *FileCreateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*FileCreateTransaction) SignWith ¶
func (transaction *FileCreateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *FileCreateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*FileCreateTransaction) SignWithOperator ¶
func (transaction *FileCreateTransaction) SignWithOperator( client *Client, ) (*FileCreateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type FileDeleteTransaction ¶
type FileDeleteTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *FileDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileDeleteTransaction
AddSignature adds a signature to the Transaction.
func (*FileDeleteTransaction) Execute ¶
func (transaction *FileDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*FileDeleteTransaction) Freeze ¶
func (transaction *FileDeleteTransaction) Freeze() (*FileDeleteTransaction, error)
func (*FileDeleteTransaction) FreezeWith ¶
func (transaction *FileDeleteTransaction) FreezeWith(client *Client) (*FileDeleteTransaction, error)
func (*FileDeleteTransaction) GetFileID ¶
func (transaction *FileDeleteTransaction) GetFileID() FileID
GetFileID returns the FileID of the file to be deleted
func (*FileDeleteTransaction) GetMaxBackoff ¶
func (transaction *FileDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FileDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *FileDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileDeleteTransaction) GetMinBackoff ¶
func (transaction *FileDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FileDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *FileDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*FileDeleteTransaction) GetTransactionID ¶
func (transaction *FileDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this FileDeleteTransaction.
func (*FileDeleteTransaction) GetTransactionMemo ¶
func (transaction *FileDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this FileDeleteTransaction.
func (*FileDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *FileDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*FileDeleteTransaction) IsFrozen ¶
func (transaction *FileDeleteTransaction) IsFrozen() bool
func (*FileDeleteTransaction) Schedule ¶
func (transaction *FileDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*FileDeleteTransaction) SetFileID ¶
func (transaction *FileDeleteTransaction) SetFileID(fileID FileID) *FileDeleteTransaction
SetFileID Sets the FileID of the file to be deleted
func (*FileDeleteTransaction) SetGrpcDeadline ¶
func (transaction *FileDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *FileDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*FileDeleteTransaction) SetLogLevel ¶
func (transaction *FileDeleteTransaction) SetLogLevel(level LogLevel) *FileDeleteTransaction
func (*FileDeleteTransaction) SetMaxBackoff ¶
func (transaction *FileDeleteTransaction) SetMaxBackoff(max time.Duration) *FileDeleteTransaction
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 (*FileDeleteTransaction) SetMaxRetry ¶
func (transaction *FileDeleteTransaction) SetMaxRetry(count int) *FileDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *FileDeleteTransaction) SetMaxTransactionFee(fee Hbar) *FileDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileDeleteTransaction) SetMinBackoff ¶
func (transaction *FileDeleteTransaction) SetMinBackoff(min time.Duration) *FileDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *FileDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this FileDeleteTransaction.
func (*FileDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *FileDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*FileDeleteTransaction) SetTransactionID ¶
func (transaction *FileDeleteTransaction) SetTransactionID(transactionID TransactionID) *FileDeleteTransaction
SetTransactionID sets the TransactionID for this FileDeleteTransaction.
func (*FileDeleteTransaction) SetTransactionMemo ¶
func (transaction *FileDeleteTransaction) SetTransactionMemo(memo string) *FileDeleteTransaction
SetTransactionMemo sets the memo for this FileDeleteTransaction.
func (*FileDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *FileDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *FileDeleteTransaction
SetTransactionValidDuration sets the valid duration for this FileDeleteTransaction.
func (*FileDeleteTransaction) Sign ¶
func (transaction *FileDeleteTransaction) Sign( privateKey PrivateKey, ) *FileDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*FileDeleteTransaction) SignWith ¶
func (transaction *FileDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *FileDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*FileDeleteTransaction) SignWithOperator ¶
func (transaction *FileDeleteTransaction) SignWithOperator( client *Client, ) (*FileDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 FileIDFromSolidityAddress ¶
FileIDFromSolidityAddress returns a FileID parsed from the given solidity address.
func FileIDFromString ¶
FileIDFromString returns a FileID parsed from the given string. A malformatted string will cause this to return an error instead.
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.
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 Hedera
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 (query *FileInfoQuery) Execute(client *Client) (FileInfo, error)
Execute executes the Query with the provided client
func (*FileInfoQuery) GetCost ¶
func (query *FileInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*FileInfoQuery) GetFileID ¶
func (query *FileInfoQuery) GetFileID() FileID
GetFileID returns the FileID of the file whose info is requested.
func (*FileInfoQuery) GetMaxBackoff ¶
func (query *FileInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FileInfoQuery) GetMinBackoff ¶
func (query *FileInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FileInfoQuery) GetNodeAccountIDs ¶
func (query *FileInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountIDs returns the _Node AccountID for this FileInfoQuery.
func (*FileInfoQuery) SetFileID ¶
func (query *FileInfoQuery) SetFileID(fileID FileID) *FileInfoQuery
SetFileID sets the FileID of the file whose info is requested.
func (*FileInfoQuery) SetGrpcDeadline ¶
func (query *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 (query *FileInfoQuery) SetLogLevel(level LogLevel) *FileInfoQuery
func (*FileInfoQuery) SetMaxBackoff ¶
func (query *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 (query *FileInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *FileInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*FileInfoQuery) SetMaxRetry ¶
func (query *FileInfoQuery) SetMaxRetry(count int) *FileInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileInfoQuery) SetMinBackoff ¶
func (query *FileInfoQuery) SetMinBackoff(min time.Duration) *FileInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileInfoQuery) SetNodeAccountIDs ¶
func (query *FileInfoQuery) SetNodeAccountIDs(accountID []AccountID) *FileInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this FileInfoQuery.
func (*FileInfoQuery) SetPaymentTransactionID ¶
func (query *FileInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *FileInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*FileInfoQuery) SetQueryPayment ¶
func (query *FileInfoQuery) SetQueryPayment(paymentAmount Hbar) *FileInfoQuery
SetQueryPayment sets the payment amount for this Query.
type FileUpdateTransaction ¶
type FileUpdateTransaction struct { Transaction // 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. 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 (*FileUpdateTransaction) AddSignature ¶
func (transaction *FileUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileUpdateTransaction
AddSignature adds a signature to the Transaction.
func (*FileUpdateTransaction) Execute ¶
func (transaction *FileUpdateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*FileUpdateTransaction) Freeze ¶
func (transaction *FileUpdateTransaction) Freeze() (*FileUpdateTransaction, error)
func (*FileUpdateTransaction) FreezeWith ¶
func (transaction *FileUpdateTransaction) FreezeWith(client *Client) (*FileUpdateTransaction, error)
func (*FileUpdateTransaction) GeFileMemo ¶
func (transaction *FileUpdateTransaction) GeFileMemo() string
GeFileMemo Deprecated: use GetFileMemo()
func (*FileUpdateTransaction) GetContents ¶
func (transaction *FileUpdateTransaction) GetContents() []byte
GetContents returns the new contents that should overwrite the file's current contents
func (*FileUpdateTransaction) GetExpirationTime ¶
func (transaction *FileUpdateTransaction) GetExpirationTime() time.Time
GetExpirationTime returns the new expiry time
func (*FileUpdateTransaction) GetFileID ¶
func (transaction *FileUpdateTransaction) GetFileID() FileID
GetFileID returns the FileID to be updated
func (*FileUpdateTransaction) GetFileMemo ¶
func (transaction *FileUpdateTransaction) GetFileMemo() string
func (*FileUpdateTransaction) GetKeys ¶
func (transaction *FileUpdateTransaction) GetKeys() KeyList
func (*FileUpdateTransaction) GetMaxBackoff ¶
func (transaction *FileUpdateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FileUpdateTransaction) GetMaxTransactionFee ¶
func (transaction *FileUpdateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileUpdateTransaction) GetMinBackoff ¶
func (transaction *FileUpdateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FileUpdateTransaction) GetRegenerateTransactionID ¶
func (transaction *FileUpdateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*FileUpdateTransaction) GetTransactionID ¶
func (transaction *FileUpdateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this FileUpdateTransaction.
func (*FileUpdateTransaction) GetTransactionMemo ¶
func (transaction *FileUpdateTransaction) GetTransactionMemo() string
func (*FileUpdateTransaction) GetTransactionValidDuration ¶
func (transaction *FileUpdateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*FileUpdateTransaction) IsFrozen ¶
func (transaction *FileUpdateTransaction) IsFrozen() bool
func (*FileUpdateTransaction) Schedule ¶
func (transaction *FileUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*FileUpdateTransaction) SetContents ¶
func (transaction *FileUpdateTransaction) SetContents(contents []byte) *FileUpdateTransaction
SetContents Sets the new contents that should overwrite the file's current contents
func (*FileUpdateTransaction) SetExpirationTime ¶
func (transaction *FileUpdateTransaction) SetExpirationTime(expiration time.Time) *FileUpdateTransaction
SetExpirationTime Sets the new expiry time
func (*FileUpdateTransaction) SetFileID ¶
func (transaction *FileUpdateTransaction) SetFileID(fileID FileID) *FileUpdateTransaction
SetFileID Sets the FileID to be updated
func (*FileUpdateTransaction) SetFileMemo ¶
func (transaction *FileUpdateTransaction) SetFileMemo(memo string) *FileUpdateTransaction
SetFileMemo Sets the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
func (*FileUpdateTransaction) SetGrpcDeadline ¶
func (transaction *FileUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *FileUpdateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*FileUpdateTransaction) SetKeys ¶
func (transaction *FileUpdateTransaction) SetKeys(keys ...Key) *FileUpdateTransaction
SetKeys Sets the new list of keys that can modify or delete the file
func (*FileUpdateTransaction) SetLogLevel ¶
func (transaction *FileUpdateTransaction) SetLogLevel(level LogLevel) *FileUpdateTransaction
func (*FileUpdateTransaction) SetMaxBackoff ¶
func (transaction *FileUpdateTransaction) SetMaxBackoff(max time.Duration) *FileUpdateTransaction
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 (*FileUpdateTransaction) SetMaxRetry ¶
func (transaction *FileUpdateTransaction) SetMaxRetry(count int) *FileUpdateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*FileUpdateTransaction) SetMaxTransactionFee ¶
func (transaction *FileUpdateTransaction) SetMaxTransactionFee(fee Hbar) *FileUpdateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*FileUpdateTransaction) SetMinBackoff ¶
func (transaction *FileUpdateTransaction) SetMinBackoff(min time.Duration) *FileUpdateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FileUpdateTransaction) SetNodeAccountIDs ¶
func (transaction *FileUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileUpdateTransaction
SetNodeAccountID sets the _Node AccountID for this FileUpdateTransaction.
func (*FileUpdateTransaction) SetRegenerateTransactionID ¶
func (transaction *FileUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FileUpdateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*FileUpdateTransaction) SetTransactionID ¶
func (transaction *FileUpdateTransaction) SetTransactionID(transactionID TransactionID) *FileUpdateTransaction
SetTransactionID sets the TransactionID for this FileUpdateTransaction.
func (*FileUpdateTransaction) SetTransactionMemo ¶
func (transaction *FileUpdateTransaction) SetTransactionMemo(memo string) *FileUpdateTransaction
SetTransactionMemo sets the memo for this FileUpdateTransaction.
func (*FileUpdateTransaction) SetTransactionValidDuration ¶
func (transaction *FileUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *FileUpdateTransaction
SetTransactionValidDuration sets the valid duration for this FileUpdateTransaction.
func (*FileUpdateTransaction) Sign ¶
func (transaction *FileUpdateTransaction) Sign( privateKey PrivateKey, ) *FileUpdateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*FileUpdateTransaction) SignWith ¶
func (transaction *FileUpdateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *FileUpdateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*FileUpdateTransaction) SignWithOperator ¶
func (transaction *FileUpdateTransaction) SignWithOperator( client *Client, ) (*FileUpdateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type FreezeTransaction ¶
type FreezeTransaction struct { Transaction // contains filtered or unexported fields }
func NewFreezeTransaction ¶
func NewFreezeTransaction() *FreezeTransaction
func (*FreezeTransaction) AddSignature ¶
func (transaction *FreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *FreezeTransaction
AddSignature adds a signature to the Transaction.
func (*FreezeTransaction) Execute ¶
func (transaction *FreezeTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*FreezeTransaction) Freeze ¶
func (transaction *FreezeTransaction) Freeze() (*FreezeTransaction, error)
func (*FreezeTransaction) FreezeWith ¶
func (transaction *FreezeTransaction) FreezeWith(client *Client) (*FreezeTransaction, error)
func (*FreezeTransaction) GetEndTime ¶
func (transaction *FreezeTransaction) GetEndTime() time.Time
Deprecated
func (*FreezeTransaction) GetFileHash ¶
func (transaction *FreezeTransaction) GetFileHash() []byte
func (*FreezeTransaction) GetFileID ¶
func (transaction *FreezeTransaction) GetFileID() *FileID
func (*FreezeTransaction) GetFreezeType ¶
func (transaction *FreezeTransaction) GetFreezeType() FreezeType
func (*FreezeTransaction) GetMaxBackoff ¶
func (transaction *FreezeTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*FreezeTransaction) GetMaxTransactionFee ¶
func (transaction *FreezeTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*FreezeTransaction) GetMinBackoff ¶
func (transaction *FreezeTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*FreezeTransaction) GetRegenerateTransactionID ¶
func (transaction *FreezeTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*FreezeTransaction) GetStartTime ¶
func (transaction *FreezeTransaction) GetStartTime() time.Time
func (*FreezeTransaction) GetTransactionID ¶
func (transaction *FreezeTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this FreezeTransaction.
func (*FreezeTransaction) GetTransactionMemo ¶
func (transaction *FreezeTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this FreezeTransaction.
func (*FreezeTransaction) GetTransactionValidDuration ¶
func (transaction *FreezeTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*FreezeTransaction) IsFrozen ¶
func (transaction *FreezeTransaction) IsFrozen() bool
func (*FreezeTransaction) Schedule ¶
func (transaction *FreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*FreezeTransaction) SetEndTime ¶
func (transaction *FreezeTransaction) SetEndTime(endTime time.Time) *FreezeTransaction
Deprecated
func (*FreezeTransaction) SetFileHash ¶
func (transaction *FreezeTransaction) SetFileHash(hash []byte) *FreezeTransaction
func (*FreezeTransaction) SetFileID ¶
func (transaction *FreezeTransaction) SetFileID(id FileID) *FreezeTransaction
func (*FreezeTransaction) SetFreezeType ¶
func (transaction *FreezeTransaction) SetFreezeType(freezeType FreezeType) *FreezeTransaction
func (*FreezeTransaction) SetLogLevel ¶
func (transaction *FreezeTransaction) SetLogLevel(level LogLevel) *FreezeTransaction
func (*FreezeTransaction) SetMaxBackoff ¶
func (transaction *FreezeTransaction) SetMaxBackoff(max time.Duration) *FreezeTransaction
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 (*FreezeTransaction) SetMaxRetry ¶
func (transaction *FreezeTransaction) SetMaxRetry(count int) *FreezeTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*FreezeTransaction) SetMaxTransactionFee ¶
func (transaction *FreezeTransaction) SetMaxTransactionFee(fee Hbar) *FreezeTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*FreezeTransaction) SetMinBackoff ¶
func (transaction *FreezeTransaction) SetMinBackoff(min time.Duration) *FreezeTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*FreezeTransaction) SetNodeAccountIDs ¶
func (transaction *FreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *FreezeTransaction
SetNodeAccountID sets the _Node AccountID for this FreezeTransaction.
func (*FreezeTransaction) SetRegenerateTransactionID ¶
func (transaction *FreezeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *FreezeTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*FreezeTransaction) SetStartTime ¶
func (transaction *FreezeTransaction) SetStartTime(startTime time.Time) *FreezeTransaction
func (*FreezeTransaction) SetTransactionID ¶
func (transaction *FreezeTransaction) SetTransactionID(transactionID TransactionID) *FreezeTransaction
SetTransactionID sets the TransactionID for this FreezeTransaction.
func (*FreezeTransaction) SetTransactionMemo ¶
func (transaction *FreezeTransaction) SetTransactionMemo(memo string) *FreezeTransaction
SetTransactionMemo sets the memo for this FreezeTransaction.
func (*FreezeTransaction) SetTransactionValidDuration ¶
func (transaction *FreezeTransaction) SetTransactionValidDuration(duration time.Duration) *FreezeTransaction
SetTransactionValidDuration sets the valid duration for this FreezeTransaction.
func (*FreezeTransaction) Sign ¶
func (transaction *FreezeTransaction) Sign( privateKey PrivateKey, ) *FreezeTransaction
Sign uses the provided privateKey to sign the transaction.
func (*FreezeTransaction) SignWith ¶
func (transaction *FreezeTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *FreezeTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*FreezeTransaction) SignWithOperator ¶
func (transaction *FreezeTransaction) SignWithOperator( client *Client, ) (*FreezeTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 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
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 ITransaction ¶
type ITransaction interface {
// contains filtered or unexported methods
}
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
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 Hedera network
func LiveHashFromBytes ¶
LiveHashFromBytes returns a LiveHash object from a raw byte array
type LiveHashAddTransaction ¶
type LiveHashAddTransaction struct { Transaction // contains filtered or unexported fields }
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 ¶
func NewLiveHashAddTransaction() *LiveHashAddTransaction
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.
func (*LiveHashAddTransaction) AddSignature ¶
func (transaction *LiveHashAddTransaction) AddSignature(publicKey PublicKey, signature []byte) *LiveHashAddTransaction
AddSignature adds a signature to the Transaction.
func (*LiveHashAddTransaction) Execute ¶
func (transaction *LiveHashAddTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*LiveHashAddTransaction) Freeze ¶
func (transaction *LiveHashAddTransaction) Freeze() (*LiveHashAddTransaction, error)
func (*LiveHashAddTransaction) FreezeWith ¶
func (transaction *LiveHashAddTransaction) FreezeWith(client *Client) (*LiveHashAddTransaction, error)
func (*LiveHashAddTransaction) GetAccountID ¶
func (transaction *LiveHashAddTransaction) GetAccountID() AccountID
GetAccountID returns the account to which the livehash is attached
func (*LiveHashAddTransaction) GetDuration ¶
func (transaction *LiveHashAddTransaction) GetDuration() time.Duration
GetDuration returns the duration for which the livehash will remain valid
func (*LiveHashAddTransaction) GetHash ¶
func (transaction *LiveHashAddTransaction) GetHash() []byte
func (*LiveHashAddTransaction) GetKeys ¶
func (transaction *LiveHashAddTransaction) GetKeys() KeyList
func (*LiveHashAddTransaction) GetMaxBackoff ¶
func (transaction *LiveHashAddTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*LiveHashAddTransaction) GetMaxTransactionFee ¶
func (transaction *LiveHashAddTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*LiveHashAddTransaction) GetMinBackoff ¶
func (transaction *LiveHashAddTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*LiveHashAddTransaction) GetRegenerateTransactionID ¶
func (transaction *LiveHashAddTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*LiveHashAddTransaction) GetTransactionID ¶
func (transaction *LiveHashAddTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this LiveHashAddTransaction.
func (*LiveHashAddTransaction) GetTransactionMemo ¶
func (transaction *LiveHashAddTransaction) GetTransactionMemo() string
func (*LiveHashAddTransaction) GetTransactionValidDuration ¶
func (transaction *LiveHashAddTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration sets the duration that this transaction is valid for. This is defaulted by the SDK to 120 seconds (or two minutes).
func (*LiveHashAddTransaction) IsFrozen ¶
func (transaction *LiveHashAddTransaction) IsFrozen() bool
func (*LiveHashAddTransaction) SetAccountID ¶
func (transaction *LiveHashAddTransaction) SetAccountID(accountID AccountID) *LiveHashAddTransaction
SetAccountID Sets the account to which the livehash is attached
func (*LiveHashAddTransaction) SetDuration ¶
func (transaction *LiveHashAddTransaction) SetDuration(duration time.Duration) *LiveHashAddTransaction
SetDuration Set the duration for which the livehash will remain valid
func (*LiveHashAddTransaction) SetGrpcDeadline ¶
func (transaction *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 (transaction *LiveHashAddTransaction) SetHash(hash []byte) *LiveHashAddTransaction
SetHash Sets the SHA-384 hash of a credential or certificate
func (*LiveHashAddTransaction) SetKeys ¶
func (transaction *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.
func (*LiveHashAddTransaction) SetLogLevel ¶
func (transaction *LiveHashAddTransaction) SetLogLevel(level LogLevel) *LiveHashAddTransaction
func (*LiveHashAddTransaction) SetMaxBackoff ¶
func (transaction *LiveHashAddTransaction) SetMaxBackoff(max time.Duration) *LiveHashAddTransaction
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 (*LiveHashAddTransaction) SetMaxRetry ¶
func (transaction *LiveHashAddTransaction) SetMaxRetry(count int) *LiveHashAddTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*LiveHashAddTransaction) SetMaxTransactionFee ¶
func (transaction *LiveHashAddTransaction) SetMaxTransactionFee(fee Hbar) *LiveHashAddTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*LiveHashAddTransaction) SetMinBackoff ¶
func (transaction *LiveHashAddTransaction) SetMinBackoff(min time.Duration) *LiveHashAddTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*LiveHashAddTransaction) SetNodeAccountIDs ¶
func (transaction *LiveHashAddTransaction) SetNodeAccountIDs(nodeID []AccountID) *LiveHashAddTransaction
SetNodeAccountID sets the _Node AccountID for this LiveHashAddTransaction.
func (*LiveHashAddTransaction) SetRegenerateTransactionID ¶
func (transaction *LiveHashAddTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *LiveHashAddTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*LiveHashAddTransaction) SetTransactionID ¶
func (transaction *LiveHashAddTransaction) SetTransactionID(transactionID TransactionID) *LiveHashAddTransaction
SetTransactionID sets the TransactionID for this LiveHashAddTransaction.
func (*LiveHashAddTransaction) SetTransactionMemo ¶
func (transaction *LiveHashAddTransaction) SetTransactionMemo(memo string) *LiveHashAddTransaction
SetTransactionMemo sets the memo for this LiveHashAddTransaction.
func (*LiveHashAddTransaction) SetTransactionValidDuration ¶
func (transaction *LiveHashAddTransaction) SetTransactionValidDuration(duration time.Duration) *LiveHashAddTransaction
SetTransactionValidDuration sets the valid duration for this LiveHashAddTransaction.
func (*LiveHashAddTransaction) Sign ¶
func (transaction *LiveHashAddTransaction) Sign( privateKey PrivateKey, ) *LiveHashAddTransaction
Sign uses the provided privateKey to sign the transaction.
func (*LiveHashAddTransaction) SignWith ¶
func (transaction *LiveHashAddTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *LiveHashAddTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*LiveHashAddTransaction) SignWithOperator ¶
func (transaction *LiveHashAddTransaction) SignWithOperator( client *Client, ) (*LiveHashAddTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type LiveHashDeleteTransaction ¶
type LiveHashDeleteTransaction struct { Transaction // contains filtered or unexported fields }
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 ¶
func NewLiveHashDeleteTransaction() *LiveHashDeleteTransaction
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.
func (*LiveHashDeleteTransaction) AddSignature ¶
func (transaction *LiveHashDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *LiveHashDeleteTransaction
AddSignature adds a signature to the Transaction.
func (*LiveHashDeleteTransaction) Execute ¶
func (transaction *LiveHashDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*LiveHashDeleteTransaction) Freeze ¶
func (transaction *LiveHashDeleteTransaction) Freeze() (*LiveHashDeleteTransaction, error)
func (*LiveHashDeleteTransaction) FreezeWith ¶
func (transaction *LiveHashDeleteTransaction) FreezeWith(client *Client) (*LiveHashDeleteTransaction, error)
func (*LiveHashDeleteTransaction) GetAccountID ¶
func (transaction *LiveHashDeleteTransaction) GetAccountID() AccountID
GetAccountID returns the account owning the livehash
func (*LiveHashDeleteTransaction) GetHash ¶
func (transaction *LiveHashDeleteTransaction) GetHash() []byte
GetHash returns the SHA-384 livehash to delete from the account
func (*LiveHashDeleteTransaction) GetMaxBackoff ¶
func (transaction *LiveHashDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*LiveHashDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *LiveHashDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*LiveHashDeleteTransaction) GetMinBackoff ¶
func (transaction *LiveHashDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*LiveHashDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *LiveHashDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*LiveHashDeleteTransaction) GetTransactionID ¶
func (transaction *LiveHashDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this LiveHashDeleteTransaction.
func (*LiveHashDeleteTransaction) GetTransactionMemo ¶
func (transaction *LiveHashDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this LiveHashDeleteTransaction.
func (*LiveHashDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *LiveHashDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*LiveHashDeleteTransaction) IsFrozen ¶
func (transaction *LiveHashDeleteTransaction) IsFrozen() bool
func (*LiveHashDeleteTransaction) SetAccountID ¶
func (transaction *LiveHashDeleteTransaction) SetAccountID(accountID AccountID) *LiveHashDeleteTransaction
SetAccountID Sets the account owning the livehash
func (*LiveHashDeleteTransaction) SetGrpcDeadline ¶
func (transaction *LiveHashDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*LiveHashDeleteTransaction) SetHash ¶
func (transaction *LiveHashDeleteTransaction) SetHash(hash []byte) *LiveHashDeleteTransaction
SetHash Set the SHA-384 livehash to delete from the account
func (*LiveHashDeleteTransaction) SetLogLevel ¶
func (transaction *LiveHashDeleteTransaction) SetLogLevel(level LogLevel) *LiveHashDeleteTransaction
func (*LiveHashDeleteTransaction) SetMaxBackoff ¶
func (transaction *LiveHashDeleteTransaction) SetMaxBackoff(max time.Duration) *LiveHashDeleteTransaction
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 (*LiveHashDeleteTransaction) SetMaxRetry ¶
func (transaction *LiveHashDeleteTransaction) SetMaxRetry(count int) *LiveHashDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*LiveHashDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *LiveHashDeleteTransaction) SetMaxTransactionFee(fee Hbar) *LiveHashDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*LiveHashDeleteTransaction) SetMinBackoff ¶
func (transaction *LiveHashDeleteTransaction) SetMinBackoff(min time.Duration) *LiveHashDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*LiveHashDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *LiveHashDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *LiveHashDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this LiveHashDeleteTransaction.
func (*LiveHashDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *LiveHashDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *LiveHashDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*LiveHashDeleteTransaction) SetTransactionID ¶
func (transaction *LiveHashDeleteTransaction) SetTransactionID(transactionID TransactionID) *LiveHashDeleteTransaction
SetTransactionID sets the TransactionID for this LiveHashDeleteTransaction.
func (*LiveHashDeleteTransaction) SetTransactionMemo ¶
func (transaction *LiveHashDeleteTransaction) SetTransactionMemo(memo string) *LiveHashDeleteTransaction
SetTransactionMemo sets the memo for this LiveHashDeleteTransaction.
func (*LiveHashDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *LiveHashDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *LiveHashDeleteTransaction
SetTransactionValidDuration sets the valid duration for this LiveHashDeleteTransaction.
func (*LiveHashDeleteTransaction) Sign ¶
func (transaction *LiveHashDeleteTransaction) Sign( privateKey PrivateKey, ) *LiveHashDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*LiveHashDeleteTransaction) SignWith ¶
func (transaction *LiveHashDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *LiveHashDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*LiveHashDeleteTransaction) SignWithOperator ¶
func (transaction *LiveHashDeleteTransaction) SignWithOperator( client *Client, ) (*LiveHashDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type LiveHashQuery ¶
type LiveHashQuery struct { Query // contains filtered or unexported fields }
LiveHashQuery Requests a livehash associated to an account.
func NewLiveHashQuery ¶
func NewLiveHashQuery() *LiveHashQuery
NewLiveHashQuery creates a LiveHashQuery that requests a livehash associated to an account.
func (*LiveHashQuery) Execute ¶
func (query *LiveHashQuery) Execute(client *Client) (LiveHash, error)
Execute executes the Query with the provided client
func (*LiveHashQuery) GetAccountID ¶
func (query *LiveHashQuery) GetAccountID() AccountID
GetAccountID returns the AccountID to which the livehash is associated
func (*LiveHashQuery) GetCost ¶
func (query *LiveHashQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*LiveHashQuery) GetGetHash ¶
func (query *LiveHashQuery) GetGetHash() []byte
GetHash returns the SHA-384 data in the livehash
func (*LiveHashQuery) GetMaxBackoff ¶
func (query *LiveHashQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*LiveHashQuery) GetMaxRetry ¶
func (query *LiveHashQuery) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*LiveHashQuery) GetMinBackoff ¶
func (query *LiveHashQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*LiveHashQuery) SetAccountID ¶
func (query *LiveHashQuery) SetAccountID(accountID AccountID) *LiveHashQuery
SetAccountID Sets the AccountID to which the livehash is associated
func (*LiveHashQuery) SetGrpcDeadline ¶
func (query *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 (query *LiveHashQuery) SetHash(hash []byte) *LiveHashQuery
SetHash Sets the SHA-384 data in the livehash
func (*LiveHashQuery) SetLogLevel ¶
func (query *LiveHashQuery) SetLogLevel(level LogLevel) *LiveHashQuery
func (*LiveHashQuery) SetMaxBackoff ¶
func (query *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 (query *LiveHashQuery) SetMaxQueryPayment(maxPayment Hbar) *LiveHashQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*LiveHashQuery) SetMaxRetry ¶
func (query *LiveHashQuery) SetMaxRetry(count int) *LiveHashQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*LiveHashQuery) SetMinBackoff ¶
func (query *LiveHashQuery) SetMinBackoff(min time.Duration) *LiveHashQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*LiveHashQuery) SetNodeAccountIDs ¶
func (query *LiveHashQuery) SetNodeAccountIDs(accountID []AccountID) *LiveHashQuery
SetNodeAccountIDs sets the _Node AccountID for this LiveHashQuery.
func (*LiveHashQuery) SetPaymentTransactionID ¶
func (query *LiveHashQuery) SetPaymentTransactionID(transactionID TransactionID) *LiveHashQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*LiveHashQuery) SetQueryPayment ¶
func (query *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 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
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" )
type NetworkVersionInfo ¶
type NetworkVersionInfo struct { ProtobufVersion SemanticVersion ServicesVersion SemanticVersion }
NetworkVersionInfo is the version info for the Hedera 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 (query *NetworkVersionInfoQuery) Execute(client *Client) (NetworkVersionInfo, error)
Execute executes the Query with the provided client
func (*NetworkVersionInfoQuery) GetCost ¶
func (query *NetworkVersionInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*NetworkVersionInfoQuery) GetMaxBackoff ¶
func (query *NetworkVersionInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*NetworkVersionInfoQuery) GetMinBackoff ¶
func (query *NetworkVersionInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*NetworkVersionInfoQuery) SetGrpcDeadline ¶
func (query *NetworkVersionInfoQuery) SetGrpcDeadline(deadline *time.Duration) *NetworkVersionInfoQuery
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 (query *NetworkVersionInfoQuery) SetLogLevel(level LogLevel) *NetworkVersionInfoQuery
func (*NetworkVersionInfoQuery) SetMaxBackoff ¶
func (query *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 (query *NetworkVersionInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *NetworkVersionInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*NetworkVersionInfoQuery) SetMaxRetry ¶
func (query *NetworkVersionInfoQuery) SetMaxRetry(count int) *NetworkVersionInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*NetworkVersionInfoQuery) SetMinBackoff ¶
func (query *NetworkVersionInfoQuery) SetMinBackoff(min time.Duration) *NetworkVersionInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*NetworkVersionInfoQuery) SetNodeAccountIDs ¶
func (query *NetworkVersionInfoQuery) SetNodeAccountIDs(accountID []AccountID) *NetworkVersionInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this NetworkVersionInfoQuery.
func (*NetworkVersionInfoQuery) SetPaymentTransactionID ¶
func (query *NetworkVersionInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *NetworkVersionInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*NetworkVersionInfoQuery) SetQueryPayment ¶
func (query *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 Hedera 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 Hedera 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 PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(bytes []byte) (PrivateKey, error)
Deprecated the use of raw bytes for a Ed25519 private key is deprecated; use PrivateKeyFromBytesEd25519() 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 ¶
func PrivateKeyFromMnemonic(mnemonic Mnemonic, passPhrase string) (PrivateKey, error)
Deprecated 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.
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)
The use of raw bytes for a Ed25519 private key is deprecated; use PrivateKeyFromStringEd25519() 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()` 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) 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(transaction *Transaction) ([]byte, error)
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 // 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) Execute ¶
func (transaction *PrngTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*PrngTransaction) Freeze ¶
func (transaction *PrngTransaction) Freeze() (*PrngTransaction, error)
func (*PrngTransaction) FreezeWith ¶
func (transaction *PrngTransaction) FreezeWith(client *Client) (*PrngTransaction, error)
func (*PrngTransaction) GetMaxBackoff ¶
func (transaction *PrngTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*PrngTransaction) GetMaxTransactionFee ¶
func (transaction *PrngTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*PrngTransaction) GetMinBackoff ¶
func (transaction *PrngTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*PrngTransaction) GetRange ¶
func (transaction *PrngTransaction) GetRange() uint32
GetRange returns the range of the prng
func (*PrngTransaction) GetRegenerateTransactionID ¶
func (transaction *PrngTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*PrngTransaction) GetTransactionID ¶
func (transaction *PrngTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this PrngTransaction.
func (*PrngTransaction) GetTransactionMemo ¶
func (transaction *PrngTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this PrngTransaction.
func (*PrngTransaction) GetTransactionValidDuration ¶
func (transaction *PrngTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*PrngTransaction) IsFrozen ¶
func (transaction *PrngTransaction) IsFrozen() bool
func (*PrngTransaction) SetGrpcDeadline ¶
func (transaction *PrngTransaction) SetGrpcDeadline(deadline *time.Duration) *PrngTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*PrngTransaction) SetMaxBackoff ¶
func (transaction *PrngTransaction) SetMaxBackoff(max time.Duration) *PrngTransaction
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 (*PrngTransaction) SetMaxRetry ¶
func (transaction *PrngTransaction) SetMaxRetry(count int) *PrngTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*PrngTransaction) SetMaxTransactionFee ¶
func (transaction *PrngTransaction) SetMaxTransactionFee(fee Hbar) *PrngTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*PrngTransaction) SetMinBackoff ¶
func (transaction *PrngTransaction) SetMinBackoff(min time.Duration) *PrngTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*PrngTransaction) SetNodeAccountIDs ¶
func (transaction *PrngTransaction) SetNodeAccountIDs(nodeID []AccountID) *PrngTransaction
SetNodeAccountID sets the _Node AccountID for this PrngTransaction.
func (*PrngTransaction) SetRange ¶
func (transaction *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
func (*PrngTransaction) SetRegenerateTransactionID ¶
func (transaction *PrngTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *PrngTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*PrngTransaction) SetTransactionID ¶
func (transaction *PrngTransaction) SetTransactionID(transactionID TransactionID) *PrngTransaction
SetTransactionID sets the TransactionID for this PrngTransaction.
func (*PrngTransaction) SetTransactionMemo ¶
func (transaction *PrngTransaction) SetTransactionMemo(memo string) *PrngTransaction
SetTransactionMemo sets the memo for this PrngTransaction.
func (*PrngTransaction) SetTransactionValidDuration ¶
func (transaction *PrngTransaction) SetTransactionValidDuration(duration time.Duration) *PrngTransaction
SetTransactionValidDuration sets the valid duration for this PrngTransaction.
func (*PrngTransaction) Sign ¶
func (transaction *PrngTransaction) Sign( privateKey PrivateKey, ) *PrngTransaction
Sign uses the provided privateKey to sign the transaction.
func (*PrngTransaction) SignWith ¶
func (transaction *PrngTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *PrngTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*PrngTransaction) SignWithOperator ¶
func (transaction *PrngTransaction) SignWithOperator( client *Client, ) (*PrngTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 the use of raw bytes for a Ed25519 private key is deprecated; use PublicKeyFromBytesEd25519() instead.
func PublicKeyFromBytesDer ¶
func PublicKeyFromBytesECDSA ¶
func PublicKeyFromString ¶
The use of raw bytes for a Ed25519 public key is deprecated; use PublicKeyFromStringEd25519/ECDSA() instead.
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: Use ToEvmAddress instead`
func (PublicKey) ToEvmAddress ¶
func (PublicKey) VerifyTransaction ¶
func (pk PublicKey) VerifyTransaction(transaction Transaction) 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 (*Query) GetMaxQueryPayment ¶
GetMaxQueryPayment returns the maximum payment allowed for this Query.
func (*Query) GetMaxRetryCount ¶
GetMaxRetryCount returns the max number of errors before execution will fail.
func (*Query) GetNodeAccountIDs ¶
GetNodeAccountID returns the node account ID for this Query.
func (*Query) GetPaymentTransactionID ¶
func (this *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 (*Query) SetMaxQueryPayment ¶
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*Query) SetMaxRetry ¶
SetMaxRetry sets the max number of errors before execution will fail.
func (*Query) SetNodeAccountIDs ¶
SetNodeAccountID sets the node account ID for this Query.
func (*Query) SetPaymentTransactionID ¶
func (this *Query) SetPaymentTransactionID(transactionID TransactionID) *Query
SetPaymentTransactionID assigns the payment transaction id.
func (*Query) SetQueryPayment ¶
SetQueryPayment sets the payment amount for this Query.
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 )
func (RequestType) String ¶
func (requestType RequestType) String() string
String() returns a string representation of the status
type ScheduleCreateTransaction ¶
type ScheduleCreateTransaction struct { Transaction // 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) Execute ¶
func (transaction *ScheduleCreateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ScheduleCreateTransaction) Freeze ¶
func (transaction *ScheduleCreateTransaction) Freeze() (*ScheduleCreateTransaction, error)
func (*ScheduleCreateTransaction) FreezeWith ¶
func (transaction *ScheduleCreateTransaction) FreezeWith(client *Client) (*ScheduleCreateTransaction, error)
func (*ScheduleCreateTransaction) GetAdminKey ¶
func (transaction *ScheduleCreateTransaction) GetAdminKey() *Key
GetAdminKey returns the optional Hedera key which can be used to sign a ScheduleDelete and remove the schedule
func (*ScheduleCreateTransaction) GetExpirationTime ¶
func (transaction *ScheduleCreateTransaction) GetExpirationTime() time.Time
GetExpirationTime returns the optional timestamp for specifying when the transaction should be evaluated for execution and then expire.
func (*ScheduleCreateTransaction) GetMaxBackoff ¶
func (transaction *ScheduleCreateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ScheduleCreateTransaction) GetMaxTransactionFee ¶
func (transaction *ScheduleCreateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ScheduleCreateTransaction) GetMinBackoff ¶
func (transaction *ScheduleCreateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ScheduleCreateTransaction) GetPayerAccountID ¶
func (transaction *ScheduleCreateTransaction) GetPayerAccountID() AccountID
GetPayerAccountID returns the optional id of the account to be charged the service fee for the scheduled transaction
func (*ScheduleCreateTransaction) GetRegenerateTransactionID ¶
func (transaction *ScheduleCreateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ScheduleCreateTransaction) GetScheduleMemo ¶
func (transaction *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) GetTransactionID ¶
func (transaction *ScheduleCreateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ScheduleCreateTransaction.
func (*ScheduleCreateTransaction) GetTransactionMemo ¶
func (transaction *ScheduleCreateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ScheduleCreateTransaction.
func (*ScheduleCreateTransaction) GetTransactionValidDuration ¶
func (transaction *ScheduleCreateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ScheduleCreateTransaction) GetWaitForExpiry ¶
func (transaction *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) IsFrozen ¶
func (transaction *ScheduleCreateTransaction) IsFrozen() bool
func (*ScheduleCreateTransaction) SetAdminKey ¶
func (transaction *ScheduleCreateTransaction) SetAdminKey(key Key) *ScheduleCreateTransaction
SetAdminKey Sets an optional Hedera key which can be used to sign a ScheduleDelete and remove the schedule
func (*ScheduleCreateTransaction) SetExpirationTime ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *ScheduleCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleCreateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ScheduleCreateTransaction) SetLogLevel ¶
func (transaction *ScheduleCreateTransaction) SetLogLevel(level LogLevel) *ScheduleCreateTransaction
func (*ScheduleCreateTransaction) SetMaxBackoff ¶
func (transaction *ScheduleCreateTransaction) SetMaxBackoff(max time.Duration) *ScheduleCreateTransaction
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 (*ScheduleCreateTransaction) SetMaxRetry ¶
func (transaction *ScheduleCreateTransaction) SetMaxRetry(count int) *ScheduleCreateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ScheduleCreateTransaction) SetMaxTransactionFee ¶
func (transaction *ScheduleCreateTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleCreateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ScheduleCreateTransaction) SetMinBackoff ¶
func (transaction *ScheduleCreateTransaction) SetMinBackoff(min time.Duration) *ScheduleCreateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ScheduleCreateTransaction) SetNodeAccountIDs ¶
func (transaction *ScheduleCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleCreateTransaction
SetNodeAccountID sets the _Node AccountID for this ScheduleCreateTransaction.
func (*ScheduleCreateTransaction) SetPayerAccountID ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *ScheduleCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleCreateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ScheduleCreateTransaction) SetScheduleMemo ¶
func (transaction *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 (transaction *ScheduleCreateTransaction) SetScheduledTransaction(tx ITransaction) (*ScheduleCreateTransaction, error)
SetScheduledTransaction Sets the scheduled transaction
func (*ScheduleCreateTransaction) SetTransactionID ¶
func (transaction *ScheduleCreateTransaction) SetTransactionID(transactionID TransactionID) *ScheduleCreateTransaction
SetTransactionID sets the TransactionID for this ScheduleCreateTransaction.
func (*ScheduleCreateTransaction) SetTransactionMemo ¶
func (transaction *ScheduleCreateTransaction) SetTransactionMemo(memo string) *ScheduleCreateTransaction
SetTransactionMemo sets the memo for this ScheduleCreateTransaction.
func (*ScheduleCreateTransaction) SetTransactionValidDuration ¶
func (transaction *ScheduleCreateTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleCreateTransaction
SetTransactionValidDuration sets the valid duration for this ScheduleCreateTransaction.
func (*ScheduleCreateTransaction) SetWaitForExpiry ¶
func (transaction *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.
func (*ScheduleCreateTransaction) Sign ¶
func (transaction *ScheduleCreateTransaction) Sign( privateKey PrivateKey, ) *ScheduleCreateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ScheduleCreateTransaction) SignWith ¶
func (transaction *ScheduleCreateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ScheduleCreateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ScheduleCreateTransaction) SignWithOperator ¶
func (transaction *ScheduleCreateTransaction) SignWithOperator( client *Client, ) (*ScheduleCreateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type ScheduleDeleteTransaction ¶
type ScheduleDeleteTransaction struct { Transaction // 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) Execute ¶
func (transaction *ScheduleDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ScheduleDeleteTransaction) Freeze ¶
func (transaction *ScheduleDeleteTransaction) Freeze() (*ScheduleDeleteTransaction, error)
func (*ScheduleDeleteTransaction) FreezeWith ¶
func (transaction *ScheduleDeleteTransaction) FreezeWith(client *Client) (*ScheduleDeleteTransaction, error)
func (*ScheduleDeleteTransaction) GetMaxBackoff ¶
func (transaction *ScheduleDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ScheduleDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *ScheduleDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ScheduleDeleteTransaction) GetMinBackoff ¶
func (transaction *ScheduleDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ScheduleDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *ScheduleDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ScheduleDeleteTransaction) GetScheduleID ¶
func (transaction *ScheduleDeleteTransaction) GetScheduleID() ScheduleID
func (*ScheduleDeleteTransaction) GetTransactionID ¶
func (transaction *ScheduleDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ScheduleDeleteTransaction.
func (*ScheduleDeleteTransaction) GetTransactionMemo ¶
func (transaction *ScheduleDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ScheduleDeleteTransaction.
func (*ScheduleDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *ScheduleDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ScheduleDeleteTransaction) IsFrozen ¶
func (transaction *ScheduleDeleteTransaction) IsFrozen() bool
func (*ScheduleDeleteTransaction) Schedule ¶
func (transaction *ScheduleDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*ScheduleDeleteTransaction) SetGrpcDeadline ¶
func (transaction *ScheduleDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ScheduleDeleteTransaction) SetLogLevel ¶
func (transaction *ScheduleDeleteTransaction) SetLogLevel(level LogLevel) *ScheduleDeleteTransaction
func (*ScheduleDeleteTransaction) SetMaxBackoff ¶
func (transaction *ScheduleDeleteTransaction) SetMaxBackoff(max time.Duration) *ScheduleDeleteTransaction
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 (*ScheduleDeleteTransaction) SetMaxRetry ¶
func (transaction *ScheduleDeleteTransaction) SetMaxRetry(count int) *ScheduleDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ScheduleDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *ScheduleDeleteTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ScheduleDeleteTransaction) SetMinBackoff ¶
func (transaction *ScheduleDeleteTransaction) SetMinBackoff(min time.Duration) *ScheduleDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ScheduleDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *ScheduleDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this ScheduleDeleteTransaction.
func (*ScheduleDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *ScheduleDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ScheduleDeleteTransaction) SetScheduleID ¶
func (transaction *ScheduleDeleteTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleDeleteTransaction
SetScheduleID Sets the ScheduleID of the scheduled transaction to be deleted
func (*ScheduleDeleteTransaction) SetTransactionID ¶
func (transaction *ScheduleDeleteTransaction) SetTransactionID(transactionID TransactionID) *ScheduleDeleteTransaction
SetTransactionID sets the TransactionID for this ScheduleDeleteTransaction.
func (*ScheduleDeleteTransaction) SetTransactionMemo ¶
func (transaction *ScheduleDeleteTransaction) SetTransactionMemo(memo string) *ScheduleDeleteTransaction
SetTransactionMemo sets the memo for this ScheduleDeleteTransaction.
func (*ScheduleDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *ScheduleDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleDeleteTransaction
SetTransactionValidDuration sets the valid duration for this ScheduleDeleteTransaction.
func (*ScheduleDeleteTransaction) Sign ¶
func (transaction *ScheduleDeleteTransaction) Sign( privateKey PrivateKey, ) *ScheduleDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ScheduleDeleteTransaction) SignWith ¶
func (transaction *ScheduleDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ScheduleDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ScheduleDeleteTransaction) SignWithOperator ¶
func (transaction *ScheduleDeleteTransaction) SignWithOperator( client *Client, ) (*ScheduleDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type ScheduleID ¶
type ScheduleID struct { Shard uint64 Realm uint64 Schedule uint64 // contains filtered or unexported fields }
ScheduleID is the ID for a Hedera 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() (ITransaction, 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 (query *ScheduleInfoQuery) Execute(client *Client) (ScheduleInfo, error)
Execute executes the Query with the provided client
func (*ScheduleInfoQuery) GetCost ¶
func (query *ScheduleInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*ScheduleInfoQuery) GetMaxBackoff ¶
func (query *ScheduleInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ScheduleInfoQuery) GetMinBackoff ¶
func (query *ScheduleInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ScheduleInfoQuery) GetNodeAccountIDs ¶
func (query *ScheduleInfoQuery) GetNodeAccountIDs() []AccountID
GetNodeAccountIDs returns the _Node AccountID for this ScheduleInfoQuery.
func (*ScheduleInfoQuery) GetScheduleID ¶
func (query *ScheduleInfoQuery) GetScheduleID() ScheduleID
GetScheduleID returns the id of the schedule to interrogate
func (*ScheduleInfoQuery) SetGrpcDeadline ¶
func (query *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 (query *ScheduleInfoQuery) SetLogLevel(level LogLevel) *ScheduleInfoQuery
func (*ScheduleInfoQuery) SetMaxBackoff ¶
func (query *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 (query *ScheduleInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ScheduleInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*ScheduleInfoQuery) SetMaxRetry ¶
func (query *ScheduleInfoQuery) SetMaxRetry(count int) *ScheduleInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*ScheduleInfoQuery) SetMinBackoff ¶
func (query *ScheduleInfoQuery) SetMinBackoff(min time.Duration) *ScheduleInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ScheduleInfoQuery) SetNodeAccountIDs ¶
func (query *ScheduleInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ScheduleInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this ScheduleInfoQuery.
func (*ScheduleInfoQuery) SetPaymentTransactionID ¶
func (query *ScheduleInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ScheduleInfoQuery
func (*ScheduleInfoQuery) SetQueryPayment ¶
func (query *ScheduleInfoQuery) SetQueryPayment(paymentAmount Hbar) *ScheduleInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*ScheduleInfoQuery) SetScheduleID ¶
func (query *ScheduleInfoQuery) SetScheduleID(scheduleID ScheduleID) *ScheduleInfoQuery
SetScheduleID Sets the id of the schedule to interrogate
type ScheduleSignTransaction ¶
type ScheduleSignTransaction struct { Transaction // 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) Execute ¶
func (transaction *ScheduleSignTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*ScheduleSignTransaction) Freeze ¶
func (transaction *ScheduleSignTransaction) Freeze() (*ScheduleSignTransaction, error)
func (*ScheduleSignTransaction) FreezeWith ¶
func (transaction *ScheduleSignTransaction) FreezeWith(client *Client) (*ScheduleSignTransaction, error)
func (*ScheduleSignTransaction) GetMaxBackoff ¶
func (transaction *ScheduleSignTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*ScheduleSignTransaction) GetMaxTransactionFee ¶
func (transaction *ScheduleSignTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*ScheduleSignTransaction) GetMinBackoff ¶
func (transaction *ScheduleSignTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*ScheduleSignTransaction) GetRegenerateTransactionID ¶
func (transaction *ScheduleSignTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*ScheduleSignTransaction) GetScheduleID ¶
func (transaction *ScheduleSignTransaction) GetScheduleID() ScheduleID
GetScheduleID returns the id of the schedule to add signing keys to
func (*ScheduleSignTransaction) GetTransactionID ¶
func (transaction *ScheduleSignTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this ScheduleSignTransaction.
func (*ScheduleSignTransaction) GetTransactionMemo ¶
func (transaction *ScheduleSignTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this ScheduleSignTransaction.
func (*ScheduleSignTransaction) GetTransactionValidDuration ¶
func (transaction *ScheduleSignTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*ScheduleSignTransaction) IsFrozen ¶
func (transaction *ScheduleSignTransaction) IsFrozen() bool
func (*ScheduleSignTransaction) SetGrpcDeadline ¶
func (transaction *ScheduleSignTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleSignTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*ScheduleSignTransaction) SetLogLevel ¶
func (transaction *ScheduleSignTransaction) SetLogLevel(level LogLevel) *ScheduleSignTransaction
func (*ScheduleSignTransaction) SetMaxBackoff ¶
func (transaction *ScheduleSignTransaction) SetMaxBackoff(max time.Duration) *ScheduleSignTransaction
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 (*ScheduleSignTransaction) SetMaxRetry ¶
func (transaction *ScheduleSignTransaction) SetMaxRetry(count int) *ScheduleSignTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*ScheduleSignTransaction) SetMaxTransactionFee ¶
func (transaction *ScheduleSignTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleSignTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*ScheduleSignTransaction) SetMinBackoff ¶
func (transaction *ScheduleSignTransaction) SetMinBackoff(min time.Duration) *ScheduleSignTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*ScheduleSignTransaction) SetNodeAccountIDs ¶
func (transaction *ScheduleSignTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleSignTransaction
SetNodeAccountID sets the _Node AccountID for this ScheduleSignTransaction.
func (*ScheduleSignTransaction) SetRegenerateTransactionID ¶
func (transaction *ScheduleSignTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleSignTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*ScheduleSignTransaction) SetScheduleID ¶
func (transaction *ScheduleSignTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleSignTransaction
SetScheduleID Sets the id of the schedule to add signing keys to
func (*ScheduleSignTransaction) SetTransactionID ¶
func (transaction *ScheduleSignTransaction) SetTransactionID(transactionID TransactionID) *ScheduleSignTransaction
SetTransactionID sets the TransactionID for this ScheduleSignTransaction.
func (*ScheduleSignTransaction) SetTransactionMemo ¶
func (transaction *ScheduleSignTransaction) SetTransactionMemo(memo string) *ScheduleSignTransaction
SetTransactionMemo sets the memo for this ScheduleSignTransaction.
func (*ScheduleSignTransaction) SetTransactionValidDuration ¶
func (transaction *ScheduleSignTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleSignTransaction
SetTransactionValidDuration sets the valid duration for this ScheduleSignTransaction.
func (*ScheduleSignTransaction) Sign ¶
func (transaction *ScheduleSignTransaction) Sign( privateKey PrivateKey, ) *ScheduleSignTransaction
Sign uses the provided privateKey to sign the transaction.
func (*ScheduleSignTransaction) SignWith ¶
func (transaction *ScheduleSignTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *ScheduleSignTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*ScheduleSignTransaction) SignWithOperator ¶
func (transaction *ScheduleSignTransaction) SignWithOperator( client *Client, ) (*ScheduleSignTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type SemanticVersion ¶
type StakingInfoHedera ¶
type StakingInfoHedera struct { DeclineStakingReward bool StakePeriodStart *time.Time PendingReward int64 PendingHbarReward Hbar StakedToMe Hbar StakedAccountID *AccountID StakedNodeID *int64 }
func StakingInfoHederaFromBytes ¶
func StakingInfoHederaFromBytes(data []byte) (StakingInfoHedera, error)
StakingInfoHederaFromBytes returns a StakingInfoHedera object from a raw byte array
func (*StakingInfoHedera) ToBytes ¶
func (StakingInfoHedera *StakingInfoHedera) ToBytes() []byte
ToBytes returns the byte representation of the StakingInfoHedera
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 )
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 ¶
type SystemDeleteTransaction struct { Transaction // contains filtered or unexported fields }
Delete a file or smart contract - can only be done with a Hedera 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 Hedera 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 ¶
func NewSystemDeleteTransaction() *SystemDeleteTransaction
NewSystemDeleteTransaction creates a SystemDeleteTransaction transaction which can be used to construct and execute a System Delete Transaction.
func (*SystemDeleteTransaction) AddSignature ¶
func (transaction *SystemDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *SystemDeleteTransaction
AddSignature adds a signature to the Transaction.
func (*SystemDeleteTransaction) Execute ¶
func (transaction *SystemDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*SystemDeleteTransaction) Freeze ¶
func (transaction *SystemDeleteTransaction) Freeze() (*SystemDeleteTransaction, error)
func (*SystemDeleteTransaction) FreezeWith ¶
func (transaction *SystemDeleteTransaction) FreezeWith(client *Client) (*SystemDeleteTransaction, error)
func (*SystemDeleteTransaction) GetContractID ¶
func (transaction *SystemDeleteTransaction) GetContractID() ContractID
GetContractID returns the ContractID of the contract which will be deleted.
func (*SystemDeleteTransaction) GetExpirationTime ¶
func (transaction *SystemDeleteTransaction) GetExpirationTime() int64
GetExpirationTime returns the time at which this transaction will expire.
func (*SystemDeleteTransaction) GetFileID ¶
func (transaction *SystemDeleteTransaction) GetFileID() FileID
GetFileID returns the FileID of the file which will be deleted.
func (*SystemDeleteTransaction) GetMaxBackoff ¶
func (transaction *SystemDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*SystemDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *SystemDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*SystemDeleteTransaction) GetMinBackoff ¶
func (transaction *SystemDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*SystemDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *SystemDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*SystemDeleteTransaction) GetTransactionID ¶
func (transaction *SystemDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this SystemDeleteTransaction.
func (*SystemDeleteTransaction) GetTransactionMemo ¶
func (transaction *SystemDeleteTransaction) GetTransactionMemo() string
func (*SystemDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *SystemDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration sets the duration that this transaction is valid for. This is defaulted by the SDK to 120 seconds (or two minutes).
func (*SystemDeleteTransaction) IsFrozen ¶
func (transaction *SystemDeleteTransaction) IsFrozen() bool
func (*SystemDeleteTransaction) Schedule ¶
func (transaction *SystemDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*SystemDeleteTransaction) SetContractID ¶
func (transaction *SystemDeleteTransaction) SetContractID(contractID ContractID) *SystemDeleteTransaction
SetContractID sets the ContractID of the contract which will be deleted.
func (*SystemDeleteTransaction) SetExpirationTime ¶
func (transaction *SystemDeleteTransaction) SetExpirationTime(expiration time.Time) *SystemDeleteTransaction
SetExpirationTime sets the time at which this transaction will expire.
func (*SystemDeleteTransaction) SetFileID ¶
func (transaction *SystemDeleteTransaction) SetFileID(fileID FileID) *SystemDeleteTransaction
SetFileID sets the FileID of the file which will be deleted.
func (*SystemDeleteTransaction) SetGrpcDeadline ¶
func (transaction *SystemDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *SystemDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*SystemDeleteTransaction) SetLogLevel ¶
func (transaction *SystemDeleteTransaction) SetLogLevel(level LogLevel) *SystemDeleteTransaction
func (*SystemDeleteTransaction) SetMaxBackoff ¶
func (transaction *SystemDeleteTransaction) SetMaxBackoff(max time.Duration) *SystemDeleteTransaction
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 (*SystemDeleteTransaction) SetMaxRetry ¶
func (transaction *SystemDeleteTransaction) SetMaxRetry(count int) *SystemDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*SystemDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *SystemDeleteTransaction) SetMaxTransactionFee(fee Hbar) *SystemDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*SystemDeleteTransaction) SetMinBackoff ¶
func (transaction *SystemDeleteTransaction) SetMinBackoff(min time.Duration) *SystemDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*SystemDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *SystemDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *SystemDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this SystemDeleteTransaction.
func (*SystemDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *SystemDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *SystemDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*SystemDeleteTransaction) SetTransactionID ¶
func (transaction *SystemDeleteTransaction) SetTransactionID(transactionID TransactionID) *SystemDeleteTransaction
SetTransactionID sets the TransactionID for this SystemDeleteTransaction.
func (*SystemDeleteTransaction) SetTransactionMemo ¶
func (transaction *SystemDeleteTransaction) SetTransactionMemo(memo string) *SystemDeleteTransaction
SetTransactionMemo sets the memo for this SystemDeleteTransaction.
func (*SystemDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *SystemDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *SystemDeleteTransaction
SetTransactionValidDuration sets the valid duration for this SystemDeleteTransaction.
func (*SystemDeleteTransaction) Sign ¶
func (transaction *SystemDeleteTransaction) Sign( privateKey PrivateKey, ) *SystemDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*SystemDeleteTransaction) SignWith ¶
func (transaction *SystemDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *SystemDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*SystemDeleteTransaction) SignWithOperator ¶
func (transaction *SystemDeleteTransaction) SignWithOperator( client *Client, ) (*SystemDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type SystemUndeleteTransaction ¶
type SystemUndeleteTransaction struct { Transaction // contains filtered or unexported fields }
Undelete a file or smart contract that was deleted by AdminDelete. Can only be done with a Hedera admin.
func NewSystemUndeleteTransaction ¶
func NewSystemUndeleteTransaction() *SystemUndeleteTransaction
NewSystemUndeleteTransaction creates a SystemUndeleteTransaction transaction which can be used to construct and execute a System Undelete Transaction.
func (*SystemUndeleteTransaction) AddSignature ¶
func (transaction *SystemUndeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *SystemUndeleteTransaction
AddSignature adds a signature to the Transaction.
func (*SystemUndeleteTransaction) Execute ¶
func (transaction *SystemUndeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*SystemUndeleteTransaction) Freeze ¶
func (transaction *SystemUndeleteTransaction) Freeze() (*SystemUndeleteTransaction, error)
func (*SystemUndeleteTransaction) FreezeWith ¶
func (transaction *SystemUndeleteTransaction) FreezeWith(client *Client) (*SystemUndeleteTransaction, error)
func (*SystemUndeleteTransaction) GetContractID ¶
func (transaction *SystemUndeleteTransaction) GetContractID() ContractID
GetContractID returns the ContractID of the contract whose deletion is being undone.
func (*SystemUndeleteTransaction) GetFileID ¶
func (transaction *SystemUndeleteTransaction) GetFileID() FileID
GetFileID returns the FileID of the file whose deletion is being undone.
func (*SystemUndeleteTransaction) GetMaxBackoff ¶
func (transaction *SystemUndeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*SystemUndeleteTransaction) GetMaxTransactionFee ¶
func (transaction *SystemUndeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*SystemUndeleteTransaction) GetMinBackoff ¶
func (transaction *SystemUndeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*SystemUndeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *SystemUndeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*SystemUndeleteTransaction) GetTransactionID ¶
func (transaction *SystemUndeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this SystemUndeleteTransaction.
func (*SystemUndeleteTransaction) GetTransactionMemo ¶
func (transaction *SystemUndeleteTransaction) GetTransactionMemo() string
func (*SystemUndeleteTransaction) GetTransactionValidDuration ¶
func (transaction *SystemUndeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*SystemUndeleteTransaction) IsFrozen ¶
func (transaction *SystemUndeleteTransaction) IsFrozen() bool
func (*SystemUndeleteTransaction) Schedule ¶
func (transaction *SystemUndeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*SystemUndeleteTransaction) SetContractID ¶
func (transaction *SystemUndeleteTransaction) SetContractID(contractID ContractID) *SystemUndeleteTransaction
SetContractID sets the ContractID of the contract whose deletion is being undone.
func (*SystemUndeleteTransaction) SetFileID ¶
func (transaction *SystemUndeleteTransaction) SetFileID(fileID FileID) *SystemUndeleteTransaction
SetFileID sets the FileID of the file whose deletion is being undone.
func (*SystemUndeleteTransaction) SetGrpcDeadline ¶
func (transaction *SystemUndeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *SystemUndeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*SystemUndeleteTransaction) SetLogLevel ¶
func (transaction *SystemUndeleteTransaction) SetLogLevel(level LogLevel) *SystemUndeleteTransaction
func (*SystemUndeleteTransaction) SetMaxBackoff ¶
func (transaction *SystemUndeleteTransaction) SetMaxBackoff(max time.Duration) *SystemUndeleteTransaction
SetMaxBackoff sets the maximum amount of time to wait between retries.
func (*SystemUndeleteTransaction) SetMaxRetry ¶
func (transaction *SystemUndeleteTransaction) SetMaxRetry(count int) *SystemUndeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*SystemUndeleteTransaction) SetMaxTransactionFee ¶
func (transaction *SystemUndeleteTransaction) SetMaxTransactionFee(fee Hbar) *SystemUndeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*SystemUndeleteTransaction) SetMinBackoff ¶
func (transaction *SystemUndeleteTransaction) SetMinBackoff(min time.Duration) *SystemUndeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*SystemUndeleteTransaction) SetNodeAccountIDs ¶
func (transaction *SystemUndeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *SystemUndeleteTransaction
SetNodeAccountID sets the _Node AccountID for this SystemUndeleteTransaction.
func (*SystemUndeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *SystemUndeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *SystemUndeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*SystemUndeleteTransaction) SetTransactionID ¶
func (transaction *SystemUndeleteTransaction) SetTransactionID(transactionID TransactionID) *SystemUndeleteTransaction
SetTransactionID sets the TransactionID for this SystemUndeleteTransaction.
func (*SystemUndeleteTransaction) SetTransactionMemo ¶
func (transaction *SystemUndeleteTransaction) SetTransactionMemo(memo string) *SystemUndeleteTransaction
SetTransactionMemo sets the memo for this SystemUndeleteTransaction.
func (*SystemUndeleteTransaction) SetTransactionValidDuration ¶
func (transaction *SystemUndeleteTransaction) SetTransactionValidDuration(duration time.Duration) *SystemUndeleteTransaction
SetTransactionValidDuration sets the valid duration for this SystemUndeleteTransaction.
func (*SystemUndeleteTransaction) Sign ¶
func (transaction *SystemUndeleteTransaction) Sign( privateKey PrivateKey, ) *SystemUndeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*SystemUndeleteTransaction) SignWith ¶
func (transaction *SystemUndeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *SystemUndeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*SystemUndeleteTransaction) SignWithOperator ¶
func (transaction *SystemUndeleteTransaction) SignWithOperator( client *Client, ) (*SystemUndeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 // 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) AddSignature ¶
func (transaction *TokenAssociateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenAssociateTransaction
AddSignature adds a signature to the Transaction.
func (*TokenAssociateTransaction) AddTokenID ¶
func (transaction *TokenAssociateTransaction) AddTokenID(id TokenID) *TokenAssociateTransaction
AddTokenID Adds the token to a token list to be associated with the provided account
func (*TokenAssociateTransaction) Execute ¶
func (transaction *TokenAssociateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenAssociateTransaction) Freeze ¶
func (transaction *TokenAssociateTransaction) Freeze() (*TokenAssociateTransaction, error)
func (*TokenAssociateTransaction) FreezeWith ¶
func (transaction *TokenAssociateTransaction) FreezeWith(client *Client) (*TokenAssociateTransaction, error)
func (*TokenAssociateTransaction) GetAccountID ¶
func (transaction *TokenAssociateTransaction) GetAccountID() AccountID
GetAccountID returns the account to be associated with the provided tokens
func (*TokenAssociateTransaction) GetMaxBackoff ¶
func (transaction *TokenAssociateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenAssociateTransaction) GetMaxTransactionFee ¶
func (transaction *TokenAssociateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenAssociateTransaction) GetMinBackoff ¶
func (transaction *TokenAssociateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenAssociateTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenAssociateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenAssociateTransaction) GetTokenIDs ¶
func (transaction *TokenAssociateTransaction) GetTokenIDs() []TokenID
GetTokenIDs returns the tokens to be associated with the provided account
func (*TokenAssociateTransaction) GetTransactionID ¶
func (transaction *TokenAssociateTransaction) GetTransactionID() TransactionID
func (*TokenAssociateTransaction) GetTransactionMemo ¶
func (transaction *TokenAssociateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenAssociateTransaction.
func (*TokenAssociateTransaction) GetTransactionValidDuration ¶
func (transaction *TokenAssociateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenAssociateTransaction) IsFrozen ¶
func (transaction *TokenAssociateTransaction) IsFrozen() bool
func (*TokenAssociateTransaction) Schedule ¶
func (transaction *TokenAssociateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenAssociateTransaction) SetAccountID ¶
func (transaction *TokenAssociateTransaction) SetAccountID(accountID AccountID) *TokenAssociateTransaction
SetAccountID Sets the account to be associated with the provided tokens
func (*TokenAssociateTransaction) SetGrpcDeadline ¶
func (transaction *TokenAssociateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenAssociateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenAssociateTransaction) SetLogLevel ¶
func (transaction *TokenAssociateTransaction) SetLogLevel(level LogLevel) *TokenAssociateTransaction
func (*TokenAssociateTransaction) SetMaxBackoff ¶
func (transaction *TokenAssociateTransaction) SetMaxBackoff(max time.Duration) *TokenAssociateTransaction
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 (*TokenAssociateTransaction) SetMaxRetry ¶
func (transaction *TokenAssociateTransaction) SetMaxRetry(count int) *TokenAssociateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenAssociateTransaction) SetMaxTransactionFee ¶
func (transaction *TokenAssociateTransaction) SetMaxTransactionFee(fee Hbar) *TokenAssociateTransaction
SetMaxTransactionFee sets the max transaction fee for this TokenAssociateTransaction.
func (*TokenAssociateTransaction) SetMinBackoff ¶
func (transaction *TokenAssociateTransaction) SetMinBackoff(min time.Duration) *TokenAssociateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenAssociateTransaction) SetNodeAccountIDs ¶
func (transaction *TokenAssociateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenAssociateTransaction
SetNodeTokenID sets the _Node TokenID for this TokenAssociateTransaction.
func (*TokenAssociateTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenAssociateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenAssociateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenAssociateTransaction) SetTokenIDs ¶
func (transaction *TokenAssociateTransaction) SetTokenIDs(ids ...TokenID) *TokenAssociateTransaction
SetTokenIDs Sets the tokens to be associated with the provided account
func (*TokenAssociateTransaction) SetTransactionID ¶
func (transaction *TokenAssociateTransaction) SetTransactionID(transactionID TransactionID) *TokenAssociateTransaction
SetTransactionID sets the TransactionID for this TokenAssociateTransaction.
func (*TokenAssociateTransaction) SetTransactionMemo ¶
func (transaction *TokenAssociateTransaction) SetTransactionMemo(memo string) *TokenAssociateTransaction
SetTransactionMemo sets the memo for this TokenAssociateTransaction.
func (*TokenAssociateTransaction) SetTransactionValidDuration ¶
func (transaction *TokenAssociateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenAssociateTransaction
SetTransactionValidDuration sets the valid duration for this TokenAssociateTransaction.
func (*TokenAssociateTransaction) Sign ¶
func (transaction *TokenAssociateTransaction) Sign( privateKey PrivateKey, ) *TokenAssociateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenAssociateTransaction) SignWith ¶
func (transaction *TokenAssociateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenAssociateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenAssociateTransaction) SignWithOperator ¶
func (transaction *TokenAssociateTransaction) SignWithOperator( client *Client, ) (*TokenAssociateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 // 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) AddSignature ¶
func (transaction *TokenBurnTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenBurnTransaction
AddSignature adds a signature to the Transaction.
func (*TokenBurnTransaction) Execute ¶
func (transaction *TokenBurnTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenBurnTransaction) Freeze ¶
func (transaction *TokenBurnTransaction) Freeze() (*TokenBurnTransaction, error)
func (*TokenBurnTransaction) FreezeWith ¶
func (transaction *TokenBurnTransaction) FreezeWith(client *Client) (*TokenBurnTransaction, error)
func (*TokenBurnTransaction) GetAmmount
deprecated
func (transaction *TokenBurnTransaction) GetAmmount() uint64
Deprecated: Use TokenBurnTransaction.GetAmount() instead.
func (*TokenBurnTransaction) GetAmount ¶
func (transaction *TokenBurnTransaction) GetAmount() uint64
func (*TokenBurnTransaction) GetMaxBackoff ¶
func (transaction *TokenBurnTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenBurnTransaction) GetMaxTransactionFee ¶
func (transaction *TokenBurnTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenBurnTransaction) GetMinBackoff ¶
func (transaction *TokenBurnTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenBurnTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenBurnTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenBurnTransaction) GetSerialNumbers ¶
func (transaction *TokenBurnTransaction) GetSerialNumbers() []int64
GetSerialNumbers returns the list of serial numbers to be burned.
func (*TokenBurnTransaction) GetTokenID ¶
func (transaction *TokenBurnTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID for the token which will be burned.
func (*TokenBurnTransaction) GetTransactionID ¶
func (transaction *TokenBurnTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenBurnTransaction.
func (*TokenBurnTransaction) GetTransactionMemo ¶
func (transaction *TokenBurnTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenBurnTransaction.
func (*TokenBurnTransaction) GetTransactionValidDuration ¶
func (transaction *TokenBurnTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenBurnTransaction) IsFrozen ¶
func (transaction *TokenBurnTransaction) IsFrozen() bool
func (*TokenBurnTransaction) Schedule ¶
func (transaction *TokenBurnTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenBurnTransaction) SetAmount ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *TokenBurnTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenBurnTransaction
func (*TokenBurnTransaction) SetLogLevel ¶
func (transaction *TokenBurnTransaction) SetLogLevel(level LogLevel) *TokenBurnTransaction
func (*TokenBurnTransaction) SetMaxBackoff ¶
func (transaction *TokenBurnTransaction) SetMaxBackoff(max time.Duration) *TokenBurnTransaction
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 (*TokenBurnTransaction) SetMaxRetry ¶
func (transaction *TokenBurnTransaction) SetMaxRetry(count int) *TokenBurnTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenBurnTransaction) SetMaxTransactionFee ¶
func (transaction *TokenBurnTransaction) SetMaxTransactionFee(fee Hbar) *TokenBurnTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenBurnTransaction) SetMinBackoff ¶
func (transaction *TokenBurnTransaction) SetMinBackoff(min time.Duration) *TokenBurnTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenBurnTransaction) SetNodeAccountIDs ¶
func (transaction *TokenBurnTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenBurnTransaction
SetNodeTokenID sets the _Node TokenID for this TokenBurnTransaction.
func (*TokenBurnTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenBurnTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenBurnTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenBurnTransaction) SetSerialNumber ¶
func (transaction *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 (transaction *TokenBurnTransaction) SetSerialNumbers(serial []int64) *TokenBurnTransaction
SetSerialNumbers sets the list of serial numbers to be burned.
func (*TokenBurnTransaction) SetTokenID ¶
func (transaction *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
func (*TokenBurnTransaction) SetTransactionID ¶
func (transaction *TokenBurnTransaction) SetTransactionID(transactionID TransactionID) *TokenBurnTransaction
SetTransactionID sets the TransactionID for this TokenBurnTransaction.
func (*TokenBurnTransaction) SetTransactionMemo ¶
func (transaction *TokenBurnTransaction) SetTransactionMemo(memo string) *TokenBurnTransaction
SetTransactionMemo sets the memo for this TokenBurnTransaction.
func (*TokenBurnTransaction) SetTransactionValidDuration ¶
func (transaction *TokenBurnTransaction) SetTransactionValidDuration(duration time.Duration) *TokenBurnTransaction
SetTransactionValidDuration sets the valid duration for this TokenBurnTransaction.
func (*TokenBurnTransaction) Sign ¶
func (transaction *TokenBurnTransaction) Sign( privateKey PrivateKey, ) *TokenBurnTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenBurnTransaction) SignWith ¶
func (transaction *TokenBurnTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenBurnTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenBurnTransaction) SignWithOperator ¶
func (transaction *TokenBurnTransaction) SignWithOperator( client *Client, ) (*TokenBurnTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenCreateTransaction ¶
type TokenCreateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenCreateTransaction
AddSignature adds a signature to the Transaction.
func (*TokenCreateTransaction) Execute ¶
func (transaction *TokenCreateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenCreateTransaction) Freeze ¶
func (transaction *TokenCreateTransaction) Freeze() (*TokenCreateTransaction, error)
func (*TokenCreateTransaction) FreezeWith ¶
func (transaction *TokenCreateTransaction) FreezeWith(client *Client) (*TokenCreateTransaction, error)
func (*TokenCreateTransaction) GetAdminKey ¶
func (transaction *TokenCreateTransaction) GetAdminKey() Key
GetAdminKey returns the admin key
func (*TokenCreateTransaction) GetAutoRenewAccount ¶
func (transaction *TokenCreateTransaction) GetAutoRenewAccount() AccountID
func (*TokenCreateTransaction) GetAutoRenewPeriod ¶
func (transaction *TokenCreateTransaction) GetAutoRenewPeriod() time.Duration
func (*TokenCreateTransaction) GetCustomFees ¶
func (transaction *TokenCreateTransaction) GetCustomFees() []Fee
GetCustomFees returns the custom fees
func (*TokenCreateTransaction) GetDecimals ¶
func (transaction *TokenCreateTransaction) GetDecimals() uint
GetDecimals returns the number of decimal places a token is divisible by
func (*TokenCreateTransaction) GetExpirationTime ¶
func (transaction *TokenCreateTransaction) GetExpirationTime() time.Time
func (*TokenCreateTransaction) GetFeeScheduleKey ¶
func (transaction *TokenCreateTransaction) GetFeeScheduleKey() Key
GetFeeScheduleKey returns the fee schedule key
func (*TokenCreateTransaction) GetFreezeDefault ¶
func (transaction *TokenCreateTransaction) GetFreezeDefault() bool
GetFreezeDefault returns the freeze default
func (*TokenCreateTransaction) GetFreezeKey ¶
func (transaction *TokenCreateTransaction) GetFreezeKey() Key
GetFreezeKey returns the freeze key
func (*TokenCreateTransaction) GetInitialSupply ¶
func (transaction *TokenCreateTransaction) GetInitialSupply() uint64
func (*TokenCreateTransaction) GetKycKey ¶
func (transaction *TokenCreateTransaction) GetKycKey() Key
func (*TokenCreateTransaction) GetMaxBackoff ¶
func (transaction *TokenCreateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenCreateTransaction) GetMaxSupply ¶
func (transaction *TokenCreateTransaction) GetMaxSupply() int64
GetMaxSupply returns the max supply
func (*TokenCreateTransaction) GetMaxTransactionFee ¶
func (transaction *TokenCreateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenCreateTransaction) GetMinBackoff ¶
func (transaction *TokenCreateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenCreateTransaction) GetPauseKey ¶
func (transaction *TokenCreateTransaction) GetPauseKey() Key
GetPauseKey returns the pause key
func (*TokenCreateTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenCreateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenCreateTransaction) GetSupplyKey ¶
func (transaction *TokenCreateTransaction) GetSupplyKey() Key
func (*TokenCreateTransaction) GetSupplyType ¶
func (transaction *TokenCreateTransaction) GetSupplyType() TokenSupplyType
GetSupplyType returns the token supply type
func (*TokenCreateTransaction) GetTokenMemo ¶
func (transaction *TokenCreateTransaction) GetTokenMemo() string
GetTokenMemo returns the token memo
func (*TokenCreateTransaction) GetTokenName ¶
func (transaction *TokenCreateTransaction) GetTokenName() string
GetTokenName returns the token name
func (*TokenCreateTransaction) GetTokenSymbol ¶
func (transaction *TokenCreateTransaction) GetTokenSymbol() string
GetTokenSymbol returns the token symbol
func (*TokenCreateTransaction) GetTokenType ¶
func (transaction *TokenCreateTransaction) GetTokenType() TokenType
GetTokenType returns the token type
func (*TokenCreateTransaction) GetTransactionID ¶
func (transaction *TokenCreateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenCreateTransaction.
func (*TokenCreateTransaction) GetTransactionMemo ¶
func (transaction *TokenCreateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenCreateTransaction.
func (*TokenCreateTransaction) GetTransactionValidDuration ¶
func (transaction *TokenCreateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenCreateTransaction) GetTreasuryAccountID ¶
func (transaction *TokenCreateTransaction) GetTreasuryAccountID() AccountID
GetTreasuryAccountID returns the treasury account ID
func (*TokenCreateTransaction) GetWipeKey ¶
func (transaction *TokenCreateTransaction) GetWipeKey() Key
GetWipeKey returns the wipe key
func (*TokenCreateTransaction) IsFrozen ¶
func (transaction *TokenCreateTransaction) IsFrozen() bool
func (*TokenCreateTransaction) Schedule ¶
func (transaction *TokenCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenCreateTransaction) SetAdminKey ¶
func (transaction *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 (transaction *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 (transaction *TokenCreateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *TokenCreateTransaction
The interval at which the auto-renew account will be charged to extend the token's expiry
func (*TokenCreateTransaction) SetCustomFees ¶
func (transaction *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 (transaction *TokenCreateTransaction) SetDecimals(decimals uint) *TokenCreateTransaction
SetDecimals Sets the number of decimal places a token is divisible by. This field can never be changed!
func (*TokenCreateTransaction) SetExpirationTime ¶
func (transaction *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
func (*TokenCreateTransaction) SetFeeScheduleKey ¶
func (transaction *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 (transaction *TokenCreateTransaction) SetFreezeDefault(freezeDefault bool) *TokenCreateTransaction
The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If true, an account must be unfrozen before it can receive the token
func (*TokenCreateTransaction) SetFreezeKey ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *TokenCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenCreateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenCreateTransaction) SetInitialSupply ¶
func (transaction *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 (transaction *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) SetLogLevel ¶
func (transaction *TokenCreateTransaction) SetLogLevel(level LogLevel) *TokenCreateTransaction
func (*TokenCreateTransaction) SetMaxBackoff ¶
func (transaction *TokenCreateTransaction) SetMaxBackoff(max time.Duration) *TokenCreateTransaction
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 (*TokenCreateTransaction) SetMaxRetry ¶
func (transaction *TokenCreateTransaction) SetMaxRetry(count int) *TokenCreateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenCreateTransaction) SetMaxSupply ¶
func (transaction *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) SetMaxTransactionFee ¶
func (transaction *TokenCreateTransaction) SetMaxTransactionFee(fee Hbar) *TokenCreateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenCreateTransaction) SetMinBackoff ¶
func (transaction *TokenCreateTransaction) SetMinBackoff(min time.Duration) *TokenCreateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenCreateTransaction) SetNodeAccountIDs ¶
func (transaction *TokenCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenCreateTransaction
SetNodeTokenID sets the _Node TokenID for this TokenCreateTransaction.
func (*TokenCreateTransaction) SetPauseKey ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *TokenCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenCreateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenCreateTransaction) SetSupplyKey ¶
func (transaction *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 (transaction *TokenCreateTransaction) SetSupplyType(tokenSupply TokenSupplyType) *TokenCreateTransaction
SetSupplyType Specifies the token supply type. Defaults to INFINITE
func (*TokenCreateTransaction) SetTokenMemo ¶
func (transaction *TokenCreateTransaction) SetTokenMemo(memo string) *TokenCreateTransaction
SetTokenMemo Sets the publicly visible token memo. It is max 100 bytes.
func (*TokenCreateTransaction) SetTokenName ¶
func (transaction *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 (transaction *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 (transaction *TokenCreateTransaction) SetTokenType(t TokenType) *TokenCreateTransaction
SetTokenType Specifies the token type. Defaults to FUNGIBLE_COMMON
func (*TokenCreateTransaction) SetTransactionID ¶
func (transaction *TokenCreateTransaction) SetTransactionID(transactionID TransactionID) *TokenCreateTransaction
SetTransactionID sets the TransactionID for this TokenCreateTransaction.
func (*TokenCreateTransaction) SetTransactionMemo ¶
func (transaction *TokenCreateTransaction) SetTransactionMemo(memo string) *TokenCreateTransaction
SetTransactionMemo sets the memo for this TokenCreateTransaction.
func (*TokenCreateTransaction) SetTransactionValidDuration ¶
func (transaction *TokenCreateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenCreateTransaction
SetTransactionValidDuration sets the valid duration for this TokenCreateTransaction.
func (*TokenCreateTransaction) SetTreasuryAccountID ¶
func (transaction *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 (transaction *TokenCreateTransaction) SetWipeKey(publicKey Key) *TokenCreateTransaction
SetWipeKey Sets the key which can wipe the token balance of an account. If empty, wipe is not possible
func (*TokenCreateTransaction) Sign ¶
func (transaction *TokenCreateTransaction) Sign( privateKey PrivateKey, ) *TokenCreateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenCreateTransaction) SignWith ¶
func (transaction *TokenCreateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenCreateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenCreateTransaction) SignWithOperator ¶
func (transaction *TokenCreateTransaction) SignWithOperator( client *Client, ) (*TokenCreateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 // 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) AddSignature ¶
func (transaction *TokenDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenDeleteTransaction
AddSignature adds a signature to the Transaction.
func (*TokenDeleteTransaction) Execute ¶
func (transaction *TokenDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenDeleteTransaction) Freeze ¶
func (transaction *TokenDeleteTransaction) Freeze() (*TokenDeleteTransaction, error)
func (*TokenDeleteTransaction) FreezeWith ¶
func (transaction *TokenDeleteTransaction) FreezeWith(client *Client) (*TokenDeleteTransaction, error)
func (*TokenDeleteTransaction) GetMaxBackoff ¶
func (transaction *TokenDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenDeleteTransaction) GetMaxTransactionFee ¶
func (transaction *TokenDeleteTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenDeleteTransaction) GetMinBackoff ¶
func (transaction *TokenDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenDeleteTransaction) GetTokenID ¶
func (transaction *TokenDeleteTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID of the token to be deleted
func (*TokenDeleteTransaction) GetTransactionID ¶
func (transaction *TokenDeleteTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenDeleteTransaction.
func (*TokenDeleteTransaction) GetTransactionMemo ¶
func (transaction *TokenDeleteTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenDeleteTransaction.
func (*TokenDeleteTransaction) GetTransactionValidDuration ¶
func (transaction *TokenDeleteTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenDeleteTransaction) IsFrozen ¶
func (transaction *TokenDeleteTransaction) IsFrozen() bool
func (*TokenDeleteTransaction) Schedule ¶
func (transaction *TokenDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenDeleteTransaction) SetGrpcDeadline ¶
func (transaction *TokenDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenDeleteTransaction) SetLogLevel ¶
func (transaction *TokenDeleteTransaction) SetLogLevel(level LogLevel) *TokenDeleteTransaction
func (*TokenDeleteTransaction) SetMaxBackoff ¶
func (transaction *TokenDeleteTransaction) SetMaxBackoff(max time.Duration) *TokenDeleteTransaction
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 (*TokenDeleteTransaction) SetMaxRetry ¶
func (transaction *TokenDeleteTransaction) SetMaxRetry(count int) *TokenDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *TokenDeleteTransaction) SetMaxTransactionFee(fee Hbar) *TokenDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenDeleteTransaction) SetMinBackoff ¶
func (transaction *TokenDeleteTransaction) SetMinBackoff(min time.Duration) *TokenDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *TokenDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenDeleteTransaction
SetNodeTokenID sets the _Node TokenID for this TokenDeleteTransaction.
func (*TokenDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenDeleteTransaction) SetTokenID ¶
func (transaction *TokenDeleteTransaction) SetTokenID(tokenID TokenID) *TokenDeleteTransaction
SetTokenID Sets the Token to be deleted
func (*TokenDeleteTransaction) SetTransactionID ¶
func (transaction *TokenDeleteTransaction) SetTransactionID(transactionID TransactionID) *TokenDeleteTransaction
SetTransactionID sets the TransactionID for this TokenDeleteTransaction.
func (*TokenDeleteTransaction) SetTransactionMemo ¶
func (transaction *TokenDeleteTransaction) SetTransactionMemo(memo string) *TokenDeleteTransaction
SetTransactionMemo sets the memo for this TokenDeleteTransaction.
func (*TokenDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *TokenDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *TokenDeleteTransaction
SetTransactionValidDuration sets the valid duration for this TokenDeleteTransaction.
func (*TokenDeleteTransaction) Sign ¶
func (transaction *TokenDeleteTransaction) Sign( privateKey PrivateKey, ) *TokenDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenDeleteTransaction) SignWith ¶
func (transaction *TokenDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenDeleteTransaction) SignWithOperator ¶
func (transaction *TokenDeleteTransaction) SignWithOperator( client *Client, ) (*TokenDeleteTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenDissociateTransaction ¶
type TokenDissociateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenDissociateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenDissociateTransaction
AddSignature adds a signature to the Transaction.
func (*TokenDissociateTransaction) AddTokenID ¶
func (transaction *TokenDissociateTransaction) AddTokenID(id TokenID) *TokenDissociateTransaction
AddTokenID Adds the token to the list of tokens to be dissociated.
func (*TokenDissociateTransaction) Execute ¶
func (transaction *TokenDissociateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenDissociateTransaction) Freeze ¶
func (transaction *TokenDissociateTransaction) Freeze() (*TokenDissociateTransaction, error)
func (*TokenDissociateTransaction) FreezeWith ¶
func (transaction *TokenDissociateTransaction) FreezeWith(client *Client) (*TokenDissociateTransaction, error)
func (*TokenDissociateTransaction) GetAccountID ¶
func (transaction *TokenDissociateTransaction) GetAccountID() AccountID
func (*TokenDissociateTransaction) GetMaxBackoff ¶
func (transaction *TokenDissociateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenDissociateTransaction) GetMaxTransactionFee ¶
func (transaction *TokenDissociateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenDissociateTransaction) GetMinBackoff ¶
func (transaction *TokenDissociateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenDissociateTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenDissociateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenDissociateTransaction) GetTokenIDs ¶
func (transaction *TokenDissociateTransaction) GetTokenIDs() []TokenID
GetTokenIDs returns the tokens to be associated with the provided account
func (*TokenDissociateTransaction) GetTransactionID ¶
func (transaction *TokenDissociateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenDissociateTransaction.
func (*TokenDissociateTransaction) GetTransactionMemo ¶
func (transaction *TokenDissociateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenDissociateTransaction.
func (*TokenDissociateTransaction) GetTransactionValidDuration ¶
func (transaction *TokenDissociateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenDissociateTransaction) IsFrozen ¶
func (transaction *TokenDissociateTransaction) IsFrozen() bool
func (*TokenDissociateTransaction) Schedule ¶
func (transaction *TokenDissociateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenDissociateTransaction) SetAccountID ¶
func (transaction *TokenDissociateTransaction) SetAccountID(accountID AccountID) *TokenDissociateTransaction
SetAccountID Sets the account to be dissociated with the provided tokens
func (*TokenDissociateTransaction) SetGrpcDeadline ¶
func (transaction *TokenDissociateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenDissociateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenDissociateTransaction) SetLogLevel ¶
func (transaction *TokenDissociateTransaction) SetLogLevel(level LogLevel) *TokenDissociateTransaction
func (*TokenDissociateTransaction) SetMaxBackoff ¶
func (transaction *TokenDissociateTransaction) SetMaxBackoff(max time.Duration) *TokenDissociateTransaction
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 (*TokenDissociateTransaction) SetMaxRetry ¶
func (transaction *TokenDissociateTransaction) SetMaxRetry(count int) *TokenDissociateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenDissociateTransaction) SetMaxTransactionFee ¶
func (transaction *TokenDissociateTransaction) SetMaxTransactionFee(fee Hbar) *TokenDissociateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenDissociateTransaction) SetMinBackoff ¶
func (transaction *TokenDissociateTransaction) SetMinBackoff(min time.Duration) *TokenDissociateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenDissociateTransaction) SetNodeAccountIDs ¶
func (transaction *TokenDissociateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenDissociateTransaction
SetNodeTokenID sets the _Node TokenID for this TokenDissociateTransaction.
func (*TokenDissociateTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenDissociateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenDissociateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenDissociateTransaction) SetTokenIDs ¶
func (transaction *TokenDissociateTransaction) SetTokenIDs(ids ...TokenID) *TokenDissociateTransaction
SetTokenIDs Sets the tokens to be dissociated with the provided account
func (*TokenDissociateTransaction) SetTransactionID ¶
func (transaction *TokenDissociateTransaction) SetTransactionID(transactionID TransactionID) *TokenDissociateTransaction
SetTransactionID sets the TransactionID for this TokenDissociateTransaction.
func (*TokenDissociateTransaction) SetTransactionMemo ¶
func (transaction *TokenDissociateTransaction) SetTransactionMemo(memo string) *TokenDissociateTransaction
SetTransactionMemo sets the memo for this TokenDissociateTransaction.
func (*TokenDissociateTransaction) SetTransactionValidDuration ¶
func (transaction *TokenDissociateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenDissociateTransaction
SetTransactionValidDuration sets the valid duration for this TokenDissociateTransaction.
func (*TokenDissociateTransaction) Sign ¶
func (transaction *TokenDissociateTransaction) Sign( privateKey PrivateKey, ) *TokenDissociateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenDissociateTransaction) SignWith ¶
func (transaction *TokenDissociateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenDissociateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenDissociateTransaction) SignWithOperator ¶
func (transaction *TokenDissociateTransaction) SignWithOperator( client *Client, ) (*TokenDissociateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenFeeScheduleUpdateTransaction ¶
type TokenFeeScheduleUpdateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenFeeScheduleUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenFeeScheduleUpdateTransaction
AddSignature adds a signature to the Transaction.
func (*TokenFeeScheduleUpdateTransaction) Execute ¶
func (transaction *TokenFeeScheduleUpdateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenFeeScheduleUpdateTransaction) Freeze ¶
func (transaction *TokenFeeScheduleUpdateTransaction) Freeze() (*TokenFeeScheduleUpdateTransaction, error)
func (*TokenFeeScheduleUpdateTransaction) FreezeWith ¶
func (transaction *TokenFeeScheduleUpdateTransaction) FreezeWith(client *Client) (*TokenFeeScheduleUpdateTransaction, error)
func (*TokenFeeScheduleUpdateTransaction) GetCustomFees ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetCustomFees() []Fee
GetCustomFees returns the new custom fees to be assessed during a CryptoTransfer that transfers units of this token
func (*TokenFeeScheduleUpdateTransaction) GetMaxBackoff ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenFeeScheduleUpdateTransaction) GetMaxTransactionFee ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenFeeScheduleUpdateTransaction) GetMinBackoff ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenFeeScheduleUpdateTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenFeeScheduleUpdateTransaction) GetTokenID ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetTokenID() TokenID
GetTokenID returns the token whose fee schedule is to be updated
func (*TokenFeeScheduleUpdateTransaction) GetTransactionID ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionID() TransactionID
GetTransactionID returns the TransactionID for this TokenFeeScheduleUpdateTransaction.
func (*TokenFeeScheduleUpdateTransaction) GetTransactionMemo ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenFeeScheduleUpdateTransaction.
func (*TokenFeeScheduleUpdateTransaction) GetTransactionValidDuration ¶
func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenFeeScheduleUpdateTransaction) IsFrozen ¶
func (transaction *TokenFeeScheduleUpdateTransaction) IsFrozen() bool
func (*TokenFeeScheduleUpdateTransaction) SetCustomFees ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenFeeScheduleUpdateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenFeeScheduleUpdateTransaction) SetLogLevel ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetLogLevel(level LogLevel) *TokenFeeScheduleUpdateTransaction
func (*TokenFeeScheduleUpdateTransaction) SetMaxBackoff ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxBackoff(max time.Duration) *TokenFeeScheduleUpdateTransaction
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 (*TokenFeeScheduleUpdateTransaction) SetMaxRetry ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxRetry(count int) *TokenFeeScheduleUpdateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenFeeScheduleUpdateTransaction) SetMaxTransactionFee ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TokenFeeScheduleUpdateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenFeeScheduleUpdateTransaction) SetMinBackoff ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetMinBackoff(min time.Duration) *TokenFeeScheduleUpdateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenFeeScheduleUpdateTransaction) SetNodeAccountIDs ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenFeeScheduleUpdateTransaction
SetNodeTokenID sets the _Node TokenID for this TokenFeeScheduleUpdateTransaction.
func (*TokenFeeScheduleUpdateTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenFeeScheduleUpdateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenFeeScheduleUpdateTransaction) SetTokenID ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetTokenID(tokenID TokenID) *TokenFeeScheduleUpdateTransaction
SetTokenID Sets the token whose fee schedule is to be updated
func (*TokenFeeScheduleUpdateTransaction) SetTransactionID ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionID(transactionID TransactionID) *TokenFeeScheduleUpdateTransaction
SetTransactionID sets the TransactionID for this TokenFeeScheduleUpdateTransaction.
func (*TokenFeeScheduleUpdateTransaction) SetTransactionMemo ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionMemo(memo string) *TokenFeeScheduleUpdateTransaction
SetTransactionMemo sets the memo for this TokenFeeScheduleUpdateTransaction.
func (*TokenFeeScheduleUpdateTransaction) SetTransactionValidDuration ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenFeeScheduleUpdateTransaction
SetTransactionValidDuration sets the valid duration for this TokenFeeScheduleUpdateTransaction.
func (*TokenFeeScheduleUpdateTransaction) Sign ¶
func (transaction *TokenFeeScheduleUpdateTransaction) Sign( privateKey PrivateKey, ) *TokenFeeScheduleUpdateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenFeeScheduleUpdateTransaction) SignWith ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenFeeScheduleUpdateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenFeeScheduleUpdateTransaction) SignWithOperator ¶
func (transaction *TokenFeeScheduleUpdateTransaction) SignWithOperator( client *Client, ) (*TokenFeeScheduleUpdateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenFreezeTransaction ¶
type TokenFreezeTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenFreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenFreezeTransaction
AddSignature adds a signature to the Transaction.
func (*TokenFreezeTransaction) Execute ¶
func (transaction *TokenFreezeTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenFreezeTransaction) Freeze ¶
func (transaction *TokenFreezeTransaction) Freeze() (*TokenFreezeTransaction, error)
func (*TokenFreezeTransaction) FreezeWith ¶
func (transaction *TokenFreezeTransaction) FreezeWith(client *Client) (*TokenFreezeTransaction, error)
func (*TokenFreezeTransaction) GetAccountID ¶
func (transaction *TokenFreezeTransaction) GetAccountID() AccountID
GetAccountID returns the account to be frozen
func (*TokenFreezeTransaction) GetMaxBackoff ¶
func (transaction *TokenFreezeTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenFreezeTransaction) GetMaxTransactionFee ¶
func (transaction *TokenFreezeTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenFreezeTransaction) GetMinBackoff ¶
func (transaction *TokenFreezeTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenFreezeTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenFreezeTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenFreezeTransaction) GetTokenID ¶
func (transaction *TokenFreezeTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will be frozen.
func (*TokenFreezeTransaction) GetTransactionID ¶
func (transaction *TokenFreezeTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenFreezeTransaction.
func (*TokenFreezeTransaction) GetTransactionMemo ¶
func (transaction *TokenFreezeTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenFreezeTransaction.
func (*TokenFreezeTransaction) GetTransactionValidDuration ¶
func (transaction *TokenFreezeTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenFreezeTransaction) IsFrozen ¶
func (transaction *TokenFreezeTransaction) IsFrozen() bool
func (*TokenFreezeTransaction) Schedule ¶
func (transaction *TokenFreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenFreezeTransaction) SetAccountID ¶
func (transaction *TokenFreezeTransaction) SetAccountID(accountID AccountID) *TokenFreezeTransaction
SetAccountID Sets the account to be frozen
func (*TokenFreezeTransaction) SetGrpcDeadline ¶
func (transaction *TokenFreezeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenFreezeTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenFreezeTransaction) SetLogLevel ¶
func (transaction *TokenFreezeTransaction) SetLogLevel(level LogLevel) *TokenFreezeTransaction
func (*TokenFreezeTransaction) SetMaxBackoff ¶
func (transaction *TokenFreezeTransaction) SetMaxBackoff(max time.Duration) *TokenFreezeTransaction
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 (*TokenFreezeTransaction) SetMaxRetry ¶
func (transaction *TokenFreezeTransaction) SetMaxRetry(count int) *TokenFreezeTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenFreezeTransaction) SetMaxTransactionFee ¶
func (transaction *TokenFreezeTransaction) SetMaxTransactionFee(fee Hbar) *TokenFreezeTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenFreezeTransaction) SetMinBackoff ¶
func (transaction *TokenFreezeTransaction) SetMinBackoff(min time.Duration) *TokenFreezeTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenFreezeTransaction) SetNodeAccountIDs ¶
func (transaction *TokenFreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenFreezeTransaction
SetNodeTokenID sets the _Node TokenID for this TokenFreezeTransaction.
func (*TokenFreezeTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenFreezeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenFreezeTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenFreezeTransaction) SetTokenID ¶
func (transaction *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
func (*TokenFreezeTransaction) SetTransactionID ¶
func (transaction *TokenFreezeTransaction) SetTransactionID(transactionID TransactionID) *TokenFreezeTransaction
SetTransactionID sets the TransactionID for this TokenFreezeTransaction.
func (*TokenFreezeTransaction) SetTransactionMemo ¶
func (transaction *TokenFreezeTransaction) SetTransactionMemo(memo string) *TokenFreezeTransaction
SetTransactionMemo sets the memo for this TokenFreezeTransaction.
func (*TokenFreezeTransaction) SetTransactionValidDuration ¶
func (transaction *TokenFreezeTransaction) SetTransactionValidDuration(duration time.Duration) *TokenFreezeTransaction
SetTransactionValidDuration sets the valid duration for this TokenFreezeTransaction.
func (*TokenFreezeTransaction) Sign ¶
func (transaction *TokenFreezeTransaction) Sign( privateKey PrivateKey, ) *TokenFreezeTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenFreezeTransaction) SignWith ¶
func (transaction *TokenFreezeTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenFreezeTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenFreezeTransaction) SignWithOperator ¶
func (transaction *TokenFreezeTransaction) SignWithOperator( client *Client, ) (*TokenFreezeTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenGrantKycTransaction ¶
type TokenGrantKycTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenGrantKycTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenGrantKycTransaction
AddSignature adds a signature to the Transaction.
func (*TokenGrantKycTransaction) Execute ¶
func (transaction *TokenGrantKycTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenGrantKycTransaction) Freeze ¶
func (transaction *TokenGrantKycTransaction) Freeze() (*TokenGrantKycTransaction, error)
func (*TokenGrantKycTransaction) FreezeWith ¶
func (transaction *TokenGrantKycTransaction) FreezeWith(client *Client) (*TokenGrantKycTransaction, error)
func (*TokenGrantKycTransaction) GetAccountID ¶
func (transaction *TokenGrantKycTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID that is being KYCed
func (*TokenGrantKycTransaction) GetMaxBackoff ¶
func (transaction *TokenGrantKycTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenGrantKycTransaction) GetMaxTransactionFee ¶
func (transaction *TokenGrantKycTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenGrantKycTransaction) GetMinBackoff ¶
func (transaction *TokenGrantKycTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenGrantKycTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenGrantKycTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenGrantKycTransaction) GetTokenID ¶
func (transaction *TokenGrantKycTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will be granted KYC.
func (*TokenGrantKycTransaction) GetTransactionID ¶
func (transaction *TokenGrantKycTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenGrantKycTransaction.
func (*TokenGrantKycTransaction) GetTransactionMemo ¶
func (transaction *TokenGrantKycTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenGrantKycTransaction.
func (*TokenGrantKycTransaction) GetTransactionValidDuration ¶
func (transaction *TokenGrantKycTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenGrantKycTransaction) IsFrozen ¶
func (transaction *TokenGrantKycTransaction) IsFrozen() bool
func (*TokenGrantKycTransaction) Schedule ¶
func (transaction *TokenGrantKycTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenGrantKycTransaction) SetAccountID ¶
func (transaction *TokenGrantKycTransaction) SetAccountID(accountID AccountID) *TokenGrantKycTransaction
SetAccountID Sets the account to be KYCed
func (*TokenGrantKycTransaction) SetGrpcDeadline ¶
func (transaction *TokenGrantKycTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenGrantKycTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenGrantKycTransaction) SetLogLevel ¶
func (transaction *TokenGrantKycTransaction) SetLogLevel(level LogLevel) *TokenGrantKycTransaction
func (*TokenGrantKycTransaction) SetMaxBackoff ¶
func (transaction *TokenGrantKycTransaction) SetMaxBackoff(max time.Duration) *TokenGrantKycTransaction
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 (*TokenGrantKycTransaction) SetMaxRetry ¶
func (transaction *TokenGrantKycTransaction) SetMaxRetry(count int) *TokenGrantKycTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenGrantKycTransaction) SetMaxTransactionFee ¶
func (transaction *TokenGrantKycTransaction) SetMaxTransactionFee(fee Hbar) *TokenGrantKycTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenGrantKycTransaction) SetMinBackoff ¶
func (transaction *TokenGrantKycTransaction) SetMinBackoff(min time.Duration) *TokenGrantKycTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenGrantKycTransaction) SetNodeAccountIDs ¶
func (transaction *TokenGrantKycTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenGrantKycTransaction
SetNodeTokenID sets the _Node TokenID for this TokenGrantKycTransaction.
func (*TokenGrantKycTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenGrantKycTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenGrantKycTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenGrantKycTransaction) SetTokenID ¶
func (transaction *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
func (*TokenGrantKycTransaction) SetTransactionID ¶
func (transaction *TokenGrantKycTransaction) SetTransactionID(transactionID TransactionID) *TokenGrantKycTransaction
SetTransactionID sets the TransactionID for this TokenGrantKycTransaction.
func (*TokenGrantKycTransaction) SetTransactionMemo ¶
func (transaction *TokenGrantKycTransaction) SetTransactionMemo(memo string) *TokenGrantKycTransaction
SetTransactionMemo sets the memo for this TokenGrantKycTransaction.
func (*TokenGrantKycTransaction) SetTransactionValidDuration ¶
func (transaction *TokenGrantKycTransaction) SetTransactionValidDuration(duration time.Duration) *TokenGrantKycTransaction
SetTransactionValidDuration sets the valid duration for this TokenGrantKycTransaction.
func (*TokenGrantKycTransaction) Sign ¶
func (transaction *TokenGrantKycTransaction) Sign( privateKey PrivateKey, ) *TokenGrantKycTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenGrantKycTransaction) SignWith ¶
func (transaction *TokenGrantKycTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenGrantKycTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenGrantKycTransaction) SignWithOperator ¶
func (transaction *TokenGrantKycTransaction) SignWithOperator( client *Client, ) (*TokenGrantKycTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenID ¶
type TokenID struct { Shard uint64 Realm uint64 Token uint64 // contains filtered or unexported fields }
TokenID is the ID for a Hedera token
func TokenIDFromBytes ¶
TokenIDFromBytes returns a TokenID from a byte array
func TokenIDFromSolidityAddress ¶
TokenIDFromSolidityAddress constructs a TokenID from a string representation of a _Solidity address
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) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of the TokenID as a _Solidity address.
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 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 (query *TokenInfoQuery) Execute(client *Client) (TokenInfo, error)
Execute executes the TopicInfoQuery using the provided client
func (*TokenInfoQuery) GetCost ¶
func (query *TokenInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*TokenInfoQuery) GetMaxBackoff ¶
func (query *TokenInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenInfoQuery) GetMinBackoff ¶
func (query *TokenInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenInfoQuery) GetTokenID ¶
func (query *TokenInfoQuery) GetTokenID() TokenID
GetTokenID returns the TokenID for this TokenInfoQuery
func (*TokenInfoQuery) SetGrpcDeadline ¶
func (query *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 (query *TokenInfoQuery) SetLogLevel(level LogLevel) *TokenInfoQuery
func (*TokenInfoQuery) SetMaxBackoff ¶
func (query *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 (query *TokenInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TokenInfoQuery) SetMaxRetry ¶
func (query *TokenInfoQuery) SetMaxRetry(count int) *TokenInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenInfoQuery) SetMinBackoff ¶
func (query *TokenInfoQuery) SetMinBackoff(min time.Duration) *TokenInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenInfoQuery) SetNodeAccountIDs ¶
func (query *TokenInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this TokenInfoQuery.
func (*TokenInfoQuery) SetPaymentTransactionID ¶
func (query *TokenInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TokenInfoQuery) SetQueryPayment ¶
func (query *TokenInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*TokenInfoQuery) SetTokenID ¶
func (query *TokenInfoQuery) SetTokenID(tokenID TokenID) *TokenInfoQuery
SetTokenID Sets the topic to retrieve info about (the parameters and running state of).
type TokenMintTransaction ¶
type TokenMintTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenMintTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenMintTransaction
AddSignature adds a signature to the Transaction.
func (*TokenMintTransaction) Execute ¶
func (transaction *TokenMintTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenMintTransaction) Freeze ¶
func (transaction *TokenMintTransaction) Freeze() (*TokenMintTransaction, error)
func (*TokenMintTransaction) FreezeWith ¶
func (transaction *TokenMintTransaction) FreezeWith(client *Client) (*TokenMintTransaction, error)
func (*TokenMintTransaction) GetAmount ¶
func (transaction *TokenMintTransaction) GetAmount() uint64
GetAmount returns the amount to mint from the Treasury Account
func (*TokenMintTransaction) GetMaxBackoff ¶
func (transaction *TokenMintTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenMintTransaction) GetMaxTransactionFee ¶
func (transaction *TokenMintTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenMintTransaction) GetMetadatas ¶
func (transaction *TokenMintTransaction) GetMetadatas() [][]byte
GetMetadatas returns the metadata that are being created.
func (*TokenMintTransaction) GetMinBackoff ¶
func (transaction *TokenMintTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenMintTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenMintTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenMintTransaction) GetTokenID ¶
func (transaction *TokenMintTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID for this TokenMintTransaction
func (*TokenMintTransaction) GetTransactionID ¶
func (transaction *TokenMintTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenMintTransaction.
func (*TokenMintTransaction) GetTransactionMemo ¶
func (transaction *TokenMintTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenMintTransaction.
func (*TokenMintTransaction) GetTransactionValidDuration ¶
func (transaction *TokenMintTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenMintTransaction) IsFrozen ¶
func (transaction *TokenMintTransaction) IsFrozen() bool
func (*TokenMintTransaction) Schedule ¶
func (transaction *TokenMintTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenMintTransaction) SetAmount ¶
func (transaction *TokenMintTransaction) SetAmount(amount uint64) *TokenMintTransaction
SetAmount Sets the amount to mint 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 (*TokenMintTransaction) SetGrpcDeadline ¶
func (transaction *TokenMintTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenMintTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenMintTransaction) SetLogLevel ¶
func (transaction *TokenMintTransaction) SetLogLevel(level LogLevel) *TokenMintTransaction
func (*TokenMintTransaction) SetMaxBackoff ¶
func (transaction *TokenMintTransaction) SetMaxBackoff(max time.Duration) *TokenMintTransaction
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 (*TokenMintTransaction) SetMaxRetry ¶
func (transaction *TokenMintTransaction) SetMaxRetry(count int) *TokenMintTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenMintTransaction) SetMaxTransactionFee ¶
func (transaction *TokenMintTransaction) SetMaxTransactionFee(fee Hbar) *TokenMintTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenMintTransaction) SetMetadata ¶
func (transaction *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 (transaction *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) SetMinBackoff ¶
func (transaction *TokenMintTransaction) SetMinBackoff(min time.Duration) *TokenMintTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenMintTransaction) SetNodeAccountIDs ¶
func (transaction *TokenMintTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenMintTransaction
SetNodeTokenID sets the _Node TokenID for this TokenMintTransaction.
func (*TokenMintTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenMintTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenMintTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenMintTransaction) SetTokenID ¶
func (transaction *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
func (*TokenMintTransaction) SetTransactionID ¶
func (transaction *TokenMintTransaction) SetTransactionID(transactionID TransactionID) *TokenMintTransaction
SetTransactionID sets the TransactionID for this TokenMintTransaction.
func (*TokenMintTransaction) SetTransactionMemo ¶
func (transaction *TokenMintTransaction) SetTransactionMemo(memo string) *TokenMintTransaction
SetTransactionMemo sets the memo for this TokenMintTransaction.
func (*TokenMintTransaction) SetTransactionValidDuration ¶
func (transaction *TokenMintTransaction) SetTransactionValidDuration(duration time.Duration) *TokenMintTransaction
SetTransactionValidDuration sets the valid duration for this TokenMintTransaction.
func (*TokenMintTransaction) Sign ¶
func (transaction *TokenMintTransaction) Sign( privateKey PrivateKey, ) *TokenMintTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenMintTransaction) SignWith ¶
func (transaction *TokenMintTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenMintTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenMintTransaction) SignWithOperator ¶
func (transaction *TokenMintTransaction) SignWithOperator( client *Client, ) (*TokenMintTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 (query *TokenNftInfoQuery) ByAccountID(id AccountID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) ByNftID ¶
func (query *TokenNftInfoQuery) ByNftID(id NftID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) ByTokenID ¶
func (query *TokenNftInfoQuery) ByTokenID(id TokenID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) Execute ¶
func (query *TokenNftInfoQuery) Execute(client *Client) ([]TokenNftInfo, error)
Execute executes the Query with the provided client
func (*TokenNftInfoQuery) GetAccountID ¶
func (query *TokenNftInfoQuery) GetAccountID() AccountID
Deprecated
func (*TokenNftInfoQuery) GetCost ¶
func (query *TokenNftInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*TokenNftInfoQuery) GetMaxBackoff ¶
func (query *TokenNftInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenNftInfoQuery) GetMinBackoff ¶
func (query *TokenNftInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenNftInfoQuery) GetNftID ¶
func (query *TokenNftInfoQuery) GetNftID() NftID
GetNftID returns the ID of the NFT
func (*TokenNftInfoQuery) GetTokenID ¶
func (query *TokenNftInfoQuery) GetTokenID() TokenID
Deprecated
func (*TokenNftInfoQuery) SetAccountID ¶
func (query *TokenNftInfoQuery) SetAccountID(id AccountID) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) SetEnd ¶
func (query *TokenNftInfoQuery) SetEnd(end int64) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) SetGrpcDeadline ¶
func (query *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 (query *TokenNftInfoQuery) SetLogLevel(level LogLevel) *TokenNftInfoQuery
func (*TokenNftInfoQuery) SetMaxBackoff ¶
func (query *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 (query *TokenNftInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenNftInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TokenNftInfoQuery) SetMaxRetry ¶
func (query *TokenNftInfoQuery) SetMaxRetry(count int) *TokenNftInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenNftInfoQuery) SetMinBackoff ¶
func (query *TokenNftInfoQuery) SetMinBackoff(min time.Duration) *TokenNftInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenNftInfoQuery) SetNftID ¶
func (query *TokenNftInfoQuery) SetNftID(nftID NftID) *TokenNftInfoQuery
SetNftID Sets the ID of the NFT
func (*TokenNftInfoQuery) SetNodeAccountIDs ¶
func (query *TokenNftInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenNftInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this TokenNftInfoQuery.
func (*TokenNftInfoQuery) SetPaymentTransactionID ¶
func (query *TokenNftInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenNftInfoQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TokenNftInfoQuery) SetQueryPayment ¶
func (query *TokenNftInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenNftInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*TokenNftInfoQuery) SetStart ¶
func (query *TokenNftInfoQuery) SetStart(start int64) *TokenNftInfoQuery
Deprecated
func (*TokenNftInfoQuery) SetTokenID ¶
func (query *TokenNftInfoQuery) SetTokenID(id TokenID) *TokenNftInfoQuery
Deprecated
type TokenNftTransfer ¶
type TokenNftTransfer struct { SenderAccountID AccountID ReceiverAccountID AccountID SerialNumber int64 IsApproved bool }
TokenNftTransfer is the information about a NFT transfer
func NftTransferFromBytes ¶
func NftTransferFromBytes(data []byte) (TokenNftTransfer, error)
TokenNftTransfersFromBytes returns the TokenNftTransfer from a raw protobuf bytes representation
func (TokenNftTransfer) ToBytes ¶
func (transfer TokenNftTransfer) ToBytes() []byte
ToBytes returns the byte representation of the TokenNftTransfer
type TokenPauseTransaction ¶
type TokenPauseTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenPauseTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenPauseTransaction
AddSignature adds a signature to the Transaction.
func (*TokenPauseTransaction) Execute ¶
func (transaction *TokenPauseTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenPauseTransaction) Freeze ¶
func (transaction *TokenPauseTransaction) Freeze() (*TokenPauseTransaction, error)
func (*TokenPauseTransaction) FreezeWith ¶
func (transaction *TokenPauseTransaction) FreezeWith(client *Client) (*TokenPauseTransaction, error)
func (*TokenPauseTransaction) GetMaxBackoff ¶
func (transaction *TokenPauseTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenPauseTransaction) GetMaxTransactionFee ¶
func (transaction *TokenPauseTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenPauseTransaction) GetMinBackoff ¶
func (transaction *TokenPauseTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenPauseTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenPauseTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenPauseTransaction) GetTokenID ¶
func (transaction *TokenPauseTransaction) GetTokenID() TokenID
GetTokenID returns the token to be paused
func (*TokenPauseTransaction) GetTransactionID ¶
func (transaction *TokenPauseTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenPauseTransaction.
func (*TokenPauseTransaction) GetTransactionMemo ¶
func (transaction *TokenPauseTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenPauseTransaction.
func (*TokenPauseTransaction) GetTransactionValidDuration ¶
func (transaction *TokenPauseTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenPauseTransaction) IsFrozen ¶
func (transaction *TokenPauseTransaction) IsFrozen() bool
func (*TokenPauseTransaction) Schedule ¶
func (transaction *TokenPauseTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenPauseTransaction) SetGrpcDeadline ¶
func (transaction *TokenPauseTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenPauseTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenPauseTransaction) SetLogLevel ¶
func (transaction *TokenPauseTransaction) SetLogLevel(level LogLevel) *TokenPauseTransaction
func (*TokenPauseTransaction) SetMaxBackoff ¶
func (transaction *TokenPauseTransaction) SetMaxBackoff(max time.Duration) *TokenPauseTransaction
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 (*TokenPauseTransaction) SetMaxRetry ¶
func (transaction *TokenPauseTransaction) SetMaxRetry(count int) *TokenPauseTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenPauseTransaction) SetMaxTransactionFee ¶
func (transaction *TokenPauseTransaction) SetMaxTransactionFee(fee Hbar) *TokenPauseTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenPauseTransaction) SetMinBackoff ¶
func (transaction *TokenPauseTransaction) SetMinBackoff(min time.Duration) *TokenPauseTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenPauseTransaction) SetNodeAccountIDs ¶
func (transaction *TokenPauseTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenPauseTransaction
SetNodeTokenID sets the _Node TokenID for this TokenPauseTransaction.
func (*TokenPauseTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenPauseTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenPauseTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenPauseTransaction) SetTokenID ¶
func (transaction *TokenPauseTransaction) SetTokenID(tokenID TokenID) *TokenPauseTransaction
SetTokenID Sets the token to be paused
func (*TokenPauseTransaction) SetTransactionID ¶
func (transaction *TokenPauseTransaction) SetTransactionID(transactionID TransactionID) *TokenPauseTransaction
SetTransactionID sets the TransactionID for this TokenPauseTransaction.
func (*TokenPauseTransaction) SetTransactionMemo ¶
func (transaction *TokenPauseTransaction) SetTransactionMemo(memo string) *TokenPauseTransaction
SetTransactionMemo sets the memo for this TokenPauseTransaction.
func (*TokenPauseTransaction) SetTransactionValidDuration ¶
func (transaction *TokenPauseTransaction) SetTransactionValidDuration(duration time.Duration) *TokenPauseTransaction
SetTransactionValidDuration sets the valid duration for this TokenPauseTransaction.
func (*TokenPauseTransaction) Sign ¶
func (transaction *TokenPauseTransaction) Sign( privateKey PrivateKey, ) *TokenPauseTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenPauseTransaction) SignWith ¶
func (transaction *TokenPauseTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenPauseTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenPauseTransaction) SignWithOperator ¶
func (transaction *TokenPauseTransaction) SignWithOperator( client *Client, ) (*TokenPauseTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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
type TokenRevokeKycTransaction ¶
type TokenRevokeKycTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenRevokeKycTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenRevokeKycTransaction
AddSignature adds a signature to the Transaction.
func (*TokenRevokeKycTransaction) Execute ¶
func (transaction *TokenRevokeKycTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenRevokeKycTransaction) Freeze ¶
func (transaction *TokenRevokeKycTransaction) Freeze() (*TokenRevokeKycTransaction, error)
func (*TokenRevokeKycTransaction) FreezeWith ¶
func (transaction *TokenRevokeKycTransaction) FreezeWith(client *Client) (*TokenRevokeKycTransaction, error)
func (*TokenRevokeKycTransaction) GetAccountID ¶
func (transaction *TokenRevokeKycTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID that is being KYC Revoked
func (*TokenRevokeKycTransaction) GetMaxBackoff ¶
func (transaction *TokenRevokeKycTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenRevokeKycTransaction) GetMaxTransactionFee ¶
func (transaction *TokenRevokeKycTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenRevokeKycTransaction) GetMinBackoff ¶
func (transaction *TokenRevokeKycTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenRevokeKycTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenRevokeKycTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenRevokeKycTransaction) GetTokenID ¶
func (transaction *TokenRevokeKycTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will get his KYC revoked.
func (*TokenRevokeKycTransaction) GetTransactionID ¶
func (transaction *TokenRevokeKycTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenRevokeKycTransaction.
func (*TokenRevokeKycTransaction) GetTransactionMemo ¶
func (transaction *TokenRevokeKycTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenRevokeKycTransaction.
func (*TokenRevokeKycTransaction) GetTransactionValidDuration ¶
func (transaction *TokenRevokeKycTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenRevokeKycTransaction) IsFrozen ¶
func (transaction *TokenRevokeKycTransaction) IsFrozen() bool
func (*TokenRevokeKycTransaction) Schedule ¶
func (transaction *TokenRevokeKycTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenRevokeKycTransaction) SetAccountID ¶
func (transaction *TokenRevokeKycTransaction) SetAccountID(accountID AccountID) *TokenRevokeKycTransaction
SetAccountID Sets the account to be KYC Revoked
func (*TokenRevokeKycTransaction) SetGrpcDeadline ¶
func (transaction *TokenRevokeKycTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenRevokeKycTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenRevokeKycTransaction) SetLogLevel ¶
func (transaction *TokenRevokeKycTransaction) SetLogLevel(level LogLevel) *TokenRevokeKycTransaction
func (*TokenRevokeKycTransaction) SetMaxBackoff ¶
func (transaction *TokenRevokeKycTransaction) SetMaxBackoff(max time.Duration) *TokenRevokeKycTransaction
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 (*TokenRevokeKycTransaction) SetMaxRetry ¶
func (transaction *TokenRevokeKycTransaction) SetMaxRetry(count int) *TokenRevokeKycTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenRevokeKycTransaction) SetMaxTransactionFee ¶
func (transaction *TokenRevokeKycTransaction) SetMaxTransactionFee(fee Hbar) *TokenRevokeKycTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenRevokeKycTransaction) SetMinBackoff ¶
func (transaction *TokenRevokeKycTransaction) SetMinBackoff(min time.Duration) *TokenRevokeKycTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenRevokeKycTransaction) SetNodeAccountIDs ¶
func (transaction *TokenRevokeKycTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenRevokeKycTransaction
SetNodeTokenID sets the _Node TokenID for this TokenRevokeKycTransaction.
func (*TokenRevokeKycTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenRevokeKycTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenRevokeKycTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenRevokeKycTransaction) SetTokenID ¶
func (transaction *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
func (*TokenRevokeKycTransaction) SetTransactionID ¶
func (transaction *TokenRevokeKycTransaction) SetTransactionID(transactionID TransactionID) *TokenRevokeKycTransaction
SetTransactionID sets the TransactionID for this TokenRevokeKycTransaction.
func (*TokenRevokeKycTransaction) SetTransactionMemo ¶
func (transaction *TokenRevokeKycTransaction) SetTransactionMemo(memo string) *TokenRevokeKycTransaction
SetTransactionMemo sets the memo for this TokenRevokeKycTransaction.
func (*TokenRevokeKycTransaction) SetTransactionValidDuration ¶
func (transaction *TokenRevokeKycTransaction) SetTransactionValidDuration(duration time.Duration) *TokenRevokeKycTransaction
SetTransactionValidDuration sets the valid duration for this TokenRevokeKycTransaction.
func (*TokenRevokeKycTransaction) Sign ¶
func (transaction *TokenRevokeKycTransaction) Sign( privateKey PrivateKey, ) *TokenRevokeKycTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenRevokeKycTransaction) SignWith ¶
func (transaction *TokenRevokeKycTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenRevokeKycTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenRevokeKycTransaction) SignWithOperator ¶
func (transaction *TokenRevokeKycTransaction) SignWithOperator( client *Client, ) (*TokenRevokeKycTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
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 // 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) AddSignature ¶
func (transaction *TokenUnfreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUnfreezeTransaction
AddSignature adds a signature to the Transaction.
func (*TokenUnfreezeTransaction) Execute ¶
func (transaction *TokenUnfreezeTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenUnfreezeTransaction) Freeze ¶
func (transaction *TokenUnfreezeTransaction) Freeze() (*TokenUnfreezeTransaction, error)
func (*TokenUnfreezeTransaction) FreezeWith ¶
func (transaction *TokenUnfreezeTransaction) FreezeWith(client *Client) (*TokenUnfreezeTransaction, error)
func (*TokenUnfreezeTransaction) GetAccountID ¶
func (transaction *TokenUnfreezeTransaction) GetAccountID() AccountID
GetAccountID returns the account to be unfrozen
func (*TokenUnfreezeTransaction) GetMaxBackoff ¶
func (transaction *TokenUnfreezeTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenUnfreezeTransaction) GetMaxTransactionFee ¶
func (transaction *TokenUnfreezeTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenUnfreezeTransaction) GetMinBackoff ¶
func (transaction *TokenUnfreezeTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenUnfreezeTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenUnfreezeTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenUnfreezeTransaction) GetTokenID ¶
func (transaction *TokenUnfreezeTransaction) GetTokenID() TokenID
GetTokenID returns the token for which this account will be unfrozen.
func (*TokenUnfreezeTransaction) GetTransactionID ¶
func (transaction *TokenUnfreezeTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenUnfreezeTransaction.
func (*TokenUnfreezeTransaction) GetTransactionMemo ¶
func (transaction *TokenUnfreezeTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenUnfreezeTransaction.
func (*TokenUnfreezeTransaction) GetTransactionValidDuration ¶
func (transaction *TokenUnfreezeTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenUnfreezeTransaction) IsFrozen ¶
func (transaction *TokenUnfreezeTransaction) IsFrozen() bool
func (*TokenUnfreezeTransaction) Schedule ¶
func (transaction *TokenUnfreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenUnfreezeTransaction) SetAccountID ¶
func (transaction *TokenUnfreezeTransaction) SetAccountID(accountID AccountID) *TokenUnfreezeTransaction
SetAccountID Sets the account to be unfrozen
func (*TokenUnfreezeTransaction) SetGrpcDeadline ¶
func (transaction *TokenUnfreezeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUnfreezeTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenUnfreezeTransaction) SetLogLevel ¶
func (transaction *TokenUnfreezeTransaction) SetLogLevel(level LogLevel) *TokenUnfreezeTransaction
func (*TokenUnfreezeTransaction) SetMaxBackoff ¶
func (transaction *TokenUnfreezeTransaction) SetMaxBackoff(max time.Duration) *TokenUnfreezeTransaction
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 (*TokenUnfreezeTransaction) SetMaxRetry ¶
func (transaction *TokenUnfreezeTransaction) SetMaxRetry(count int) *TokenUnfreezeTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenUnfreezeTransaction) SetMaxTransactionFee ¶
func (transaction *TokenUnfreezeTransaction) SetMaxTransactionFee(fee Hbar) *TokenUnfreezeTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenUnfreezeTransaction) SetMinBackoff ¶
func (transaction *TokenUnfreezeTransaction) SetMinBackoff(min time.Duration) *TokenUnfreezeTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenUnfreezeTransaction) SetNodeAccountIDs ¶
func (transaction *TokenUnfreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUnfreezeTransaction
SetNodeTokenID sets the _Node TokenID for this TokenUnfreezeTransaction.
func (*TokenUnfreezeTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenUnfreezeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUnfreezeTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenUnfreezeTransaction) SetTokenID ¶
func (transaction *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
func (*TokenUnfreezeTransaction) SetTransactionID ¶
func (transaction *TokenUnfreezeTransaction) SetTransactionID(transactionID TransactionID) *TokenUnfreezeTransaction
SetTransactionID sets the TransactionID for this TokenUnfreezeTransaction.
func (*TokenUnfreezeTransaction) SetTransactionMemo ¶
func (transaction *TokenUnfreezeTransaction) SetTransactionMemo(memo string) *TokenUnfreezeTransaction
SetTransactionMemo sets the memo for this TokenUnfreezeTransaction.
func (*TokenUnfreezeTransaction) SetTransactionValidDuration ¶
func (transaction *TokenUnfreezeTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUnfreezeTransaction
SetTransactionValidDuration sets the valid duration for this TokenUnfreezeTransaction.
func (*TokenUnfreezeTransaction) Sign ¶
func (transaction *TokenUnfreezeTransaction) Sign( privateKey PrivateKey, ) *TokenUnfreezeTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenUnfreezeTransaction) SignWith ¶
func (transaction *TokenUnfreezeTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenUnfreezeTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenUnfreezeTransaction) SignWithOperator ¶
func (transaction *TokenUnfreezeTransaction) SignWithOperator( client *Client, ) (*TokenUnfreezeTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenUnpauseTransaction ¶
type TokenUnpauseTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenUnpauseTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUnpauseTransaction
AddSignature adds a signature to the Transaction.
func (*TokenUnpauseTransaction) Execute ¶
func (transaction *TokenUnpauseTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenUnpauseTransaction) Freeze ¶
func (transaction *TokenUnpauseTransaction) Freeze() (*TokenUnpauseTransaction, error)
func (*TokenUnpauseTransaction) FreezeWith ¶
func (transaction *TokenUnpauseTransaction) FreezeWith(client *Client) (*TokenUnpauseTransaction, error)
func (*TokenUnpauseTransaction) GetMaxBackoff ¶
func (transaction *TokenUnpauseTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenUnpauseTransaction) GetMaxTransactionFee ¶
func (transaction *TokenUnpauseTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenUnpauseTransaction) GetMinBackoff ¶
func (transaction *TokenUnpauseTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenUnpauseTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenUnpauseTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenUnpauseTransaction) GetTokenID ¶
func (transaction *TokenUnpauseTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID of the token to be unpaused.
func (*TokenUnpauseTransaction) GetTransactionID ¶
func (transaction *TokenUnpauseTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenUnpauseTransaction.
func (*TokenUnpauseTransaction) GetTransactionMemo ¶
func (transaction *TokenUnpauseTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenUnpauseTransaction.
func (*TokenUnpauseTransaction) GetTransactionValidDuration ¶
func (transaction *TokenUnpauseTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenUnpauseTransaction) IsFrozen ¶
func (transaction *TokenUnpauseTransaction) IsFrozen() bool
func (*TokenUnpauseTransaction) Schedule ¶
func (transaction *TokenUnpauseTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenUnpauseTransaction) SetGrpcDeadline ¶
func (transaction *TokenUnpauseTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUnpauseTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenUnpauseTransaction) SetLogLevel ¶
func (transaction *TokenUnpauseTransaction) SetLogLevel(level LogLevel) *TokenUnpauseTransaction
func (*TokenUnpauseTransaction) SetMaxBackoff ¶
func (transaction *TokenUnpauseTransaction) SetMaxBackoff(max time.Duration) *TokenUnpauseTransaction
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 (*TokenUnpauseTransaction) SetMaxRetry ¶
func (transaction *TokenUnpauseTransaction) SetMaxRetry(count int) *TokenUnpauseTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenUnpauseTransaction) SetMaxTransactionFee ¶
func (transaction *TokenUnpauseTransaction) SetMaxTransactionFee(fee Hbar) *TokenUnpauseTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenUnpauseTransaction) SetMinBackoff ¶
func (transaction *TokenUnpauseTransaction) SetMinBackoff(min time.Duration) *TokenUnpauseTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenUnpauseTransaction) SetNodeAccountIDs ¶
func (transaction *TokenUnpauseTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUnpauseTransaction
SetNodeTokenID sets the _Node TokenID for this TokenUnpauseTransaction.
func (*TokenUnpauseTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenUnpauseTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUnpauseTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenUnpauseTransaction) SetTokenID ¶
func (transaction *TokenUnpauseTransaction) SetTokenID(tokenID TokenID) *TokenUnpauseTransaction
SetTokenID Sets the token to be unpaused.
func (*TokenUnpauseTransaction) SetTransactionID ¶
func (transaction *TokenUnpauseTransaction) SetTransactionID(transactionID TransactionID) *TokenUnpauseTransaction
SetTransactionID sets the TransactionID for this TokenUnpauseTransaction.
func (*TokenUnpauseTransaction) SetTransactionMemo ¶
func (transaction *TokenUnpauseTransaction) SetTransactionMemo(memo string) *TokenUnpauseTransaction
SetTransactionMemo sets the memo for this TokenUnpauseTransaction.
func (*TokenUnpauseTransaction) SetTransactionValidDuration ¶
func (transaction *TokenUnpauseTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUnpauseTransaction
SetTransactionValidDuration sets the valid duration for this TokenUnpauseTransaction.
func (*TokenUnpauseTransaction) Sign ¶
func (transaction *TokenUnpauseTransaction) Sign( privateKey PrivateKey, ) *TokenUnpauseTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenUnpauseTransaction) SignWith ¶
func (transaction *TokenUnpauseTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenUnpauseTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenUnpauseTransaction) SignWithOperator ¶
func (transaction *TokenUnpauseTransaction) SignWithOperator( client *Client, ) (*TokenUnpauseTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TokenUpdateTransaction ¶
type TokenUpdateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUpdateTransaction
AddSignature adds a signature to the Transaction.
func (*TokenUpdateTransaction) Execute ¶
func (transaction *TokenUpdateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenUpdateTransaction) Freeze ¶
func (transaction *TokenUpdateTransaction) Freeze() (*TokenUpdateTransaction, error)
func (*TokenUpdateTransaction) FreezeWith ¶
func (transaction *TokenUpdateTransaction) FreezeWith(client *Client) (*TokenUpdateTransaction, error)
func (*TokenUpdateTransaction) GeTokenMemo ¶
func (transaction *TokenUpdateTransaction) GeTokenMemo() string
func (*TokenUpdateTransaction) GetAdminKey ¶
func (transaction *TokenUpdateTransaction) GetAdminKey() Key
func (*TokenUpdateTransaction) GetAutoRenewAccount ¶
func (transaction *TokenUpdateTransaction) GetAutoRenewAccount() AccountID
func (*TokenUpdateTransaction) GetAutoRenewPeriod ¶
func (transaction *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 (transaction *TokenUpdateTransaction) GetExpirationTime() time.Time
func (*TokenUpdateTransaction) GetFeeScheduleKey ¶
func (transaction *TokenUpdateTransaction) GetFeeScheduleKey() Key
GetFeeScheduleKey returns the new key to use to update the token's custom fee schedule
func (*TokenUpdateTransaction) GetFreezeKey ¶
func (transaction *TokenUpdateTransaction) GetFreezeKey() Key
GetFreezeKey returns the new Freeze key of the Token
func (*TokenUpdateTransaction) GetKycKey ¶
func (transaction *TokenUpdateTransaction) GetKycKey() Key
GetKycKey returns the new KYC key of the Token
func (*TokenUpdateTransaction) GetMaxBackoff ¶
func (transaction *TokenUpdateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenUpdateTransaction) GetMaxTransactionFee ¶
func (transaction *TokenUpdateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenUpdateTransaction) GetMinBackoff ¶
func (transaction *TokenUpdateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenUpdateTransaction) GetPauseKey ¶
func (transaction *TokenUpdateTransaction) GetPauseKey() Key
GetPauseKey returns the Key which can pause and unpause the Token
func (*TokenUpdateTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenUpdateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenUpdateTransaction) GetSupplyKey ¶
func (transaction *TokenUpdateTransaction) GetSupplyKey() Key
GetSupplyKey returns the new Supply key of the Token
func (*TokenUpdateTransaction) GetTokenID ¶
func (transaction *TokenUpdateTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID for this TokenUpdateTransaction
func (*TokenUpdateTransaction) GetTokenName ¶
func (transaction *TokenUpdateTransaction) GetTokenName() string
GetTokenName returns the TokenName for this TokenUpdateTransaction
func (*TokenUpdateTransaction) GetTokenSymbol ¶
func (transaction *TokenUpdateTransaction) GetTokenSymbol() string
func (*TokenUpdateTransaction) GetTransactionID ¶
func (transaction *TokenUpdateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenUpdateTransaction.
func (*TokenUpdateTransaction) GetTransactionMemo ¶
func (transaction *TokenUpdateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenUpdateTransaction.
func (*TokenUpdateTransaction) GetTransactionValidDuration ¶
func (transaction *TokenUpdateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenUpdateTransaction) GetTreasuryAccountID ¶
func (transaction *TokenUpdateTransaction) GetTreasuryAccountID() AccountID
func (*TokenUpdateTransaction) GetWipeKey ¶
func (transaction *TokenUpdateTransaction) GetWipeKey() Key
GetWipeKey returns the new Wipe key of the Token
func (*TokenUpdateTransaction) IsFrozen ¶
func (transaction *TokenUpdateTransaction) IsFrozen() bool
func (*TokenUpdateTransaction) Schedule ¶
func (transaction *TokenUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenUpdateTransaction) SetAdminKey ¶
func (transaction *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 (transaction *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 (transaction *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) SetExpirationTime ¶
func (transaction *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 (transaction *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 (transaction *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) SetGrpcDeadline ¶
func (transaction *TokenUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUpdateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenUpdateTransaction) SetKycKey ¶
func (transaction *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) SetLogLevel ¶
func (transaction *TokenUpdateTransaction) SetLogLevel(level LogLevel) *TokenUpdateTransaction
func (*TokenUpdateTransaction) SetMaxBackoff ¶
func (transaction *TokenUpdateTransaction) SetMaxBackoff(max time.Duration) *TokenUpdateTransaction
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 (*TokenUpdateTransaction) SetMaxRetry ¶
func (transaction *TokenUpdateTransaction) SetMaxRetry(count int) *TokenUpdateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenUpdateTransaction) SetMaxTransactionFee ¶
func (transaction *TokenUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TokenUpdateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenUpdateTransaction) SetMinBackoff ¶
func (transaction *TokenUpdateTransaction) SetMinBackoff(min time.Duration) *TokenUpdateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenUpdateTransaction) SetNodeAccountIDs ¶
func (transaction *TokenUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUpdateTransaction
SetNodeTokenID sets the _Node TokenID for this TokenUpdateTransaction.
func (*TokenUpdateTransaction) SetPauseKey ¶
func (transaction *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) SetRegenerateTransactionID ¶
func (transaction *TokenUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUpdateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenUpdateTransaction) SetSupplyKey ¶
func (transaction *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 (transaction *TokenUpdateTransaction) SetTokenID(tokenID TokenID) *TokenUpdateTransaction
SetTokenID Sets the Token to be updated
func (*TokenUpdateTransaction) SetTokenMemo ¶
func (transaction *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) SetTokenName ¶
func (transaction *TokenUpdateTransaction) SetTokenName(name string) *TokenUpdateTransaction
SetTokenName Sets the new Name of the Token. Must be a string of ASCII characters.
func (*TokenUpdateTransaction) SetTokenSymbol ¶
func (transaction *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) SetTransactionID ¶
func (transaction *TokenUpdateTransaction) SetTransactionID(transactionID TransactionID) *TokenUpdateTransaction
SetTransactionID sets the TransactionID for this TokenUpdateTransaction.
func (*TokenUpdateTransaction) SetTransactionMemo ¶
func (transaction *TokenUpdateTransaction) SetTransactionMemo(memo string) *TokenUpdateTransaction
SetTransactionMemo sets the memo for this TokenUpdateTransaction.
func (*TokenUpdateTransaction) SetTransactionValidDuration ¶
func (transaction *TokenUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUpdateTransaction
SetTransactionValidDuration sets the valid duration for this TokenUpdateTransaction.
func (*TokenUpdateTransaction) SetTreasuryAccountID ¶
func (transaction *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 (transaction *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.
func (*TokenUpdateTransaction) Sign ¶
func (transaction *TokenUpdateTransaction) Sign( privateKey PrivateKey, ) *TokenUpdateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenUpdateTransaction) SignWith ¶
func (transaction *TokenUpdateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenUpdateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenUpdateTransaction) SignWithOperator ¶
func (transaction *TokenUpdateTransaction) SignWithOperator( client *Client, ) (*TokenUpdateTransaction, error)
SignWithOperator signs the transaction with a privateKey generated from the operator public and private keys.
type TokenWipeTransaction ¶
type TokenWipeTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TokenWipeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenWipeTransaction
AddSignature adds a signature to the Transaction.
func (*TokenWipeTransaction) Execute ¶
func (transaction *TokenWipeTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TokenWipeTransaction) Freeze ¶
func (transaction *TokenWipeTransaction) Freeze() (*TokenWipeTransaction, error)
func (*TokenWipeTransaction) FreezeWith ¶
func (transaction *TokenWipeTransaction) FreezeWith(client *Client) (*TokenWipeTransaction, error)
func (*TokenWipeTransaction) GetAccountID ¶
func (transaction *TokenWipeTransaction) GetAccountID() AccountID
GetAccountID returns the AccountID that is being wiped
func (*TokenWipeTransaction) GetAmount ¶
func (transaction *TokenWipeTransaction) GetAmount() uint64
GetAmount returns the amount of tokens to be wiped from the specified account
func (*TokenWipeTransaction) GetMaxBackoff ¶
func (transaction *TokenWipeTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TokenWipeTransaction) GetMaxTransactionFee ¶
func (transaction *TokenWipeTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenWipeTransaction) GetMinBackoff ¶
func (transaction *TokenWipeTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TokenWipeTransaction) GetRegenerateTransactionID ¶
func (transaction *TokenWipeTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TokenWipeTransaction) GetSerialNumbers ¶
func (transaction *TokenWipeTransaction) GetSerialNumbers() []int64
GetSerialNumbers returns the list of serial numbers to be wiped.
func (*TokenWipeTransaction) GetTokenID ¶
func (transaction *TokenWipeTransaction) GetTokenID() TokenID
GetTokenID returns the TokenID that is being wiped
func (*TokenWipeTransaction) GetTransactionID ¶
func (transaction *TokenWipeTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TokenWipeTransaction.
func (*TokenWipeTransaction) GetTransactionMemo ¶
func (transaction *TokenWipeTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TokenWipeTransaction.
func (*TokenWipeTransaction) GetTransactionValidDuration ¶
func (transaction *TokenWipeTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TokenWipeTransaction) IsFrozen ¶
func (transaction *TokenWipeTransaction) IsFrozen() bool
func (*TokenWipeTransaction) Schedule ¶
func (transaction *TokenWipeTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TokenWipeTransaction) SetAccountID ¶
func (transaction *TokenWipeTransaction) SetAccountID(accountID AccountID) *TokenWipeTransaction
SetAccountID Sets the account to be wiped
func (*TokenWipeTransaction) SetAmount ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *TokenWipeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenWipeTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TokenWipeTransaction) SetLogLevel ¶
func (transaction *TokenWipeTransaction) SetLogLevel(level LogLevel) *TokenWipeTransaction
func (*TokenWipeTransaction) SetMaxBackoff ¶
func (transaction *TokenWipeTransaction) SetMaxBackoff(max time.Duration) *TokenWipeTransaction
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 (*TokenWipeTransaction) SetMaxRetry ¶
func (transaction *TokenWipeTransaction) SetMaxRetry(count int) *TokenWipeTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TokenWipeTransaction) SetMaxTransactionFee ¶
func (transaction *TokenWipeTransaction) SetMaxTransactionFee(fee Hbar) *TokenWipeTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TokenWipeTransaction) SetMinBackoff ¶
func (transaction *TokenWipeTransaction) SetMinBackoff(min time.Duration) *TokenWipeTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TokenWipeTransaction) SetNodeAccountIDs ¶
func (transaction *TokenWipeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenWipeTransaction
SetNodeTokenID sets the _Node TokenID for this TokenWipeTransaction.
func (*TokenWipeTransaction) SetRegenerateTransactionID ¶
func (transaction *TokenWipeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenWipeTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TokenWipeTransaction) SetSerialNumbers ¶
func (transaction *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 (transaction *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
func (*TokenWipeTransaction) SetTransactionID ¶
func (transaction *TokenWipeTransaction) SetTransactionID(transactionID TransactionID) *TokenWipeTransaction
SetTransactionID sets the TransactionID for this TokenWipeTransaction.
func (*TokenWipeTransaction) SetTransactionMemo ¶
func (transaction *TokenWipeTransaction) SetTransactionMemo(memo string) *TokenWipeTransaction
SetTransactionMemo sets the memo for this TokenWipeTransaction.
func (*TokenWipeTransaction) SetTransactionValidDuration ¶
func (transaction *TokenWipeTransaction) SetTransactionValidDuration(duration time.Duration) *TokenWipeTransaction
SetTransactionValidDuration sets the valid duration for this TokenWipeTransaction.
func (*TokenWipeTransaction) Sign ¶
func (transaction *TokenWipeTransaction) Sign( privateKey PrivateKey, ) *TokenWipeTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TokenWipeTransaction) SignWith ¶
func (transaction *TokenWipeTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TokenWipeTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TokenWipeTransaction) SignWithOperator ¶
func (transaction *TokenWipeTransaction) SignWithOperator( client *Client, ) (*TokenWipeTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TopicCreateTransaction ¶
type TopicCreateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TopicCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicCreateTransaction
AddSignature adds a signature to the Transaction.
func (*TopicCreateTransaction) Execute ¶
func (transaction *TopicCreateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TopicCreateTransaction) Freeze ¶
func (transaction *TopicCreateTransaction) Freeze() (*TopicCreateTransaction, error)
func (*TopicCreateTransaction) FreezeWith ¶
func (transaction *TopicCreateTransaction) FreezeWith(client *Client) (*TopicCreateTransaction, error)
func (*TopicCreateTransaction) GetAdminKey ¶
func (transaction *TopicCreateTransaction) GetAdminKey() (Key, error)
GetAdminKey returns the key required to update or delete the topic
func (*TopicCreateTransaction) GetAutoRenewAccountID ¶
func (transaction *TopicCreateTransaction) GetAutoRenewAccountID() AccountID
GetAutoRenewAccountID returns the auto renew account ID for this topic
func (*TopicCreateTransaction) GetAutoRenewPeriod ¶
func (transaction *TopicCreateTransaction) GetAutoRenewPeriod() time.Duration
GetAutoRenewPeriod returns the auto renew period for this topic
func (*TopicCreateTransaction) GetMaxBackoff ¶
func (transaction *TopicCreateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TopicCreateTransaction) GetMaxTransactionFee ¶
func (transaction *TopicCreateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicCreateTransaction) GetMinBackoff ¶
func (transaction *TopicCreateTransaction) GetMinBackoff() time.Duration
func (*TopicCreateTransaction) GetRegenerateTransactionID ¶
func (transaction *TopicCreateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TopicCreateTransaction) GetSubmitKey ¶
func (transaction *TopicCreateTransaction) GetSubmitKey() (Key, error)
GetSubmitKey returns the key required for submitting messages to the topic
func (*TopicCreateTransaction) GetTopicMemo ¶
func (transaction *TopicCreateTransaction) GetTopicMemo() string
GetTopicMemo returns the memo for this topic
func (*TopicCreateTransaction) GetTransactionID ¶
func (transaction *TopicCreateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TopicCreateTransaction.
func (*TopicCreateTransaction) GetTransactionMemo ¶
func (transaction *TopicCreateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TopicCreateTransaction.
func (*TopicCreateTransaction) GetTransactionValidDuration ¶
func (transaction *TopicCreateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TopicCreateTransaction) IsFrozen ¶
func (transaction *TopicCreateTransaction) IsFrozen() bool
func (*TopicCreateTransaction) Schedule ¶
func (transaction *TopicCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TopicCreateTransaction) SetAdminKey ¶
func (transaction *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 (transaction *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 (transaction *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) SetGrpcDeadline ¶
func (transaction *TopicCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicCreateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TopicCreateTransaction) SetLogLevel ¶
func (transaction *TopicCreateTransaction) SetLogLevel(level LogLevel) *TopicCreateTransaction
func (*TopicCreateTransaction) SetMaxBackoff ¶
func (transaction *TopicCreateTransaction) SetMaxBackoff(max time.Duration) *TopicCreateTransaction
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 (*TopicCreateTransaction) SetMaxRetry ¶
func (transaction *TopicCreateTransaction) SetMaxRetry(count int) *TopicCreateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TopicCreateTransaction) SetMaxTransactionFee ¶
func (transaction *TopicCreateTransaction) SetMaxTransactionFee(fee Hbar) *TopicCreateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicCreateTransaction) SetMinBackoff ¶
func (transaction *TopicCreateTransaction) SetMinBackoff(min time.Duration) *TopicCreateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TopicCreateTransaction) SetNodeAccountIDs ¶
func (transaction *TopicCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicCreateTransaction
SetNodeAccountID sets the _Node AccountID for this TopicCreateTransaction.
func (*TopicCreateTransaction) SetRegenerateTransactionID ¶
func (transaction *TopicCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicCreateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TopicCreateTransaction) SetSubmitKey ¶
func (transaction *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 (transaction *TopicCreateTransaction) SetTopicMemo(memo string) *TopicCreateTransaction
SetTopicMemo sets a short publicly visible memo about the topic. No guarantee of uniqueness.
func (*TopicCreateTransaction) SetTransactionID ¶
func (transaction *TopicCreateTransaction) SetTransactionID(transactionID TransactionID) *TopicCreateTransaction
SetTransactionID sets the TransactionID for this TopicCreateTransaction.
func (*TopicCreateTransaction) SetTransactionMemo ¶
func (transaction *TopicCreateTransaction) SetTransactionMemo(memo string) *TopicCreateTransaction
SetTransactionMemo sets the memo for this TopicCreateTransaction.
func (*TopicCreateTransaction) SetTransactionValidDuration ¶
func (transaction *TopicCreateTransaction) SetTransactionValidDuration(duration time.Duration) *TopicCreateTransaction
SetTransactionValidDuration sets the valid duration for this TopicCreateTransaction.
func (*TopicCreateTransaction) Sign ¶
func (transaction *TopicCreateTransaction) Sign( privateKey PrivateKey, ) *TopicCreateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TopicCreateTransaction) SignWith ¶
func (transaction *TopicCreateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TopicCreateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TopicCreateTransaction) SignWithOperator ¶
func (transaction *TopicCreateTransaction) SignWithOperator( client *Client, ) (*TopicCreateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TopicDeleteTransaction ¶
type TopicDeleteTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TopicDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicDeleteTransaction
AddSignature adds a signature to the Transaction.
func (*TopicDeleteTransaction) Execute ¶
func (transaction *TopicDeleteTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TopicDeleteTransaction) Freeze ¶
func (transaction *TopicDeleteTransaction) Freeze() (*TopicDeleteTransaction, error)
func (*TopicDeleteTransaction) FreezeWith ¶
func (transaction *TopicDeleteTransaction) FreezeWith(client *Client) (*TopicDeleteTransaction, error)
func (*TopicDeleteTransaction) GetMaxBackoff ¶
func (transaction *TopicDeleteTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TopicDeleteTransaction) GetMinBackoff ¶
func (transaction *TopicDeleteTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TopicDeleteTransaction) GetRegenerateTransactionID ¶
func (transaction *TopicDeleteTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TopicDeleteTransaction) GetTopicID ¶
func (transaction *TopicDeleteTransaction) GetTopicID() TopicID
GetTopicID returns the topic IDentifier.
func (*TopicDeleteTransaction) IsFrozen ¶
func (transaction *TopicDeleteTransaction) IsFrozen() bool
func (*TopicDeleteTransaction) Schedule ¶
func (transaction *TopicDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TopicDeleteTransaction) SetGrpcDeadline ¶
func (transaction *TopicDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicDeleteTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TopicDeleteTransaction) SetLogLevel ¶
func (transaction *TopicDeleteTransaction) SetLogLevel(level LogLevel) *TopicDeleteTransaction
func (*TopicDeleteTransaction) SetMaxBackoff ¶
func (transaction *TopicDeleteTransaction) SetMaxBackoff(max time.Duration) *TopicDeleteTransaction
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 (*TopicDeleteTransaction) SetMaxRetry ¶
func (transaction *TopicDeleteTransaction) SetMaxRetry(count int) *TopicDeleteTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TopicDeleteTransaction) SetMaxTransactionFee ¶
func (transaction *TopicDeleteTransaction) SetMaxTransactionFee(fee Hbar) *TopicDeleteTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicDeleteTransaction) SetMinBackoff ¶
func (transaction *TopicDeleteTransaction) SetMinBackoff(min time.Duration) *TopicDeleteTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TopicDeleteTransaction) SetNodeAccountIDs ¶
func (transaction *TopicDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicDeleteTransaction
SetNodeAccountID sets the _Node AccountID for this TopicDeleteTransaction.
func (*TopicDeleteTransaction) SetRegenerateTransactionID ¶
func (transaction *TopicDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicDeleteTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TopicDeleteTransaction) SetTopicID ¶
func (transaction *TopicDeleteTransaction) SetTopicID(topicID TopicID) *TopicDeleteTransaction
SetTopicID sets the topic IDentifier.
func (*TopicDeleteTransaction) SetTransactionID ¶
func (transaction *TopicDeleteTransaction) SetTransactionID(transactionID TransactionID) *TopicDeleteTransaction
SetTransactionID sets the TransactionID for this TopicDeleteTransaction.
func (*TopicDeleteTransaction) SetTransactionMemo ¶
func (transaction *TopicDeleteTransaction) SetTransactionMemo(memo string) *TopicDeleteTransaction
SetTransactionMemo sets the memo for this TopicDeleteTransaction.
func (*TopicDeleteTransaction) SetTransactionValidDuration ¶
func (transaction *TopicDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *TopicDeleteTransaction
SetTransactionValidDuration sets the valid duration for this TopicDeleteTransaction.
func (*TopicDeleteTransaction) Sign ¶
func (transaction *TopicDeleteTransaction) Sign( privateKey PrivateKey, ) *TopicDeleteTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TopicDeleteTransaction) SignWith ¶
func (transaction *TopicDeleteTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TopicDeleteTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TopicDeleteTransaction) SignWithOperator ¶
func (transaction *TopicDeleteTransaction) SignWithOperator( client *Client, ) (*TopicDeleteTransaction, error)
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 TopicIDFromSolidityAddress ¶
TopicIDFromSolidityAddress constructs an TopicID from a string representation of a _Solidity address
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) ToSolidityAddress ¶
ToSolidityAddress returns the string representation of the TopicID as a _Solidity address.
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 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 Hedera 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 (query *TopicInfoQuery) Execute(client *Client) (TopicInfo, error)
Execute executes the TopicInfoQuery using the provided client
func (*TopicInfoQuery) GetCost ¶
func (query *TopicInfoQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*TopicInfoQuery) GetMaxBackoff ¶
func (query *TopicInfoQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TopicInfoQuery) GetMinBackoff ¶
func (query *TopicInfoQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TopicInfoQuery) GetTopicID ¶
func (query *TopicInfoQuery) GetTopicID() TopicID
GetTopicID returns the TopicID for this TopicInfoQuery
func (*TopicInfoQuery) SetGrpcDeadline ¶
func (query *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 (query *TopicInfoQuery) SetLogLevel(level LogLevel) *TopicInfoQuery
func (*TopicInfoQuery) SetMaxBackoff ¶
func (query *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 (query *TopicInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TopicInfoQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TopicInfoQuery) SetMaxRetry ¶
func (query *TopicInfoQuery) SetMaxRetry(count int) *TopicInfoQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TopicInfoQuery) SetMinBackoff ¶
func (query *TopicInfoQuery) SetMinBackoff(min time.Duration) *TopicInfoQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TopicInfoQuery) SetNodeAccountIDs ¶
func (query *TopicInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TopicInfoQuery
SetNodeAccountIDs sets the _Node AccountID for this TopicInfoQuery.
func (*TopicInfoQuery) SetPaymentTransactionID ¶
func (query *TopicInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TopicInfoQuery
func (*TopicInfoQuery) SetQueryPayment ¶
func (query *TopicInfoQuery) SetQueryPayment(paymentAmount Hbar) *TopicInfoQuery
SetQueryPayment sets the payment amount for this Query.
func (*TopicInfoQuery) SetTopicID ¶
func (query *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 // 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) AddSignature ¶
func (transaction *TopicMessageSubmitTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicMessageSubmitTransaction
AddSignature adds a signature to the Transaction.
func (*TopicMessageSubmitTransaction) Execute ¶
func (transaction *TopicMessageSubmitTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Query with the provided client
func (*TopicMessageSubmitTransaction) ExecuteAll ¶
func (transaction *TopicMessageSubmitTransaction) ExecuteAll( client *Client, ) ([]TransactionResponse, error)
ExecuteAll executes the all the Transactions with the provided client
func (*TopicMessageSubmitTransaction) Freeze ¶
func (transaction *TopicMessageSubmitTransaction) Freeze() (*TopicMessageSubmitTransaction, error)
func (*TopicMessageSubmitTransaction) FreezeWith ¶
func (transaction *TopicMessageSubmitTransaction) FreezeWith(client *Client) (*TopicMessageSubmitTransaction, error)
func (*TopicMessageSubmitTransaction) GetMaxBackoff ¶
func (transaction *TopicMessageSubmitTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TopicMessageSubmitTransaction) GetMaxChunks ¶
func (transaction *TopicMessageSubmitTransaction) GetMaxChunks() uint64
GetMaxChunks returns the maximum amount of chunks to use to send the message
func (*TopicMessageSubmitTransaction) GetMaxTransactionFee ¶
func (transaction *TopicMessageSubmitTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicMessageSubmitTransaction) GetMessage ¶
func (transaction *TopicMessageSubmitTransaction) GetMessage() []byte
func (*TopicMessageSubmitTransaction) GetMinBackoff ¶
func (transaction *TopicMessageSubmitTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TopicMessageSubmitTransaction) GetRegenerateTransactionID ¶
func (transaction *TopicMessageSubmitTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TopicMessageSubmitTransaction) GetTopicID ¶
func (transaction *TopicMessageSubmitTransaction) GetTopicID() TopicID
GetTopicID returns the TopicID for this TopicMessageSubmitTransaction
func (*TopicMessageSubmitTransaction) GetTransactionID ¶
func (transaction *TopicMessageSubmitTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TopicMessageSubmitTransaction.
func (*TopicMessageSubmitTransaction) GetTransactionMemo ¶
func (transaction *TopicMessageSubmitTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TopicMessageSubmitTransaction.
func (*TopicMessageSubmitTransaction) GetTransactionValidDuration ¶
func (transaction *TopicMessageSubmitTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TopicMessageSubmitTransaction) IsFrozen ¶
func (transaction *TopicMessageSubmitTransaction) IsFrozen() bool
func (*TopicMessageSubmitTransaction) Schedule ¶
func (transaction *TopicMessageSubmitTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TopicMessageSubmitTransaction) SetGrpcDeadline ¶
func (transaction *TopicMessageSubmitTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicMessageSubmitTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TopicMessageSubmitTransaction) SetLogLevel ¶
func (transaction *TopicMessageSubmitTransaction) SetLogLevel(level LogLevel) *TopicMessageSubmitTransaction
func (*TopicMessageSubmitTransaction) SetMaxBackoff ¶
func (transaction *TopicMessageSubmitTransaction) SetMaxBackoff(max time.Duration) *TopicMessageSubmitTransaction
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 (*TopicMessageSubmitTransaction) SetMaxChunks ¶
func (transaction *TopicMessageSubmitTransaction) SetMaxChunks(maxChunks uint64) *TopicMessageSubmitTransaction
SetMaxChunks sets the maximum amount of chunks to use to send the message
func (*TopicMessageSubmitTransaction) SetMaxRetry ¶
func (transaction *TopicMessageSubmitTransaction) SetMaxRetry(count int) *TopicMessageSubmitTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TopicMessageSubmitTransaction) SetMaxTransactionFee ¶
func (transaction *TopicMessageSubmitTransaction) SetMaxTransactionFee(fee Hbar) *TopicMessageSubmitTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicMessageSubmitTransaction) SetMessage ¶
func (transaction *TopicMessageSubmitTransaction) SetMessage(message []byte) *TopicMessageSubmitTransaction
SetMessage Sets the message to be submitted.
func (*TopicMessageSubmitTransaction) SetMinBackoff ¶
func (transaction *TopicMessageSubmitTransaction) SetMinBackoff(min time.Duration) *TopicMessageSubmitTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TopicMessageSubmitTransaction) SetNodeAccountIDs ¶
func (transaction *TopicMessageSubmitTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicMessageSubmitTransaction
SetNodeAccountID sets the _Node AccountID for this TopicMessageSubmitTransaction.
func (*TopicMessageSubmitTransaction) SetRegenerateTransactionID ¶
func (transaction *TopicMessageSubmitTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicMessageSubmitTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TopicMessageSubmitTransaction) SetTopicID ¶
func (transaction *TopicMessageSubmitTransaction) SetTopicID(topicID TopicID) *TopicMessageSubmitTransaction
SetTopicID Sets the topic to submit message to.
func (*TopicMessageSubmitTransaction) SetTransactionID ¶
func (transaction *TopicMessageSubmitTransaction) SetTransactionID(transactionID TransactionID) *TopicMessageSubmitTransaction
SetTransactionID sets the TransactionID for this TopicMessageSubmitTransaction.
func (*TopicMessageSubmitTransaction) SetTransactionMemo ¶
func (transaction *TopicMessageSubmitTransaction) SetTransactionMemo(memo string) *TopicMessageSubmitTransaction
SetTransactionMemo sets the memo for this TopicMessageSubmitTransaction.
func (*TopicMessageSubmitTransaction) SetTransactionValidDuration ¶
func (transaction *TopicMessageSubmitTransaction) SetTransactionValidDuration(duration time.Duration) *TopicMessageSubmitTransaction
SetTransactionValidDuration sets the valid duration for this TopicMessageSubmitTransaction.
func (*TopicMessageSubmitTransaction) Sign ¶
func (transaction *TopicMessageSubmitTransaction) Sign( privateKey PrivateKey, ) *TopicMessageSubmitTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TopicMessageSubmitTransaction) SignWith ¶
func (transaction *TopicMessageSubmitTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TopicMessageSubmitTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TopicMessageSubmitTransaction) SignWithOperator ¶
func (transaction *TopicMessageSubmitTransaction) SignWithOperator( client *Client, ) (*TopicMessageSubmitTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type TopicUpdateTransaction ¶
type TopicUpdateTransaction struct { Transaction // 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) AddSignature ¶
func (transaction *TopicUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicUpdateTransaction
AddSignature adds a signature to the Transaction.
func (*TopicUpdateTransaction) ClearAdminKey ¶
func (transaction *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 (transaction *TopicUpdateTransaction) ClearAutoRenewAccountID() *TopicUpdateTransaction
ClearAutoRenewAccountID explicitly clears any auto renew account ID on the topic by sending an empty accountID
func (*TopicUpdateTransaction) ClearSubmitKey ¶
func (transaction *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 (transaction *TopicUpdateTransaction) ClearTopicMemo() *TopicUpdateTransaction
ClearTopicMemo explicitly clears any memo on the topic by sending an empty string as the memo
func (*TopicUpdateTransaction) Execute ¶
func (transaction *TopicUpdateTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TopicUpdateTransaction) Freeze ¶
func (transaction *TopicUpdateTransaction) Freeze() (*TopicUpdateTransaction, error)
func (*TopicUpdateTransaction) FreezeWith ¶
func (transaction *TopicUpdateTransaction) FreezeWith(client *Client) (*TopicUpdateTransaction, error)
func (*TopicUpdateTransaction) GetAdminKey ¶
func (transaction *TopicUpdateTransaction) GetAdminKey() (Key, error)
GetAdminKey returns the key required to update/delete the topic.
func (*TopicUpdateTransaction) GetAutoRenewAccountID ¶
func (transaction *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 (transaction *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) GetExpirationTime ¶
func (transaction *TopicUpdateTransaction) GetExpirationTime() time.Time
GetExpirationTime returns the effective timestamp at (and after) which all transactions and queries will fail.
func (*TopicUpdateTransaction) GetMaxBackoff ¶
func (transaction *TopicUpdateTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TopicUpdateTransaction) GetMaxTransactionFee ¶
func (transaction *TopicUpdateTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicUpdateTransaction) GetMinBackoff ¶
func (transaction *TopicUpdateTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TopicUpdateTransaction) GetRegenerateTransactionID ¶
func (transaction *TopicUpdateTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TopicUpdateTransaction) GetSubmitKey ¶
func (transaction *TopicUpdateTransaction) GetSubmitKey() (Key, error)
GetSubmitKey returns the key allowed to submit messages to the topic.
func (*TopicUpdateTransaction) GetTopicID ¶
func (transaction *TopicUpdateTransaction) GetTopicID() TopicID
GetTopicID returns the topic to be updated.
func (*TopicUpdateTransaction) GetTopicMemo ¶
func (transaction *TopicUpdateTransaction) GetTopicMemo() string
GetTopicMemo returns the short publicly visible memo about the topic.
func (*TopicUpdateTransaction) GetTransactionID ¶
func (transaction *TopicUpdateTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TopicUpdateTransaction.
func (*TopicUpdateTransaction) GetTransactionMemo ¶
func (transaction *TopicUpdateTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TopicUpdateTransaction.
func (*TopicUpdateTransaction) GetTransactionValidDuration ¶
func (transaction *TopicUpdateTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TopicUpdateTransaction) IsFrozen ¶
func (transaction *TopicUpdateTransaction) IsFrozen() bool
func (*TopicUpdateTransaction) Schedule ¶
func (transaction *TopicUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TopicUpdateTransaction) SetAdminKey ¶
func (transaction *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 (transaction *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 (transaction *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) SetExpirationTime ¶
func (transaction *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) SetGrpcDeadline ¶
func (transaction *TopicUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicUpdateTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TopicUpdateTransaction) SetLogLevel ¶
func (transaction *TopicUpdateTransaction) SetLogLevel(level LogLevel) *TopicUpdateTransaction
func (*TopicUpdateTransaction) SetMaxBackoff ¶
func (transaction *TopicUpdateTransaction) SetMaxBackoff(max time.Duration) *TopicUpdateTransaction
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 (*TopicUpdateTransaction) SetMaxRetry ¶
func (transaction *TopicUpdateTransaction) SetMaxRetry(count int) *TopicUpdateTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TopicUpdateTransaction) SetMaxTransactionFee ¶
func (transaction *TopicUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TopicUpdateTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TopicUpdateTransaction) SetMinBackoff ¶
func (transaction *TopicUpdateTransaction) SetMinBackoff(min time.Duration) *TopicUpdateTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TopicUpdateTransaction) SetNodeAccountIDs ¶
func (transaction *TopicUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicUpdateTransaction
SetNodeAccountID sets the _Node AccountID for this TopicUpdateTransaction.
func (*TopicUpdateTransaction) SetRegenerateTransactionID ¶
func (transaction *TopicUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TopicUpdateTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TopicUpdateTransaction) SetSubmitKey ¶
func (transaction *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 (transaction *TopicUpdateTransaction) SetTopicID(topicID TopicID) *TopicUpdateTransaction
SetTopicID sets the topic to be updated.
func (*TopicUpdateTransaction) SetTopicMemo ¶
func (transaction *TopicUpdateTransaction) SetTopicMemo(memo string) *TopicUpdateTransaction
SetTopicMemo sets a short publicly visible memo about the topic. No guarantee of uniqueness.
func (*TopicUpdateTransaction) SetTransactionID ¶
func (transaction *TopicUpdateTransaction) SetTransactionID(transactionID TransactionID) *TopicUpdateTransaction
SetTransactionID sets the TransactionID for this TopicUpdateTransaction.
func (*TopicUpdateTransaction) SetTransactionMemo ¶
func (transaction *TopicUpdateTransaction) SetTransactionMemo(memo string) *TopicUpdateTransaction
SetTransactionMemo sets the memo for this TopicUpdateTransaction.
func (*TopicUpdateTransaction) SetTransactionValidDuration ¶
func (transaction *TopicUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TopicUpdateTransaction
SetTransactionValidDuration sets the valid duration for this TopicUpdateTransaction.
func (*TopicUpdateTransaction) Sign ¶
func (transaction *TopicUpdateTransaction) Sign( privateKey PrivateKey, ) *TopicUpdateTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TopicUpdateTransaction) SignWith ¶
func (transaction *TopicUpdateTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TopicUpdateTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TopicUpdateTransaction) SignWithOperator ¶
func (transaction *TopicUpdateTransaction) SignWithOperator( client *Client, ) (*TopicUpdateTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction is base struct for all transactions that may be built and submitted to Hedera.
func (*Transaction) GetDefaultMaxTransactionFee ¶
func (this *Transaction) GetDefaultMaxTransactionFee() Hbar
func (*Transaction) GetGrpcDeadline ¶
func (this *Transaction) GetGrpcDeadline() *time.Duration
GetGrpcDeadline returns the grpc deadline
func (*Transaction) GetLogLevel ¶
func (transaction *Transaction) GetLogLevel() *LogLevel
func (*Transaction) GetMaxRetry ¶
func (this *Transaction) GetMaxRetry() int
GetMaxRetry returns the max number of errors before execution will fail.
func (*Transaction) GetMaxTransactionFee ¶
func (this *Transaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*Transaction) GetNodeAccountIDs ¶
func (this *Transaction) GetNodeAccountIDs() (nodeAccountIDs []AccountID)
GetNodeAccountID returns the node AccountID for this Transaction.
func (*Transaction) GetRegenerateTransactionID ¶
func (this *Transaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled
func (*Transaction) GetSignatures ¶
func (this *Transaction) GetSignatures() (map[AccountID]map[*PublicKey][]byte, error)
GetSignatures Gets all of the signatures stored in the Transaction
func (*Transaction) GetSignedTransactionBodyBytes ¶
func (this *Transaction) GetSignedTransactionBodyBytes(transactionIndex int) []byte
func (*Transaction) GetTransactionHash ¶
func (this *Transaction) GetTransactionHash() ([]byte, error)
func (*Transaction) GetTransactionHashPerNode ¶
func (this *Transaction) GetTransactionHashPerNode() (map[AccountID][]byte, error)
func (*Transaction) GetTransactionID ¶
func (this *Transaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this Transaction.
func (*Transaction) GetTransactionMemo ¶
func (this *Transaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this Transaction.
func (*Transaction) GetTransactionValidDuration ¶
func (this *Transaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*Transaction) SetGrpcDeadline ¶
func (this *Transaction) SetGrpcDeadline(deadline *time.Duration) *Transaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*Transaction) SetLogLevel ¶
func (transaction *Transaction) SetLogLevel(level LogLevel) *Transaction
func (*Transaction) SetMaxRetry ¶
func (this *Transaction) SetMaxRetry(count int) *Transaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*Transaction) SetMaxTransactionFee ¶
func (this *Transaction) SetMaxTransactionFee(fee Hbar) *Transaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*Transaction) SetNodeAccountIDs ¶
func (this *Transaction) SetNodeAccountIDs(nodeAccountIDs []AccountID) *Transaction
SetNodeAccountIDs sets the node AccountID for this Transaction.
func (*Transaction) SetRegenerateTransactionID ¶
func (this *Transaction) SetRegenerateTransactionID(regenerateTransactionID bool) *Transaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when \`TRANSACTION_EXPIRED\` is received
func (*Transaction) SetTransactionID ¶
func (this *Transaction) SetTransactionID(transactionID TransactionID) *Transaction
SetTransactionID sets the TransactionID for this Transaction.
func (*Transaction) SetTransactionMemo ¶
func (this *Transaction) SetTransactionMemo(memo string) *Transaction
SetTransactionMemo sets the memo for this Transaction.
func (*Transaction) SetTransactionValidDuration ¶
func (this *Transaction) SetTransactionValidDuration(duration time.Duration) *Transaction
SetTransactionValidDuration sets the valid duration for this Transaction.
func (*Transaction) String ¶
func (this *Transaction) String() string
String returns a string representation of the Transaction
func (*Transaction) ToBytes ¶
func (this *Transaction) 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 Hedera _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(transaction interface{}) (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 TransactionReceipt ¶
type TransactionReceipt struct { Status Status ExchangeRate *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 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 (query *TransactionReceiptQuery) Execute(client *Client) (TransactionReceipt, error)
Execute executes the Query with the provided client
func (*TransactionReceiptQuery) GetCost ¶
func (query *TransactionReceiptQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*TransactionReceiptQuery) GetIncludeChildren ¶
func (query *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 (query *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) GetMaxBackoff ¶
func (query *TransactionReceiptQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TransactionReceiptQuery) GetMinBackoff ¶
func (query *TransactionReceiptQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TransactionReceiptQuery) GetTransactionID ¶
func (query *TransactionReceiptQuery) GetTransactionID() TransactionID
GetTransactionID returns the TransactionID for which the receipt is being requested.
func (*TransactionReceiptQuery) SetGrpcDeadline ¶
func (query *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 (query *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 (query *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 (query *TransactionReceiptQuery) SetLogLevel(level LogLevel) *TransactionReceiptQuery
func (*TransactionReceiptQuery) SetMaxBackoff ¶
func (query *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 (query *TransactionReceiptQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionReceiptQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TransactionReceiptQuery) SetMaxRetry ¶
func (query *TransactionReceiptQuery) SetMaxRetry(count int) *TransactionReceiptQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TransactionReceiptQuery) SetMinBackoff ¶
func (query *TransactionReceiptQuery) SetMinBackoff(min time.Duration) *TransactionReceiptQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TransactionReceiptQuery) SetNodeAccountIDs ¶
func (query *TransactionReceiptQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionReceiptQuery
SetNodeAccountIDs sets the _Node AccountID for this TransactionReceiptQuery.
func (*TransactionReceiptQuery) SetPaymentTransactionID ¶
func (query *TransactionReceiptQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionReceiptQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TransactionReceiptQuery) SetQueryPayment ¶
func (query *TransactionReceiptQuery) SetQueryPayment(queryPayment Hbar) *TransactionReceiptQuery
SetQueryPayment sets the Hbar payment to pay the _Node a fee for handling this query
func (*TransactionReceiptQuery) SetTransactionID ¶
func (query *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 TransactionMemo string TransactionFee Hbar Transfers []Transfer TokenTransfers map[TokenID][]TokenTransfer NftTransfers map[TokenID][]TokenNftTransfer ExpectedDecimals map[TokenID]uint32 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 }
The complete record for a transaction on Hedera 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 (query *TransactionRecordQuery) Execute(client *Client) (TransactionRecord, error)
Execute executes the Query with the provided client
func (*TransactionRecordQuery) GetCost ¶
func (query *TransactionRecordQuery) GetCost(client *Client) (Hbar, error)
GetCost returns the fee that would be charged to get the requested information (if a cost was requested).
func (*TransactionRecordQuery) GetIncludeChildren ¶
func (query *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 (query *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) GetMaxBackoff ¶
func (query *TransactionRecordQuery) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TransactionRecordQuery) GetMinBackoff ¶
func (query *TransactionRecordQuery) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TransactionRecordQuery) GetTransactionID ¶
func (query *TransactionRecordQuery) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TransactionRecordQuery.
func (*TransactionRecordQuery) SetGrpcDeadline ¶
func (query *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 (query *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 (query *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 (query *TransactionRecordQuery) SetLogLevel(level LogLevel) *TransactionRecordQuery
func (*TransactionRecordQuery) SetMaxBackoff ¶
func (query *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 (query *TransactionRecordQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionRecordQuery
SetMaxQueryPayment sets the maximum payment allowed for this Query.
func (*TransactionRecordQuery) SetMaxRetry ¶
func (query *TransactionRecordQuery) SetMaxRetry(count int) *TransactionRecordQuery
SetMaxRetry sets the max number of errors before execution will fail.
func (*TransactionRecordQuery) SetMinBackoff ¶
func (query *TransactionRecordQuery) SetMinBackoff(min time.Duration) *TransactionRecordQuery
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TransactionRecordQuery) SetNodeAccountIDs ¶
func (query *TransactionRecordQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionRecordQuery
SetNodeAccountIDs sets the _Node AccountID for this TransactionRecordQuery.
func (*TransactionRecordQuery) SetPaymentTransactionID ¶
func (query *TransactionRecordQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionRecordQuery
SetPaymentTransactionID assigns the payment transaction id.
func (*TransactionRecordQuery) SetQueryPayment ¶
func (query *TransactionRecordQuery) SetQueryPayment(queryPayment Hbar) *TransactionRecordQuery
SetQueryPayment sets the Hbar payment to pay the _Node a fee for handling this query
func (*TransactionRecordQuery) SetTransactionID ¶
func (query *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 }
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(transaction interface{}, client *Client) (TransactionResponse, error)
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) 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 // 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 (transaction *TransferTransaction) AddApprovedHbarTransfer(accountID AccountID, amount Hbar, approve bool) *TransferTransaction
AddHbarTransferWithDecimals adds an approved hbar transfer
func (*TransferTransaction) AddApprovedNftTransfer ¶
func (transaction *TransferTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TransferTransaction
AddNftTransfer adds an approved nft transfer
func (*TransferTransaction) AddApprovedTokenTransfer ¶
func (transaction *TransferTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TransferTransaction
AddHbarTransfer adds an approved hbar transfer
func (*TransferTransaction) AddApprovedTokenTransferWithDecimals ¶
func (transaction *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 (transaction *TransferTransaction) AddHbarTransfer(accountID AccountID, amount Hbar) *TransferTransaction
AddHbarTransfer Sets The desired hbar balance adjustments
func (*TransferTransaction) AddNftTransfer ¶
func (transaction *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) AddSignature ¶
func (transaction *TransferTransaction) AddSignature(publicKey PublicKey, signature []byte) *TransferTransaction
AddSignature adds a signature to the Transaction.
func (*TransferTransaction) AddTokenTransfer ¶
func (transaction *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 (transaction *TransferTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TransferTransaction
AddTokenTransferWithDecimals Sets the desired token unit balance adjustments with decimals
func (*TransferTransaction) Execute ¶
func (transaction *TransferTransaction) Execute( client *Client, ) (TransactionResponse, error)
Execute executes the Transaction with the provided client
func (*TransferTransaction) Freeze ¶
func (transaction *TransferTransaction) Freeze() (*TransferTransaction, error)
func (*TransferTransaction) FreezeWith ¶
func (transaction *TransferTransaction) FreezeWith(client *Client) (*TransferTransaction, error)
func (*TransferTransaction) GetHbarTransfers ¶
func (transaction *TransferTransaction) GetHbarTransfers() map[AccountID]Hbar
GetHbarTransfers returns the hbar transfers
func (*TransferTransaction) GetMaxBackoff ¶
func (transaction *TransferTransaction) GetMaxBackoff() time.Duration
GetMaxBackoff returns the maximum amount of time to wait between retries.
func (*TransferTransaction) GetMaxTransactionFee ¶
func (transaction *TransferTransaction) GetMaxTransactionFee() Hbar
GetMaxTransactionFee returns the maximum transaction fee the operator (paying account) is willing to pay.
func (*TransferTransaction) GetMinBackoff ¶
func (transaction *TransferTransaction) GetMinBackoff() time.Duration
GetMinBackoff returns the minimum amount of time to wait between retries.
func (*TransferTransaction) GetNftTransfers ¶
func (transaction *TransferTransaction) GetNftTransfers() map[TokenID][]TokenNftTransfer
GetNftTransfers returns the nft transfers
func (*TransferTransaction) GetRegenerateTransactionID ¶
func (transaction *TransferTransaction) GetRegenerateTransactionID() bool
GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.
func (*TransferTransaction) GetTokenIDDecimals ¶
func (transaction *TransferTransaction) GetTokenIDDecimals() map[TokenID]uint32
GetTokenIDDecimals returns the token decimals
func (*TransferTransaction) GetTokenTransfers ¶
func (transaction *TransferTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer
GetTokenTransfers returns the token transfers
func (*TransferTransaction) GetTransactionID ¶
func (transaction *TransferTransaction) GetTransactionID() TransactionID
GetTransactionID gets the TransactionID for this TransferTransaction.
func (*TransferTransaction) GetTransactionMemo ¶
func (transaction *TransferTransaction) GetTransactionMemo() string
GetTransactionMemo returns the memo for this TransferTransaction.
func (*TransferTransaction) GetTransactionValidDuration ¶
func (transaction *TransferTransaction) GetTransactionValidDuration() time.Duration
GetTransactionValidDuration returns the duration that this transaction is valid for.
func (*TransferTransaction) IsFrozen ¶
func (transaction *TransferTransaction) IsFrozen() bool
func (*TransferTransaction) Schedule ¶
func (transaction *TransferTransaction) Schedule() (*ScheduleCreateTransaction, error)
func (*TransferTransaction) SetGrpcDeadline ¶
func (transaction *TransferTransaction) SetGrpcDeadline(deadline *time.Duration) *TransferTransaction
When execution is attempted, a single attempt will timeout when this deadline is reached. (The SDK may subsequently retry the execution.)
func (*TransferTransaction) SetHbarTransferApproval ¶
func (transaction *TransferTransaction) SetHbarTransferApproval(spenderAccountID AccountID, approval bool) *TransferTransaction
SetHbarTransferApproval Sets the desired hbar balance adjustments
func (*TransferTransaction) SetLogLevel ¶
func (transaction *TransferTransaction) SetLogLevel(level LogLevel) *TransferTransaction
func (*TransferTransaction) SetMaxBackoff ¶
func (transaction *TransferTransaction) SetMaxBackoff(max time.Duration) *TransferTransaction
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 (*TransferTransaction) SetMaxRetry ¶
func (transaction *TransferTransaction) SetMaxRetry(count int) *TransferTransaction
SetMaxRetry sets the max number of errors before execution will fail.
func (*TransferTransaction) SetMaxTransactionFee ¶
func (transaction *TransferTransaction) SetMaxTransactionFee(fee Hbar) *TransferTransaction
SetMaxTransactionFee sets the maximum transaction fee the operator (paying account) is willing to pay.
func (*TransferTransaction) SetMinBackoff ¶
func (transaction *TransferTransaction) SetMinBackoff(min time.Duration) *TransferTransaction
SetMinBackoff sets the minimum amount of time to wait between retries.
func (*TransferTransaction) SetNftTransferApproval ¶
func (transaction *TransferTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TransferTransaction
SetNftTransferApproval Sets the desired nft token unit balance adjustments
func (*TransferTransaction) SetNodeAccountIDs ¶
func (transaction *TransferTransaction) SetNodeAccountIDs(nodeID []AccountID) *TransferTransaction
SetNodeTokenID sets the _Node TokenID for this TransferTransaction.
func (*TransferTransaction) SetRegenerateTransactionID ¶
func (transaction *TransferTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TransferTransaction
SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received
func (*TransferTransaction) SetTokenTransferApproval ¶
func (transaction *TransferTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TransferTransaction
SetTokenTransferApproval Sets the desired token unit balance adjustments
func (*TransferTransaction) SetTransactionID ¶
func (transaction *TransferTransaction) SetTransactionID(transactionID TransactionID) *TransferTransaction
SetTransactionID sets the TransactionID for this TransferTransaction.
func (*TransferTransaction) SetTransactionMemo ¶
func (transaction *TransferTransaction) SetTransactionMemo(memo string) *TransferTransaction
SetTransactionMemo sets the memo for this TransferTransaction.
func (*TransferTransaction) SetTransactionValidDuration ¶
func (transaction *TransferTransaction) SetTransactionValidDuration(duration time.Duration) *TransferTransaction
SetTransactionValidDuration sets the valid duration for this TransferTransaction.
func (*TransferTransaction) Sign ¶
func (transaction *TransferTransaction) Sign( privateKey PrivateKey, ) *TransferTransaction
Sign uses the provided privateKey to sign the transaction.
func (*TransferTransaction) SignWith ¶
func (transaction *TransferTransaction) SignWith( publicKey PublicKey, signer TransactionSigner, ) *TransferTransaction
SignWith executes the TransactionSigner and adds the resulting signature data to the Transaction's signature map with the publicKey as the map key.
func (*TransferTransaction) SignWithOperator ¶
func (transaction *TransferTransaction) SignWithOperator( client *Client, ) (*TransferTransaction, error)
SignWithOperator signs the transaction with client's operator privateKey.
Source Files ¶
- account_allowance_adjust_transaction.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_stakers_query.go
- account_update_transaction.go
- address_book_query.go
- address_books.go
- assessed_custom_fee.go
- bip32_utils.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_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_flow.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
- ipv4_address.go
- ipv4_address_part.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
- mirror_network.go
- mirror_node.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
- prng_transaction.go
- proxy_staker.go
- query.go
- request_type.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_allowance.go
- token_associate_transaction.go
- token_association.go
- token_balance_map.go
- token_burn_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_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_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