hedera

package module
v2.13.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 50 Imported by: 0

README

Actions Status

Hedera™ Hashgraph Go SDK

The Go SDK for interacting with Hedera Hashgraph: the official distributed consensus platform built using the hashgraph consensus algorithm for fast, fair and secure transactions. Hedera enables and empowers developers to build an entirely new class of decentralized applications.

Hedera Hashgraph communicates using gRPC; the Protobufs definitions for the protocol are available in the hashgraph/hedera-protobuf repository.

Install

$ go get github.com/hashgraph/hedera-sdk-go/v2
Note

google.golang.org/protobuf v1.27.1 Breaks the SDK as it contains multiple protobuf files with the same name. Make sure to use v1.26.1 instead. The follow snippet can be used in go.mod to force the project to use v1.26.1

replace (
	google.golang.org/protobuf v1.27.1 => google.golang.org/protobuf v1.26.1-0.20210525005349-febffdd88e85
)

Running Integration Tests

$ env CONFIG_FILE="<your_config_file>" go test -v Integration -timeout 9999s ```

or

```bash
$ env CONFIG_FILE="<your_config_file>" OPERATOR_KEY="<key>" OPERATOR_ID="<id>" go test -v Integration -timeout 9999s

or

$ env OPERATOR_KEY="<key>" OPERATOR_ID="<id>" go test -v Integration -timeout 9999s

The config file can contain both the network and the operator, but you can also use environment variables OPERATOR_KEY and OPERATOR_ID. If both are provided the network is used from the config file, but for the operator the environment variables take precedence. If the config file is not provided then the network will default to testnet and OPERATOR_KEY and OPERATOR_ID must be provided.

Example Config File

Support

If you have a question on how to use the product, please see our support guide.

Contributing

Contributions are welcome. Please see the contributing guide to see how you can get involved.

Code of Conduct

This project is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to oss@hedera.com.

License

Apache License 2.0

Documentation

Index

Constants

View Source
const Aes128Ctr = "aes-128-ctr"
View Source
const HmacSha256 = "hmac-sha256"

Variables

View Source
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"),
}
View Source
var MaxHbar = Hbar{math.MaxInt64}

MaxHbar is the maximum amount the Hbar type can wrap.

View Source
var MinHbar = Hbar{math.MinInt64}

MinHbar is the minimum amount the Hbar type can wrap.

View Source
var ZeroHbar = Hbar{0}

ZeroHbar wraps a 0 value of Hbar.

Functions

func AccountInfoFlowVerifySignature added in v2.12.0

func AccountInfoFlowVerifySignature(client *Client, accountID AccountID, message []byte, signature []byte) (bool, error)

func AccountInfoFlowVerifyTransaction added in v2.12.0

func AccountInfoFlowVerifyTransaction(client *Client, accountID AccountID, transaction Transaction, signature []byte) (bool, error)

func TransactionAddSignature added in v2.2.0

func TransactionAddSignature(transaction interface{}, publicKey PublicKey, signature []byte) (interface{}, error)

func TransactionFromBytes

func TransactionFromBytes(data []byte) (interface{}, error)

func TransactionGetMaxBackoff added in v2.2.0

func TransactionGetMaxBackoff(transaction interface{}) (time.Duration, error)

func TransactionGetMinBackoff added in v2.2.0

func TransactionGetMinBackoff(transaction interface{}) (time.Duration, error)

func TransactionGetSignatures added in v2.2.0

func TransactionGetSignatures(transaction interface{}) (map[AccountID]map[*PublicKey][]byte, error)

func TransactionGetTransactionHash added in v2.2.0

func TransactionGetTransactionHash(transaction interface{}) ([]byte, error)

func TransactionGetTransactionHashPerNode added in v2.2.0

func TransactionGetTransactionHashPerNode(transaction interface{}) (map[AccountID][]byte, error)

func TransactionGetTransactionMemo added in v2.2.0

func TransactionGetTransactionMemo(transaction interface{}) (string, error)

func TransactionGetTransactionValidDuration added in v2.2.0

func TransactionGetTransactionValidDuration(transaction interface{}) (time.Duration, error)

func TransactionSetMaxBackoff added in v2.2.0

func TransactionSetMaxBackoff(transaction interface{}, maxBackoff time.Duration) (interface{}, error)

func TransactionSetMaxTransactionFee added in v2.2.0

func TransactionSetMaxTransactionFee(transaction interface{}, maxTransactionFee Hbar) (interface{}, error)

func TransactionSetMinBackoff added in v2.2.0

func TransactionSetMinBackoff(transaction interface{}, minBackoff time.Duration) (interface{}, error)

func TransactionSetNodeAccountIDs added in v2.2.0

func TransactionSetNodeAccountIDs(transaction interface{}, nodeAccountIDs []AccountID) (interface{}, error)

func TransactionSetTransactionID added in v2.2.0

func TransactionSetTransactionID(transaction interface{}, transactionID TransactionID) (interface{}, error)

func TransactionSetTransactionMemo added in v2.2.0

func TransactionSetTransactionMemo(transaction interface{}, transactionMemo string) (interface{}, error)

func TransactionSetTransactionValidDuration added in v2.2.0

func TransactionSetTransactionValidDuration(transaction interface{}, transactionValidDuration time.Duration) (interface{}, error)

func TransactionSign added in v2.2.0

func TransactionSign(transaction interface{}, privateKey PrivateKey) (interface{}, error)

func TransactionSignWithOperator added in v2.2.0

func TransactionSignWithOperator(transaction interface{}, client *Client) (interface{}, error)

func TransactionSignWth added in v2.2.0

func TransactionSignWth(transaction interface{}, publicKKey PublicKey, signer TransactionSigner) (interface{}, error)

func TransactionString added in v2.2.0

func TransactionString(transaction interface{}) (string, error)

func TransactionToBytes added in v2.2.0

func TransactionToBytes(transaction interface{}) ([]byte, error)

Types

type AccountAllowanceAdjustTransaction added in v2.9.0

type AccountAllowanceAdjustTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

Deprecated

func NewAccountAllowanceAdjustTransaction added in v2.9.0

func NewAccountAllowanceAdjustTransaction() *AccountAllowanceAdjustTransaction

func (*AccountAllowanceAdjustTransaction) AddAllTokenNftAllowance added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) AddAllTokenNftAllowance(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) AddHbarAllowance added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) AddHbarAllowance(id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) AddSignature added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceAdjustTransaction

func (*AccountAllowanceAdjustTransaction) AddTokenAllowance added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) AddTokenAllowance(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) AddTokenNftAllowance added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) AddTokenNftAllowance(nftID NftID, accountID AccountID) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) Execute added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Deprecated

func (*AccountAllowanceAdjustTransaction) Freeze added in v2.9.0

Deprecated

func (*AccountAllowanceAdjustTransaction) FreezeWith added in v2.9.0

Deprecated

func (*AccountAllowanceAdjustTransaction) GetHbarAllowances added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetHbarAllowances() []*HbarAllowance

Deprecated

func (*AccountAllowanceAdjustTransaction) GetMaxBackoff added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetMaxBackoff() time.Duration

func (*AccountAllowanceAdjustTransaction) GetMaxTransactionFee added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetMaxTransactionFee() Hbar

func (*AccountAllowanceAdjustTransaction) GetMinBackoff added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetMinBackoff() time.Duration

func (*AccountAllowanceAdjustTransaction) GetRegenerateTransactionID added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*AccountAllowanceAdjustTransaction) GetTokenAllowances added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetTokenAllowances() []*TokenAllowance

Deprecated

func (*AccountAllowanceAdjustTransaction) GetTokenNftAllowances added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetTokenNftAllowances() []*TokenNftAllowance

Deprecated

func (*AccountAllowanceAdjustTransaction) GetTransactionID added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetTransactionID() TransactionID

func (*AccountAllowanceAdjustTransaction) GetTransactionMemo added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetTransactionMemo() string

func (*AccountAllowanceAdjustTransaction) GetTransactionValidDuration added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) GetTransactionValidDuration() time.Duration

func (*AccountAllowanceAdjustTransaction) GrantHbarAllowance added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) GrantHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) GrantTokenAllowance added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) GrantTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) GrantTokenNftAllowance added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) GrantTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) GrantTokenNftAllowanceAllSerials added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) GrantTokenNftAllowanceAllSerials(ownerAccountID AccountID, tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) IsFrozen added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) IsFrozen() bool

Deprecated

func (*AccountAllowanceAdjustTransaction) RevokeHbarAllowance added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) RevokeHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) RevokeTokenAllowance added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount uint64) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) RevokeTokenNftAllowance added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) RevokeTokenNftAllowanceAllSerials added in v2.11.0

func (transaction *AccountAllowanceAdjustTransaction) RevokeTokenNftAllowanceAllSerials(ownerAccountID AccountID, tokenID TokenID, spenderAccount AccountID) *AccountAllowanceAdjustTransaction

Deprecated

func (*AccountAllowanceAdjustTransaction) Schedule added in v2.9.0

Deprecated

func (*AccountAllowanceAdjustTransaction) SetMaxBackoff added in v2.9.0

func (*AccountAllowanceAdjustTransaction) SetMaxRetry added in v2.9.0

func (*AccountAllowanceAdjustTransaction) SetMaxTransactionFee added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceAdjustTransaction

SetMaxTransactionFee sets the max transaction fee for this AccountAllowanceAdjustTransaction.

func (*AccountAllowanceAdjustTransaction) SetMinBackoff added in v2.9.0

func (*AccountAllowanceAdjustTransaction) SetNodeAccountIDs added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceAdjustTransaction

SetNodeAccountIDs sets the _Node AccountID for this AccountAllowanceAdjustTransaction.

func (*AccountAllowanceAdjustTransaction) SetRegenerateTransactionID added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceAdjustTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*AccountAllowanceAdjustTransaction) SetTransactionID added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceAdjustTransaction

SetTransactionID sets the TransactionID for this AccountAllowanceAdjustTransaction.

func (*AccountAllowanceAdjustTransaction) SetTransactionMemo added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SetTransactionMemo(memo string) *AccountAllowanceAdjustTransaction

SetTransactionMemo sets the memo for this AccountAllowanceAdjustTransaction.

func (*AccountAllowanceAdjustTransaction) SetTransactionValidDuration added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceAdjustTransaction

SetTransactionValidDuration sets the valid duration for this AccountAllowanceAdjustTransaction.

func (*AccountAllowanceAdjustTransaction) Sign added in v2.9.0

Deprecated

func (*AccountAllowanceAdjustTransaction) SignWith added in v2.9.0

Deprecated

func (*AccountAllowanceAdjustTransaction) SignWithOperator added in v2.9.0

func (transaction *AccountAllowanceAdjustTransaction) SignWithOperator(
	client *Client,
) (*AccountAllowanceAdjustTransaction, error)

Deprecated

type AccountAllowanceApproveTransaction added in v2.9.0

type AccountAllowanceApproveTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewAccountAllowanceApproveTransaction added in v2.9.0

func NewAccountAllowanceApproveTransaction() *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) AddAllTokenNftApproval added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) AddAllTokenNftApproval(tokenID TokenID, spenderAccount AccountID) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) AddAllTokenNftApprovalWithDelegatingSpender added in v2.13.1

func (transaction *AccountAllowanceApproveTransaction) AddAllTokenNftApprovalWithDelegatingSpender(tokenID TokenID, spenderAccount AccountID, delegatingSpender AccountID) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) AddHbarApproval added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) AddHbarApproval(id AccountID, amount Hbar) *AccountAllowanceApproveTransaction

AddHbarApproval Deprecated - Use ApproveHbarAllowance instead

func (*AccountAllowanceApproveTransaction) AddSignature added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) AddTokenApproval added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) AddTokenApproval(tokenID TokenID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction

Deprecated - Use ApproveTokenAllowance instead

func (*AccountAllowanceApproveTransaction) AddTokenNftApproval added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) AddTokenNftApproval(nftID NftID, accountID AccountID) *AccountAllowanceApproveTransaction

AddTokenNftApproval Deprecated - Use ApproveTokenNftAllowance instead

func (*AccountAllowanceApproveTransaction) ApproveHbarAllowance added in v2.13.0

func (transaction *AccountAllowanceApproveTransaction) ApproveHbarAllowance(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) ApproveHbarApproval added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) ApproveHbarApproval(ownerAccountID AccountID, id AccountID, amount Hbar) *AccountAllowanceApproveTransaction

ApproveHbarApproval Deprecated - Use ApproveHbarAllowance instead

func (*AccountAllowanceApproveTransaction) ApproveTokenAllowance added in v2.13.0

func (transaction *AccountAllowanceApproveTransaction) ApproveTokenAllowance(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) ApproveTokenApproval added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) ApproveTokenApproval(tokenID TokenID, ownerAccountID AccountID, accountID AccountID, amount int64) *AccountAllowanceApproveTransaction

ApproveTokenApproval Deprecated - Use ApproveTokenAllowance instead

func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowance added in v2.13.0

func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowance(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerials(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerialsWithDelegatingSpender added in v2.13.1

func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftAllowanceAllSerialsWithDelegatingSpender(tokenID TokenID, ownerAccountID AccountID, spenderAccount AccountID, delegatingSpender AccountID) *AccountAllowanceApproveTransaction

func (*AccountAllowanceApproveTransaction) ApproveTokenNftApproval added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) ApproveTokenNftApproval(nftID NftID, ownerAccountID AccountID, accountID AccountID) *AccountAllowanceApproveTransaction

ApproveTokenNftApproval Deprecated - Use ApproveTokenNftAllowance instead

func (*AccountAllowanceApproveTransaction) Execute added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*AccountAllowanceApproveTransaction) Freeze added in v2.9.0

func (*AccountAllowanceApproveTransaction) FreezeWith added in v2.9.0

func (*AccountAllowanceApproveTransaction) GetHbarAllowances added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) GetHbarAllowances() []*HbarAllowance

func (*AccountAllowanceApproveTransaction) GetMaxBackoff added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetMaxBackoff() time.Duration

func (*AccountAllowanceApproveTransaction) GetMaxTransactionFee added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetMaxTransactionFee() Hbar

func (*AccountAllowanceApproveTransaction) GetMinBackoff added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetMinBackoff() time.Duration

func (*AccountAllowanceApproveTransaction) GetRegenerateTransactionID added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*AccountAllowanceApproveTransaction) GetTokenAllowances added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) GetTokenAllowances() []*TokenAllowance

func (*AccountAllowanceApproveTransaction) GetTokenNftAllowances added in v2.11.0

func (transaction *AccountAllowanceApproveTransaction) GetTokenNftAllowances() []*TokenNftAllowance

func (*AccountAllowanceApproveTransaction) GetTransactionID added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetTransactionID() TransactionID

func (*AccountAllowanceApproveTransaction) GetTransactionMemo added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetTransactionMemo() string

func (*AccountAllowanceApproveTransaction) GetTransactionValidDuration added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) GetTransactionValidDuration() time.Duration

func (*AccountAllowanceApproveTransaction) IsFrozen added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) IsFrozen() bool

func (*AccountAllowanceApproveTransaction) Schedule added in v2.9.0

func (*AccountAllowanceApproveTransaction) SetMaxBackoff added in v2.9.0

func (*AccountAllowanceApproveTransaction) SetMaxRetry added in v2.9.0

func (*AccountAllowanceApproveTransaction) SetMaxTransactionFee added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceApproveTransaction

SetMaxTransactionFee sets the max transaction fee for this AccountAllowanceApproveTransaction.

func (*AccountAllowanceApproveTransaction) SetMinBackoff added in v2.9.0

func (*AccountAllowanceApproveTransaction) SetNodeAccountIDs added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceApproveTransaction

SetNodeAccountIDs sets the _Node AccountID for this AccountAllowanceApproveTransaction.

func (*AccountAllowanceApproveTransaction) SetRegenerateTransactionID added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceApproveTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*AccountAllowanceApproveTransaction) SetTransactionID added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceApproveTransaction

SetTransactionID sets the TransactionID for this AccountAllowanceApproveTransaction.

func (*AccountAllowanceApproveTransaction) SetTransactionMemo added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SetTransactionMemo(memo string) *AccountAllowanceApproveTransaction

SetTransactionMemo sets the memo for this AccountAllowanceApproveTransaction.

func (*AccountAllowanceApproveTransaction) SetTransactionValidDuration added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceApproveTransaction

SetTransactionValidDuration sets the valid duration for this AccountAllowanceApproveTransaction.

func (*AccountAllowanceApproveTransaction) Sign added in v2.9.0

Sign uses the provided privateKey to sign the transaction.

func (*AccountAllowanceApproveTransaction) SignWith added in v2.9.0

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 added in v2.9.0

func (transaction *AccountAllowanceApproveTransaction) SignWithOperator(
	client *Client,
) (*AccountAllowanceApproveTransaction, error)

type AccountAllowanceDeleteTransaction added in v2.13.0

type AccountAllowanceDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewAccountAllowanceDeleteTransaction added in v2.13.0

func NewAccountAllowanceDeleteTransaction() *AccountAllowanceDeleteTransaction

func (*AccountAllowanceDeleteTransaction) AddSignature added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountAllowanceDeleteTransaction

func (*AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) DeleteAllHbarAllowances(ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction

Deprecated

func (*AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) DeleteAllTokenAllowances(tokenID TokenID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction

Deprecated

func (*AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) DeleteAllTokenNftAllowances(nftID NftID, ownerAccountID *AccountID) *AccountAllowanceDeleteTransaction

func (*AccountAllowanceDeleteTransaction) Execute added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*AccountAllowanceDeleteTransaction) Freeze added in v2.13.0

func (*AccountAllowanceDeleteTransaction) FreezeWith added in v2.13.0

func (*AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetAllHbarDeleteAllowances() []*HbarAllowance

Deprecated

func (*AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetAllTokenDeleteAllowances() []*TokenAllowance

Deprecated

func (*AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetAllTokenNftDeleteAllowances() []*TokenNftAllowance

func (*AccountAllowanceDeleteTransaction) GetMaxBackoff added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetMaxBackoff() time.Duration

func (*AccountAllowanceDeleteTransaction) GetMaxTransactionFee added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetMaxTransactionFee() Hbar

func (*AccountAllowanceDeleteTransaction) GetMinBackoff added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetMinBackoff() time.Duration

func (*AccountAllowanceDeleteTransaction) GetRegenerateTransactionID added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*AccountAllowanceDeleteTransaction) GetTransactionID added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetTransactionID() TransactionID

func (*AccountAllowanceDeleteTransaction) GetTransactionMemo added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetTransactionMemo() string

func (*AccountAllowanceDeleteTransaction) GetTransactionValidDuration added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*AccountAllowanceDeleteTransaction) IsFrozen added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) IsFrozen() bool

func (*AccountAllowanceDeleteTransaction) Schedule added in v2.13.0

func (*AccountAllowanceDeleteTransaction) SetMaxBackoff added in v2.13.0

func (*AccountAllowanceDeleteTransaction) SetMaxRetry added in v2.13.0

func (*AccountAllowanceDeleteTransaction) SetMaxTransactionFee added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SetMaxTransactionFee(fee Hbar) *AccountAllowanceDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this AccountAllowanceDeleteTransaction.

func (*AccountAllowanceDeleteTransaction) SetMinBackoff added in v2.13.0

func (*AccountAllowanceDeleteTransaction) SetNodeAccountIDs added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountAllowanceDeleteTransaction

SetNodeAccountIDs sets the _Node AccountID for this AccountAllowanceDeleteTransaction.

func (*AccountAllowanceDeleteTransaction) SetRegenerateTransactionID added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountAllowanceDeleteTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*AccountAllowanceDeleteTransaction) SetTransactionID added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SetTransactionID(transactionID TransactionID) *AccountAllowanceDeleteTransaction

SetTransactionID sets the TransactionID for this AccountAllowanceDeleteTransaction.

func (*AccountAllowanceDeleteTransaction) SetTransactionMemo added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SetTransactionMemo(memo string) *AccountAllowanceDeleteTransaction

SetTransactionMemo sets the memo for this AccountAllowanceDeleteTransaction.

func (*AccountAllowanceDeleteTransaction) SetTransactionValidDuration added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *AccountAllowanceDeleteTransaction

SetTransactionValidDuration sets the valid duration for this AccountAllowanceDeleteTransaction.

func (*AccountAllowanceDeleteTransaction) Sign added in v2.13.0

Sign uses the provided privateKey to sign the transaction.

func (*AccountAllowanceDeleteTransaction) SignWith added in v2.13.0

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 added in v2.13.0

func (transaction *AccountAllowanceDeleteTransaction) SignWithOperator(
	client *Client,
) (*AccountAllowanceDeleteTransaction, error)

type AccountBalance

type AccountBalance struct {
	Hbars Hbar

	// Deprecated: Use `AccountBalance.Tokens` instead
	Token map[TokenID]uint64

	Tokens        TokenBalanceMap
	TokenDecimals TokenDecimalMap
}

type AccountBalanceQuery

type AccountBalanceQuery struct {
	Query
	// contains filtered or unexported fields
}

AccountBalanceQuery gets the balance of a CryptoCurrency account. This returns only the balance, so it is a smaller and faster reply than AccountInfoQuery, which returns the balance plus additional information.

func NewAccountBalanceQuery

func NewAccountBalanceQuery() *AccountBalanceQuery

NewAccountBalanceQuery creates an AccountBalanceQuery query which can be used to construct and execute an AccountBalanceQuery. It is recommended that you use this for creating new instances of an AccountBalanceQuery instead of manually creating an instance of the struct.

func (*AccountBalanceQuery) Execute

func (query *AccountBalanceQuery) Execute(client *Client) (AccountBalance, error)

func (*AccountBalanceQuery) GetAccountID

func (query *AccountBalanceQuery) GetAccountID() AccountID

func (*AccountBalanceQuery) GetContractID

func (query *AccountBalanceQuery) GetContractID() ContractID

func (*AccountBalanceQuery) GetCost

func (query *AccountBalanceQuery) GetCost(client *Client) (Hbar, error)

func (*AccountBalanceQuery) GetMaxBackoff added in v2.1.16

func (query *AccountBalanceQuery) GetMaxBackoff() time.Duration

func (*AccountBalanceQuery) GetMinBackoff added in v2.1.16

func (query *AccountBalanceQuery) GetMinBackoff() time.Duration

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 added in v2.11.0

func (query *AccountBalanceQuery) SetGrpcDeadline(deadline *time.Duration) *AccountBalanceQuery

func (*AccountBalanceQuery) SetMaxBackoff added in v2.1.16

func (query *AccountBalanceQuery) SetMaxBackoff(max time.Duration) *AccountBalanceQuery

func (*AccountBalanceQuery) SetMaxQueryPayment

func (query *AccountBalanceQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountBalanceQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*AccountBalanceQuery) SetMaxRetry added in v2.1.2

func (query *AccountBalanceQuery) SetMaxRetry(count int) *AccountBalanceQuery

func (*AccountBalanceQuery) SetMinBackoff added in v2.1.16

func (query *AccountBalanceQuery) SetMinBackoff(min time.Duration) *AccountBalanceQuery

func (*AccountBalanceQuery) SetNodeAccountIDs

func (query *AccountBalanceQuery) SetNodeAccountIDs(accountID []AccountID) *AccountBalanceQuery

SetNodeAccountIDs sets the _Node AccountID for this AccountBalanceQuery.

func (*AccountBalanceQuery) SetPaymentTransactionID added in v2.11.0

func (query *AccountBalanceQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountBalanceQuery

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 added in v2.1.3

func (transaction *AccountCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountCreateTransaction

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 added in v2.1.6

func (transaction *AccountCreateTransaction) GetAccountMemo() string

func (*AccountCreateTransaction) GetAutoRenewPeriod

func (transaction *AccountCreateTransaction) GetAutoRenewPeriod() time.Duration

func (*AccountCreateTransaction) GetInitialBalance

func (transaction *AccountCreateTransaction) GetInitialBalance() Hbar

func (*AccountCreateTransaction) GetKey

func (transaction *AccountCreateTransaction) GetKey() (Key, error)

func (*AccountCreateTransaction) GetMaxAutomaticTokenAssociations added in v2.2.0

func (transaction *AccountCreateTransaction) GetMaxAutomaticTokenAssociations() uint32

func (*AccountCreateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *AccountCreateTransaction) GetMaxBackoff() time.Duration

func (*AccountCreateTransaction) GetMaxTransactionFee

func (transaction *AccountCreateTransaction) GetMaxTransactionFee() Hbar

func (*AccountCreateTransaction) GetMinBackoff added in v2.1.16

func (transaction *AccountCreateTransaction) GetMinBackoff() time.Duration

func (*AccountCreateTransaction) GetProxyAccountID

func (transaction *AccountCreateTransaction) GetProxyAccountID() AccountID

func (*AccountCreateTransaction) GetReceiverSignatureRequired

func (transaction *AccountCreateTransaction) GetReceiverSignatureRequired() bool

func (*AccountCreateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *AccountCreateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*AccountCreateTransaction) GetTransactionID

func (transaction *AccountCreateTransaction) GetTransactionID() TransactionID

func (*AccountCreateTransaction) GetTransactionMemo

func (transaction *AccountCreateTransaction) GetTransactionMemo() string

func (*AccountCreateTransaction) GetTransactionValidDuration

func (transaction *AccountCreateTransaction) GetTransactionValidDuration() time.Duration

func (*AccountCreateTransaction) IsFrozen

func (transaction *AccountCreateTransaction) IsFrozen() bool

func (*AccountCreateTransaction) Schedule added in v2.1.5

func (transaction *AccountCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*AccountCreateTransaction) SetAccountMemo added in v2.1.6

func (transaction *AccountCreateTransaction) SetAccountMemo(memo 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) SetGrpcDeadline added in v2.11.0

func (transaction *AccountCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountCreateTransaction

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) SetMaxAutomaticTokenAssociations added in v2.2.0

func (transaction *AccountCreateTransaction) SetMaxAutomaticTokenAssociations(max uint32) *AccountCreateTransaction

func (*AccountCreateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *AccountCreateTransaction) SetMaxBackoff(max time.Duration) *AccountCreateTransaction

func (*AccountCreateTransaction) SetMaxRetry added in v2.1.2

func (transaction *AccountCreateTransaction) SetMaxRetry(count int) *AccountCreateTransaction

func (*AccountCreateTransaction) SetMaxTransactionFee

func (transaction *AccountCreateTransaction) SetMaxTransactionFee(fee Hbar) *AccountCreateTransaction

SetMaxTransactionFee sets the max transaction fee for this AccountCreateTransaction.

func (*AccountCreateTransaction) SetMinBackoff added in v2.1.16

func (transaction *AccountCreateTransaction) SetMinBackoff(min time.Duration) *AccountCreateTransaction

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

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 added in v2.8.0

func (transaction *AccountCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountCreateTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

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)

type AccountDeleteTransaction

type AccountDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

AccountDeleteTransaction 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 NewAccountDeleteTransaction

func NewAccountDeleteTransaction() *AccountDeleteTransaction

func (*AccountDeleteTransaction) AddSignature added in v2.1.3

func (transaction *AccountDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *AccountDeleteTransaction

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

func (*AccountDeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *AccountDeleteTransaction) GetMaxBackoff() time.Duration

func (*AccountDeleteTransaction) GetMaxTransactionFee

func (transaction *AccountDeleteTransaction) GetMaxTransactionFee() Hbar

func (*AccountDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *AccountDeleteTransaction) GetMinBackoff() time.Duration

func (*AccountDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *AccountDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*AccountDeleteTransaction) GetTransactionID

func (transaction *AccountDeleteTransaction) GetTransactionID() TransactionID

func (*AccountDeleteTransaction) GetTransactionMemo

func (transaction *AccountDeleteTransaction) GetTransactionMemo() string

func (*AccountDeleteTransaction) GetTransactionValidDuration

func (transaction *AccountDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*AccountDeleteTransaction) GetTransferAccountID

func (transaction *AccountDeleteTransaction) GetTransferAccountID() AccountID

func (*AccountDeleteTransaction) IsFrozen

func (transaction *AccountDeleteTransaction) IsFrozen() bool

func (*AccountDeleteTransaction) Schedule added in v2.1.5

func (transaction *AccountDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*AccountDeleteTransaction) SetAccountID

func (transaction *AccountDeleteTransaction) SetAccountID(accountID AccountID) *AccountDeleteTransaction

SetNodeAccountID sets the _Node AccountID for this AccountCreateTransaction.

func (*AccountDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *AccountDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountDeleteTransaction

func (*AccountDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *AccountDeleteTransaction) SetMaxBackoff(max time.Duration) *AccountDeleteTransaction

func (*AccountDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *AccountDeleteTransaction) SetMaxRetry(count int) *AccountDeleteTransaction

func (*AccountDeleteTransaction) SetMaxTransactionFee

func (transaction *AccountDeleteTransaction) SetMaxTransactionFee(fee Hbar) *AccountDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this AccountDeleteTransaction.

func (*AccountDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *AccountDeleteTransaction) SetMinBackoff(min time.Duration) *AccountDeleteTransaction

func (*AccountDeleteTransaction) SetNodeAccountIDs

func (transaction *AccountDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *AccountDeleteTransaction

SetNodeAccountIDs sets the _Node AccountID for this AccountDeleteTransaction.

func (*AccountDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type AccountID

type AccountID struct {
	Shard    uint64
	Realm    uint64
	Account  uint64
	AliasKey *PublicKey
	// contains filtered or unexported fields
}

AccountID is the ID for a Hedera account

func AccountIDFromBytes added in v2.1.3

func AccountIDFromBytes(data []byte) (AccountID, error)

func AccountIDFromSolidityAddress

func AccountIDFromSolidityAddress(s string) (AccountID, error)

AccountIDFromSolidityAddress constructs an AccountID from a string representation of a _Solidity address

func AccountIDFromString

func AccountIDFromString(data string) (AccountID, error)

AccountIDFromString constructs an AccountID from a string formatted as `Shard.Realm.Account` (for example "0.0.3")

func TransactionGetNodeAccountIDs added in v2.2.0

func TransactionGetNodeAccountIDs(transaction interface{}) ([]AccountID, error)

func (AccountID) Compare added in v2.6.0

func (id AccountID) Compare(given AccountID) int

func (AccountID) GetChecksum added in v2.4.0

func (id AccountID) GetChecksum() *string

func (AccountID) String

func (id AccountID) String() string

String returns the string representation of an AccountID in `Shard.Realm.Account` (for example "0.0.3")

func (AccountID) ToBytes added in v2.1.3

func (id AccountID) ToBytes() []byte

func (AccountID) ToSolidityAddress

func (id AccountID) ToSolidityAddress() string

ToSolidityAddress returns the string representation of the AccountID as a _Solidity address.

func (AccountID) ToStringWithChecksum added in v2.1.13

func (id AccountID) ToStringWithChecksum(client *Client) (string, error)

func (*AccountID) UnmarshalJSON

func (id *AccountID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding.JSON interface.

func (*AccountID) Validate added in v2.1.8

func (id *AccountID) Validate(client *Client) error

Deprecated

func (*AccountID) ValidateChecksum added in v2.4.0

func (id *AccountID) ValidateChecksum(client *Client) error

type AccountInfo

type AccountInfo struct {
	AccountID                      AccountID
	ContractAccountID              string
	IsDeleted                      bool
	ProxyAccountID                 AccountID
	ProxyReceived                  Hbar
	Key                            Key
	Balance                        Hbar
	GenerateSendRecordThreshold    Hbar
	GenerateReceiveRecordThreshold Hbar
	ReceiverSigRequired            bool
	ExpirationTime                 time.Time
	AutoRenewPeriod                time.Duration
	LiveHashes                     []*LiveHash
	TokenRelationships             []*TokenRelationship
	AccountMemo                    string
	OwnedNfts                      int64
	MaxAutomaticTokenAssociations  uint32
	AliasKey                       *PublicKey
	LedgerID                       LedgerID
	// Deprecated
	HbarAllowances []HbarAllowance
	// Deprecated
	NftAllowances []TokenNftAllowance
	// Deprecated
	TokenAllowances []TokenAllowance
}

AccountInfo is info about the account returned from an AccountInfoQuery

func AccountInfoFromBytes added in v2.1.3

func AccountInfoFromBytes(data []byte) (AccountInfo, error)

func (AccountInfo) ToBytes added in v2.1.3

func (info AccountInfo) ToBytes() []byte

type AccountInfoQuery

type AccountInfoQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewAccountInfoQuery

func NewAccountInfoQuery() *AccountInfoQuery

func (*AccountInfoQuery) Execute

func (query *AccountInfoQuery) Execute(client *Client) (AccountInfo, error)

func (*AccountInfoQuery) GetAccountID

func (query *AccountInfoQuery) GetAccountID() AccountID

func (*AccountInfoQuery) GetCost

func (query *AccountInfoQuery) GetCost(client *Client) (Hbar, error)

func (*AccountInfoQuery) GetMaxBackoff added in v2.1.16

func (query *AccountInfoQuery) GetMaxBackoff() time.Duration

func (*AccountInfoQuery) GetMinBackoff added in v2.1.16

func (query *AccountInfoQuery) GetMinBackoff() time.Duration

func (*AccountInfoQuery) SetAccountID

func (query *AccountInfoQuery) SetAccountID(accountID AccountID) *AccountInfoQuery

SetAccountID sets the AccountID for this AccountInfoQuery.

func (*AccountInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *AccountInfoQuery) SetGrpcDeadline(deadline *time.Duration) *AccountInfoQuery

func (*AccountInfoQuery) SetMaxBackoff added in v2.1.16

func (query *AccountInfoQuery) SetMaxBackoff(max time.Duration) *AccountInfoQuery

func (*AccountInfoQuery) SetMaxQueryPayment

func (query *AccountInfoQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *AccountInfoQuery

SetMaxQueryPayment sets the maximum payment allowable for this query.

func (*AccountInfoQuery) SetMaxRetry added in v2.1.2

func (query *AccountInfoQuery) SetMaxRetry(count int) *AccountInfoQuery

func (*AccountInfoQuery) SetMinBackoff added in v2.1.16

func (query *AccountInfoQuery) SetMinBackoff(min time.Duration) *AccountInfoQuery

func (*AccountInfoQuery) SetNodeAccountIDs

func (query *AccountInfoQuery) SetNodeAccountIDs(accountID []AccountID) *AccountInfoQuery

SetNodeAccountIDs sets the _Node AccountID for this AccountInfoQuery.

func (*AccountInfoQuery) SetPaymentTransactionID added in v2.11.0

func (query *AccountInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountInfoQuery

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)

func (*AccountRecordsQuery) GetAccountID

func (query *AccountRecordsQuery) GetAccountID() AccountID

func (*AccountRecordsQuery) GetCost

func (query *AccountRecordsQuery) GetCost(client *Client) (Hbar, error)

func (*AccountRecordsQuery) GetMaxBackoff added in v2.1.16

func (query *AccountRecordsQuery) GetMaxBackoff() time.Duration

func (*AccountRecordsQuery) GetMinBackoff added in v2.1.16

func (query *AccountRecordsQuery) GetMinBackoff() time.Duration

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 added in v2.11.0

func (query *AccountRecordsQuery) SetGrpcDeadline(deadline *time.Duration) *AccountRecordsQuery

func (*AccountRecordsQuery) SetMaxBackoff added in v2.1.16

func (query *AccountRecordsQuery) SetMaxBackoff(max time.Duration) *AccountRecordsQuery

func (*AccountRecordsQuery) SetMaxQueryPayment

func (query *AccountRecordsQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountRecordsQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*AccountRecordsQuery) SetMaxRetry added in v2.1.2

func (query *AccountRecordsQuery) SetMaxRetry(count int) *AccountRecordsQuery

func (*AccountRecordsQuery) SetMinBackoff added in v2.1.16

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 added in v2.11.0

func (query *AccountRecordsQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountRecordsQuery

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

func (*AccountStakersQuery) GetCost

func (query *AccountStakersQuery) GetCost(client *Client) (Hbar, error)

func (*AccountStakersQuery) GetMaxBackoff added in v2.1.16

func (query *AccountStakersQuery) GetMaxBackoff() time.Duration

func (*AccountStakersQuery) GetMinBackoff added in v2.1.16

func (query *AccountStakersQuery) GetMinBackoff() time.Duration

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 added in v2.11.0

func (query *AccountStakersQuery) SetGrpcDeadline(deadline *time.Duration) *AccountStakersQuery

func (*AccountStakersQuery) SetMaxBackoff added in v2.1.16

func (query *AccountStakersQuery) SetMaxBackoff(max time.Duration) *AccountStakersQuery

func (*AccountStakersQuery) SetMaxQueryPayment

func (query *AccountStakersQuery) SetMaxQueryPayment(maxPayment Hbar) *AccountStakersQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*AccountStakersQuery) SetMaxRetry added in v2.1.2

func (query *AccountStakersQuery) SetMaxRetry(count int) *AccountStakersQuery

func (*AccountStakersQuery) SetMinBackoff added in v2.1.16

func (query *AccountStakersQuery) SetMinBackoff(min time.Duration) *AccountStakersQuery

func (*AccountStakersQuery) SetNodeAccountIDs

func (query *AccountStakersQuery) SetNodeAccountIDs(accountID []AccountID) *AccountStakersQuery

SetNodeAccountIDs sets the _Node AccountID for this AccountStakersQuery.

func (*AccountStakersQuery) SetPaymentTransactionID added in v2.11.0

func (query *AccountStakersQuery) SetPaymentTransactionID(transactionID TransactionID) *AccountStakersQuery

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
}

func NewAccountUpdateTransaction

func NewAccountUpdateTransaction() *AccountUpdateTransaction

func (*AccountUpdateTransaction) AddSignature added in v2.1.3

func (transaction *AccountUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *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) GeAccountMemo added in v2.1.5

func (transaction *AccountUpdateTransaction) GeAccountMemo() string

func (*AccountUpdateTransaction) GetAccountID

func (transaction *AccountUpdateTransaction) GetAccountID() AccountID

func (*AccountUpdateTransaction) GetAliasKey added in v2.9.0

func (transaction *AccountUpdateTransaction) GetAliasKey() PublicKey

Deprecated

func (*AccountUpdateTransaction) GetAutoRenewPeriod

func (transaction *AccountUpdateTransaction) GetAutoRenewPeriod() time.Duration

func (*AccountUpdateTransaction) GetExpirationTime

func (transaction *AccountUpdateTransaction) GetExpirationTime() time.Time

Sets the new expiration time to extend to (ignored if equal to or before the current one).

func (*AccountUpdateTransaction) GetKey

func (transaction *AccountUpdateTransaction) GetKey() (Key, error)

func (*AccountUpdateTransaction) GetMaxAutomaticTokenAssociations added in v2.2.0

func (transaction *AccountUpdateTransaction) GetMaxAutomaticTokenAssociations() uint32

func (*AccountUpdateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *AccountUpdateTransaction) GetMaxBackoff() time.Duration

func (*AccountUpdateTransaction) GetMaxTransactionFee

func (transaction *AccountUpdateTransaction) GetMaxTransactionFee() Hbar

func (*AccountUpdateTransaction) GetMinBackoff added in v2.1.16

func (transaction *AccountUpdateTransaction) GetMinBackoff() time.Duration

func (*AccountUpdateTransaction) GetProxyAccountID

func (transaction *AccountUpdateTransaction) GetProxyAccountID() AccountID

func (*AccountUpdateTransaction) GetReceiverSignatureRequired

func (transaction *AccountUpdateTransaction) GetReceiverSignatureRequired() bool

func (*AccountUpdateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *AccountUpdateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*AccountUpdateTransaction) GetTransactionID

func (transaction *AccountUpdateTransaction) GetTransactionID() TransactionID

func (*AccountUpdateTransaction) GetTransactionMemo

func (transaction *AccountUpdateTransaction) GetTransactionMemo() string

func (*AccountUpdateTransaction) GetTransactionValidDuration

func (transaction *AccountUpdateTransaction) GetTransactionValidDuration() time.Duration

func (*AccountUpdateTransaction) IsFrozen

func (transaction *AccountUpdateTransaction) IsFrozen() bool

func (*AccountUpdateTransaction) Schedule added in v2.1.5

func (transaction *AccountUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*AccountUpdateTransaction) SetAccountID

func (transaction *AccountUpdateTransaction) SetAccountID(accountID AccountID) *AccountUpdateTransaction

Sets the account ID which is being updated in this transaction.

func (*AccountUpdateTransaction) SetAccountMemo added in v2.1.5

func (transaction *AccountUpdateTransaction) SetAccountMemo(memo string) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetAliasKey added in v2.9.0

func (transaction *AccountUpdateTransaction) SetAliasKey(alias PublicKey) *AccountUpdateTransaction

Deprecated

func (*AccountUpdateTransaction) SetAutoRenewPeriod

func (transaction *AccountUpdateTransaction) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *AccountUpdateTransaction

Sets the duration in which it will automatically extend the expiration period.

func (*AccountUpdateTransaction) SetExpirationTime

func (transaction *AccountUpdateTransaction) SetExpirationTime(expirationTime time.Time) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *AccountUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetKey

func (transaction *AccountUpdateTransaction) SetKey(key Key) *AccountUpdateTransaction

Sets the new key.

func (*AccountUpdateTransaction) SetMaxAutomaticTokenAssociations added in v2.2.0

func (transaction *AccountUpdateTransaction) SetMaxAutomaticTokenAssociations(max uint32) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *AccountUpdateTransaction) SetMaxBackoff(max time.Duration) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetMaxRetry added in v2.1.2

func (transaction *AccountUpdateTransaction) SetMaxRetry(count int) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetMaxTransactionFee

func (transaction *AccountUpdateTransaction) SetMaxTransactionFee(fee Hbar) *AccountUpdateTransaction

SetMaxTransactionFee sets the max transaction fee for this AccountUpdateTransaction.

func (*AccountUpdateTransaction) SetMinBackoff added in v2.1.16

func (transaction *AccountUpdateTransaction) SetMinBackoff(min time.Duration) *AccountUpdateTransaction

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

Sets the ID of the account to which this account is proxy staked.

func (*AccountUpdateTransaction) SetReceiverSignatureRequired

func (transaction *AccountUpdateTransaction) SetReceiverSignatureRequired(receiverSignatureRequired bool) *AccountUpdateTransaction

func (*AccountUpdateTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *AccountUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *AccountUpdateTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

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)

type AddressBookQuery added in v2.10.0

type AddressBookQuery struct {
	// contains filtered or unexported fields
}

func NewAddressBookQuery added in v2.10.0

func NewAddressBookQuery() *AddressBookQuery

func (*AddressBookQuery) Execute added in v2.10.0

func (query *AddressBookQuery) Execute(client *Client) (NodeAddressBook, error)

func (*AddressBookQuery) GetFileID added in v2.10.0

func (query *AddressBookQuery) GetFileID() FileID

func (*AddressBookQuery) GetLimit added in v2.10.0

func (query *AddressBookQuery) GetLimit() int32

func (*AddressBookQuery) GetMaxAttempts added in v2.10.0

func (query *AddressBookQuery) GetMaxAttempts() uint64

func (*AddressBookQuery) SetFileID added in v2.10.0

func (query *AddressBookQuery) SetFileID(id FileID) *AddressBookQuery

func (*AddressBookQuery) SetLimit added in v2.10.0

func (query *AddressBookQuery) SetLimit(limit int32) *AddressBookQuery

func (*AddressBookQuery) SetMaxAttempts added in v2.10.0

func (query *AddressBookQuery) SetMaxAttempts(maxAttempts uint64) *AddressBookQuery

type Argument

type Argument struct {
	// contains filtered or unexported fields
}

type AssessedCustomFee added in v2.1.11

type AssessedCustomFee struct {
	Amount                int64
	TokenID               *TokenID
	FeeCollectorAccountId *AccountID // nolint
	PayerAccountIDs       []*AccountID
}

func AssessedCustomFeeFromBytes added in v2.1.11

func AssessedCustomFeeFromBytes(data []byte) (AssessedCustomFee, error)

func (AssessedCustomFee) String added in v2.4.0

func (fee AssessedCustomFee) String() string

func (*AssessedCustomFee) ToBytes added in v2.1.11

func (fee *AssessedCustomFee) ToBytes() []byte

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 added in v2.1.2

func ClientForName(name string) (*Client, error)

func ClientForNetwork

func ClientForNetwork(network map[string]AccountID) *Client

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

func ClientFromConfig(jsonBytes []byte) (*Client, error)

ClientFromConfig takes in the byte slice representation of a JSON string or document and returns Client based on the configuration.

func ClientFromConfigFile

func ClientFromConfigFile(filename string) (*Client, error)

ClientFromConfigFile takes a filename string representing the path to a JSON encoded Client file and returns a Client based on the configuration.

func (*Client) Close

func (client *Client) Close() error

Close is used to disconnect the Client from the _Network

func (*Client) GetAutoValidateChecksums added in v2.1.13

func (client *Client) GetAutoValidateChecksums() bool

func (*Client) GetCertificateVerification added in v2.4.0

func (client *Client) GetCertificateVerification() bool

func (*Client) GetDefaultRegenerateTransactionIDs added in v2.8.0

func (client *Client) GetDefaultRegenerateTransactionIDs() bool

func (*Client) GetLedgerID deprecated added in v2.7.0

func (client *Client) GetLedgerID() *LedgerID

Deprecated: Use SetLedgerID instead

func (*Client) GetMaxAttempts added in v2.1.13

func (client *Client) GetMaxAttempts() int

func (*Client) GetMaxBackoff added in v2.1.16

func (client *Client) GetMaxBackoff() time.Duration

func (*Client) GetMaxNodeAttempts added in v2.1.13

func (client *Client) GetMaxNodeAttempts() int

func (*Client) GetMaxNodeReadmitPeriod added in v2.12.0

func (client *Client) GetMaxNodeReadmitPeriod() time.Duration

func (*Client) GetMinBackoff added in v2.1.16

func (client *Client) GetMinBackoff() time.Duration

func (*Client) GetMinNodeReadmitPeriod added in v2.12.0

func (client *Client) GetMinNodeReadmitPeriod() time.Duration

func (*Client) GetMirrorNetwork

func (client *Client) GetMirrorNetwork() []string

func (*Client) GetNetwork

func (client *Client) GetNetwork() map[string]AccountID

func (*Client) GetNetworkName deprecated added in v2.1.13

func (client *Client) GetNetworkName() *NetworkName

Deprecated: Use GetLedgerID instead

func (*Client) GetNodeMaxBackoff added in v2.6.0

func (client *Client) GetNodeMaxBackoff() time.Duration

func (*Client) GetNodeMaxReadmitPeriod added in v2.12.0

func (client *Client) GetNodeMaxReadmitPeriod() time.Duration

func (*Client) GetNodeMinBackoff added in v2.6.0

func (client *Client) GetNodeMinBackoff() time.Duration

func (*Client) GetNodeMinReadmitPeriod added in v2.12.0

func (client *Client) GetNodeMinReadmitPeriod() time.Duration

func (*Client) GetNodeWaitTime added in v2.1.13

func (client *Client) GetNodeWaitTime() time.Duration

Deprecated use GetNodeMinBackoff

func (*Client) GetOperatorAccountID

func (client *Client) GetOperatorAccountID() AccountID

GetOperatorAccountID returns the ID for the _Operator

func (*Client) GetOperatorPublicKey

func (client *Client) GetOperatorPublicKey() PublicKey

GetOperatorPublicKey returns the Key for the _Operator

func (*Client) GetRequestTimeout added in v2.11.0

func (client *Client) GetRequestTimeout() *time.Duration

func (*Client) Ping

func (client *Client) Ping(nodeID AccountID) error

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) PingAll added in v2.1.13

func (client *Client) PingAll()

func (*Client) SetAutoValidateChecksums added in v2.1.13

func (client *Client) SetAutoValidateChecksums(validate bool)

func (*Client) SetCertificateVerification added in v2.4.0

func (client *Client) SetCertificateVerification(verify bool) *Client

func (*Client) SetDefaultRegenerateTransactionIDs added in v2.8.0

func (client *Client) SetDefaultRegenerateTransactionIDs(regen bool)

func (*Client) SetLedgerID deprecated added in v2.7.0

func (client *Client) SetLedgerID(id LedgerID)

Deprecated: Use SetLedgerID instead

func (*Client) SetMaxAttempts added in v2.1.13

func (client *Client) SetMaxAttempts(max int)

func (*Client) SetMaxBackoff added in v2.1.16

func (client *Client) SetMaxBackoff(max time.Duration)

func (*Client) SetMaxNodeAttempts added in v2.1.13

func (client *Client) SetMaxNodeAttempts(max int)

func (*Client) SetMaxNodeReadmitTime added in v2.12.0

func (client *Client) SetMaxNodeReadmitTime(readmitTime time.Duration)

func (*Client) SetMaxNodesPerTransaction added in v2.1.13

func (client *Client) SetMaxNodesPerTransaction(max int)

func (*Client) SetMinBackoff added in v2.1.16

func (client *Client) SetMinBackoff(min time.Duration)

func (*Client) SetMinNodeReadmitTime added in v2.12.0

func (client *Client) SetMinNodeReadmitTime(readmitTime time.Duration)

func (*Client) SetMirrorNetwork

func (client *Client) SetMirrorNetwork(mirrorNetwork []string)

SetNetwork replaces all _Nodes in the Client with a new set of _Nodes. (e.g. for an Address Book update).

func (*Client) SetNetwork

func (client *Client) SetNetwork(network map[string]AccountID) error

func (*Client) SetNetworkName deprecated added in v2.1.13

func (client *Client) SetNetworkName(name NetworkName)

Deprecated: Use SetLedgerID instead

func (*Client) SetNodeMaxBackoff added in v2.6.0

func (client *Client) SetNodeMaxBackoff(nodeWait time.Duration)

func (*Client) SetNodeMaxReadmitPeriod added in v2.12.0

func (client *Client) SetNodeMaxReadmitPeriod(period time.Duration)

func (*Client) SetNodeMinBackoff added in v2.6.0

func (client *Client) SetNodeMinBackoff(nodeWait time.Duration)

func (*Client) SetNodeMinReadmitPeriod added in v2.12.0

func (client *Client) SetNodeMinReadmitPeriod(period time.Duration)

func (*Client) SetNodeWaitTime added in v2.1.13

func (client *Client) SetNodeWaitTime(nodeWait time.Duration)

Deprecated use SetNodeMinBackoff

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 added in v2.11.0

func (client *Client) SetRequestTimeout(timeout *time.Duration)

func (*Client) SetTransportSecurity added in v2.4.0

func (client *Client) SetTransportSecurity(tls bool) *Client

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)

func (*ContractBytecodeQuery) GetContractID

func (query *ContractBytecodeQuery) GetContractID() ContractID

func (*ContractBytecodeQuery) GetCost

func (query *ContractBytecodeQuery) GetCost(client *Client) (Hbar, error)

func (*ContractBytecodeQuery) GetMaxBackoff added in v2.1.16

func (query *ContractBytecodeQuery) GetMaxBackoff() time.Duration

func (*ContractBytecodeQuery) GetMinBackoff added in v2.1.16

func (query *ContractBytecodeQuery) GetMinBackoff() time.Duration

func (*ContractBytecodeQuery) SetContractID

func (query *ContractBytecodeQuery) SetContractID(contractID ContractID) *ContractBytecodeQuery

SetContractID sets the contract for which the bytecode is requested

func (*ContractBytecodeQuery) SetGrpcDeadline added in v2.11.0

func (query *ContractBytecodeQuery) SetGrpcDeadline(deadline *time.Duration) *ContractBytecodeQuery

func (*ContractBytecodeQuery) SetMaxBackoff added in v2.1.16

func (query *ContractBytecodeQuery) SetMaxBackoff(max time.Duration) *ContractBytecodeQuery

func (*ContractBytecodeQuery) SetMaxQueryPayment

func (query *ContractBytecodeQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractBytecodeQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*ContractBytecodeQuery) SetMaxRetry added in v2.1.2

func (query *ContractBytecodeQuery) SetMaxRetry(count int) *ContractBytecodeQuery

func (*ContractBytecodeQuery) SetMinBackoff added in v2.1.16

func (query *ContractBytecodeQuery) SetMinBackoff(min time.Duration) *ContractBytecodeQuery

func (*ContractBytecodeQuery) SetNodeAccountIDs

func (query *ContractBytecodeQuery) SetNodeAccountIDs(accountID []AccountID) *ContractBytecodeQuery

SetNodeAccountIDs sets the _Node AccountID for this ContractBytecodeQuery.

func (*ContractBytecodeQuery) SetPaymentTransactionID added in v2.11.0

func (query *ContractBytecodeQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractBytecodeQuery

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)

func (*ContractCallQuery) GetContractID

func (query *ContractCallQuery) GetContractID() ContractID

func (*ContractCallQuery) GetCost

func (query *ContractCallQuery) GetCost(client *Client) (Hbar, error)

func (*ContractCallQuery) GetFunctionParameters

func (query *ContractCallQuery) GetFunctionParameters() []byte

func (*ContractCallQuery) GetGas

func (query *ContractCallQuery) GetGas() uint64

func (*ContractCallQuery) GetMaxBackoff added in v2.1.16

func (query *ContractCallQuery) GetMaxBackoff() time.Duration

func (*ContractCallQuery) GetMinBackoff added in v2.1.16

func (query *ContractCallQuery) GetMinBackoff() time.Duration

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

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 added in v2.11.0

func (query *ContractCallQuery) SetGrpcDeadline(deadline *time.Duration) *ContractCallQuery

func (*ContractCallQuery) SetMaxBackoff added in v2.1.16

func (query *ContractCallQuery) SetMaxBackoff(max time.Duration) *ContractCallQuery

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 added in v2.1.2

func (query *ContractCallQuery) SetMaxRetry(count int) *ContractCallQuery

func (*ContractCallQuery) SetMinBackoff added in v2.1.16

func (query *ContractCallQuery) SetMinBackoff(min time.Duration) *ContractCallQuery

func (*ContractCallQuery) SetNodeAccountIDs

func (query *ContractCallQuery) SetNodeAccountIDs(accountID []AccountID) *ContractCallQuery

SetNodeAccountIDs sets the _Node AccountID for this ContractCallQuery.

func (*ContractCallQuery) SetPaymentTransactionID added in v2.11.0

func (query *ContractCallQuery) SetPaymentTransactionID(transactionID TransactionID) *ContractCallQuery

func (*ContractCallQuery) SetQueryPayment

func (query *ContractCallQuery) SetQueryPayment(paymentAmount Hbar) *ContractCallQuery

SetQueryPayment sets the payment amount for this Query.

type ContractCreateFlow added in v2.11.0

type ContractCreateFlow struct {
	Transaction
	// contains filtered or unexported fields
}

func NewContractCreateFlow added in v2.11.0

func NewContractCreateFlow() *ContractCreateFlow

func (*ContractCreateFlow) Execute added in v2.11.0

func (transaction *ContractCreateFlow) Execute(client *Client) (TransactionResponse, error)

func (*ContractCreateFlow) GetAdminKey added in v2.11.0

func (transaction *ContractCreateFlow) GetAdminKey() Key

func (*ContractCreateFlow) GetAutoRenewPeriod added in v2.11.0

func (transaction *ContractCreateFlow) GetAutoRenewPeriod() time.Duration

func (*ContractCreateFlow) GetBytecode added in v2.11.0

func (transaction *ContractCreateFlow) GetBytecode() string

func (*ContractCreateFlow) GetConstructorParameters added in v2.11.0

func (transaction *ContractCreateFlow) GetConstructorParameters() []byte

func (*ContractCreateFlow) GetContractMemo added in v2.11.0

func (transaction *ContractCreateFlow) GetContractMemo() string

func (*ContractCreateFlow) GetGas added in v2.11.0

func (transaction *ContractCreateFlow) GetGas() int64

func (*ContractCreateFlow) GetInitialBalance added in v2.11.0

func (transaction *ContractCreateFlow) GetInitialBalance() Hbar

func (*ContractCreateFlow) GetNodeAccountIDs added in v2.11.0

func (transaction *ContractCreateFlow) GetNodeAccountIDs() []AccountID

func (*ContractCreateFlow) GetProxyAccountID added in v2.11.0

func (transaction *ContractCreateFlow) GetProxyAccountID() AccountID

func (*ContractCreateFlow) SetAdminKey added in v2.11.0

func (transaction *ContractCreateFlow) SetAdminKey(adminKey Key) *ContractCreateFlow

func (*ContractCreateFlow) SetAutoRenewPeriod added in v2.11.0

func (transaction *ContractCreateFlow) SetAutoRenewPeriod(autoRenewPeriod time.Duration) *ContractCreateFlow

func (*ContractCreateFlow) SetBytecode added in v2.11.0

func (transaction *ContractCreateFlow) SetBytecode(bytecode []byte) *ContractCreateFlow

func (*ContractCreateFlow) SetBytecodeWithString added in v2.11.0

func (transaction *ContractCreateFlow) SetBytecodeWithString(bytecode string) *ContractCreateFlow

func (*ContractCreateFlow) SetConstructorParameters added in v2.11.0

func (transaction *ContractCreateFlow) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateFlow

Sets the constructor parameters

func (*ContractCreateFlow) SetConstructorParametersRaw added in v2.11.0

func (transaction *ContractCreateFlow) SetConstructorParametersRaw(params []byte) *ContractCreateFlow

Sets the constructor parameters as their raw bytes.

func (*ContractCreateFlow) SetContractMemo added in v2.11.0

func (transaction *ContractCreateFlow) SetContractMemo(memo string) *ContractCreateFlow

Sets the memo to be associated with this contract.

func (*ContractCreateFlow) SetGas added in v2.11.0

func (transaction *ContractCreateFlow) SetGas(gas int64) *ContractCreateFlow

func (*ContractCreateFlow) SetInitialBalance added in v2.11.0

func (transaction *ContractCreateFlow) SetInitialBalance(initialBalance Hbar) *ContractCreateFlow

func (*ContractCreateFlow) SetNodeAccountIDs added in v2.11.0

func (transaction *ContractCreateFlow) SetNodeAccountIDs(nodeID []AccountID) *ContractCreateFlow

func (*ContractCreateFlow) SetProxyAccountID added in v2.11.0

func (transaction *ContractCreateFlow) SetProxyAccountID(proxyAccountID AccountID) *ContractCreateFlow

type ContractCreateTransaction

type ContractCreateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewContractCreateTransaction

func NewContractCreateTransaction() *ContractCreateTransaction

func (*ContractCreateTransaction) AddSignature added in v2.1.3

func (transaction *ContractCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractCreateTransaction

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)

func (*ContractCreateTransaction) GetAutoRenewPeriod

func (transaction *ContractCreateTransaction) GetAutoRenewPeriod() time.Duration

func (*ContractCreateTransaction) GetBytecodeFileID

func (transaction *ContractCreateTransaction) GetBytecodeFileID() FileID

func (*ContractCreateTransaction) GetConstructorParameters

func (transaction *ContractCreateTransaction) GetConstructorParameters() []byte

func (*ContractCreateTransaction) GetContractMemo

func (transaction *ContractCreateTransaction) GetContractMemo() string

func (*ContractCreateTransaction) GetGas

func (transaction *ContractCreateTransaction) GetGas() uint64

func (*ContractCreateTransaction) GetInitialBalance

func (transaction *ContractCreateTransaction) GetInitialBalance() Hbar

GetInitialBalance gets the initial number of Hbar in the account

func (*ContractCreateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ContractCreateTransaction) GetMaxBackoff() time.Duration

func (*ContractCreateTransaction) GetMaxTransactionFee

func (transaction *ContractCreateTransaction) GetMaxTransactionFee() Hbar

func (*ContractCreateTransaction) GetMinBackoff added in v2.1.16

func (transaction *ContractCreateTransaction) GetMinBackoff() time.Duration

func (*ContractCreateTransaction) GetProxyAccountID

func (transaction *ContractCreateTransaction) GetProxyAccountID() AccountID

func (*ContractCreateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ContractCreateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ContractCreateTransaction) GetTransactionID

func (transaction *ContractCreateTransaction) GetTransactionID() TransactionID

func (*ContractCreateTransaction) GetTransactionMemo

func (transaction *ContractCreateTransaction) GetTransactionMemo() string

func (*ContractCreateTransaction) GetTransactionValidDuration

func (transaction *ContractCreateTransaction) GetTransactionValidDuration() time.Duration

func (*ContractCreateTransaction) IsFrozen

func (transaction *ContractCreateTransaction) IsFrozen() bool

func (*ContractCreateTransaction) Schedule added in v2.1.5

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) 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) SetBytecodeFileID

func (transaction *ContractCreateTransaction) SetBytecodeFileID(byteCodeFileID FileID) *ContractCreateTransaction

func (*ContractCreateTransaction) SetConstructorParameters

func (transaction *ContractCreateTransaction) SetConstructorParameters(params *ContractFunctionParameters) *ContractCreateTransaction

Sets the constructor parameters

func (*ContractCreateTransaction) SetConstructorParametersRaw

func (transaction *ContractCreateTransaction) SetConstructorParametersRaw(params []byte) *ContractCreateTransaction

Sets the constructor parameters as their raw bytes.

func (*ContractCreateTransaction) SetContractMemo

func (transaction *ContractCreateTransaction) SetContractMemo(memo string) *ContractCreateTransaction

Sets the memo to be associated with this contract.

func (*ContractCreateTransaction) SetGas

Sets the gas to run the constructor.

func (*ContractCreateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *ContractCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractCreateTransaction

func (*ContractCreateTransaction) SetInitialBalance

func (transaction *ContractCreateTransaction) SetInitialBalance(initialBalance Hbar) *ContractCreateTransaction

SetInitialBalance sets the initial number of Hbar to put into the account

func (*ContractCreateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ContractCreateTransaction) SetMaxBackoff(max time.Duration) *ContractCreateTransaction

func (*ContractCreateTransaction) SetMaxRetry added in v2.1.2

func (transaction *ContractCreateTransaction) SetMaxRetry(count int) *ContractCreateTransaction

func (*ContractCreateTransaction) SetMaxTransactionFee

func (transaction *ContractCreateTransaction) SetMaxTransactionFee(fee Hbar) *ContractCreateTransaction

SetMaxTransactionFee sets the max transaction fee for this ContractCreateTransaction.

func (*ContractCreateTransaction) SetMinBackoff added in v2.1.16

func (transaction *ContractCreateTransaction) SetMinBackoff(min time.Duration) *ContractCreateTransaction

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

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 added in v2.8.0

func (transaction *ContractCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractCreateTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

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)

type ContractDeleteTransaction

type ContractDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewContractDeleteTransaction

func NewContractDeleteTransaction() *ContractDeleteTransaction

func (*ContractDeleteTransaction) AddSignature added in v2.1.3

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

func (*ContractDeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ContractDeleteTransaction) GetMaxBackoff() time.Duration

func (*ContractDeleteTransaction) GetMaxTransactionFee

func (transaction *ContractDeleteTransaction) GetMaxTransactionFee() Hbar

func (*ContractDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *ContractDeleteTransaction) GetMinBackoff() time.Duration

func (*ContractDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ContractDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ContractDeleteTransaction) GetTransactionID

func (transaction *ContractDeleteTransaction) GetTransactionID() TransactionID

func (*ContractDeleteTransaction) GetTransactionMemo

func (transaction *ContractDeleteTransaction) GetTransactionMemo() string

func (*ContractDeleteTransaction) GetTransactionValidDuration

func (transaction *ContractDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*ContractDeleteTransaction) GetTransferAccountID

func (transaction *ContractDeleteTransaction) GetTransferAccountID() AccountID

func (*ContractDeleteTransaction) GetTransferContractID

func (transaction *ContractDeleteTransaction) GetTransferContractID() ContractID

func (*ContractDeleteTransaction) IsFrozen

func (transaction *ContractDeleteTransaction) IsFrozen() bool

func (*ContractDeleteTransaction) Schedule added in v2.1.5

func (transaction *ContractDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*ContractDeleteTransaction) SetContractID

func (transaction *ContractDeleteTransaction) SetContractID(contractID ContractID) *ContractDeleteTransaction

Sets the contract ID which should be deleted.

func (*ContractDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *ContractDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractDeleteTransaction

func (*ContractDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ContractDeleteTransaction) SetMaxBackoff(max time.Duration) *ContractDeleteTransaction

func (*ContractDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *ContractDeleteTransaction) SetMaxRetry(count int) *ContractDeleteTransaction

func (*ContractDeleteTransaction) SetMaxTransactionFee

func (transaction *ContractDeleteTransaction) SetMaxTransactionFee(fee Hbar) *ContractDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this ContractDeleteTransaction.

func (*ContractDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *ContractDeleteTransaction) SetMinBackoff(min time.Duration) *ContractDeleteTransaction

func (*ContractDeleteTransaction) SetNodeAccountIDs

func (transaction *ContractDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ContractDeleteTransaction

SetNodeAccountIDs sets the _Node AccountID for this ContractDeleteTransaction.

func (*ContractDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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)

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 added in v2.1.3

func (transaction *ContractExecuteTransaction) AddSignature(publicKey PublicKey, signature []byte) *ContractExecuteTransaction

func (*ContractExecuteTransaction) Execute

func (transaction *ContractExecuteTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*ContractExecuteTransaction) Freeze

func (*ContractExecuteTransaction) FreezeWith

func (transaction *ContractExecuteTransaction) FreezeWith(client *Client) (*ContractExecuteTransaction, error)

func (*ContractExecuteTransaction) GetContractID

func (transaction *ContractExecuteTransaction) GetContractID() ContractID

func (*ContractExecuteTransaction) GetFunctionParameters

func (transaction *ContractExecuteTransaction) GetFunctionParameters() []byte

func (*ContractExecuteTransaction) GetGas added in v2.1.3

func (transaction *ContractExecuteTransaction) GetGas() uint64

func (*ContractExecuteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ContractExecuteTransaction) GetMaxBackoff() time.Duration

func (*ContractExecuteTransaction) GetMaxTransactionFee

func (transaction *ContractExecuteTransaction) GetMaxTransactionFee() Hbar

func (*ContractExecuteTransaction) GetMinBackoff added in v2.1.16

func (transaction *ContractExecuteTransaction) GetMinBackoff() time.Duration

func (ContractExecuteTransaction) GetPayableAmount

func (transaction ContractExecuteTransaction) GetPayableAmount() Hbar

func (*ContractExecuteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ContractExecuteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ContractExecuteTransaction) GetTransactionID

func (transaction *ContractExecuteTransaction) GetTransactionID() TransactionID

func (*ContractExecuteTransaction) GetTransactionMemo

func (transaction *ContractExecuteTransaction) GetTransactionMemo() string

func (*ContractExecuteTransaction) GetTransactionValidDuration

func (transaction *ContractExecuteTransaction) GetTransactionValidDuration() time.Duration

func (*ContractExecuteTransaction) IsFrozen

func (transaction *ContractExecuteTransaction) IsFrozen() bool

func (*ContractExecuteTransaction) Schedule added in v2.1.5

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

SetFunction sets which function to call, and the ContractFunctionParams to pass to the function

func (*ContractExecuteTransaction) SetFunctionParameters

func (transaction *ContractExecuteTransaction) SetFunctionParameters(params []byte) *ContractExecuteTransaction

Sets the function parameters

func (*ContractExecuteTransaction) SetGas

SetGas sets the maximum amount of gas to use for the call.

func (*ContractExecuteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *ContractExecuteTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractExecuteTransaction

func (*ContractExecuteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ContractExecuteTransaction) SetMaxBackoff(max time.Duration) *ContractExecuteTransaction

func (*ContractExecuteTransaction) SetMaxRetry added in v2.1.2

func (transaction *ContractExecuteTransaction) SetMaxRetry(count int) *ContractExecuteTransaction

func (*ContractExecuteTransaction) SetMaxTransactionFee

func (transaction *ContractExecuteTransaction) SetMaxTransactionFee(fee Hbar) *ContractExecuteTransaction

SetMaxTransactionFee sets the max transaction fee for this ContractExecuteTransaction.

func (*ContractExecuteTransaction) SetMinBackoff added in v2.1.16

func (transaction *ContractExecuteTransaction) SetMinBackoff(min time.Duration) *ContractExecuteTransaction

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 added in v2.8.0

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)

type ContractFunctionParameters

type ContractFunctionParameters struct {
	// contains filtered or unexported fields
}

func NewContractFunctionParameters

func NewContractFunctionParameters() *ContractFunctionParameters

func (*ContractFunctionParameters) AddAddress

func (contract *ContractFunctionParameters) AddAddress(value string) (*ContractFunctionParameters, error)

func (*ContractFunctionParameters) AddAddressArray

func (contract *ContractFunctionParameters) AddAddressArray(value []string) (*ContractFunctionParameters, error)

func (*ContractFunctionParameters) AddBool

func (*ContractFunctionParameters) AddBytes

func (contract *ContractFunctionParameters) AddBytes(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddBytes32

func (contract *ContractFunctionParameters) AddBytes32(value [32]byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddBytes32Array

func (contract *ContractFunctionParameters) AddBytes32Array(value [][]byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddBytesArray

func (contract *ContractFunctionParameters) AddBytesArray(value [][]byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddFunction

func (contract *ContractFunctionParameters) AddFunction(address string, selector ContractFunctionSelector) (*ContractFunctionParameters, error)

func (*ContractFunctionParameters) AddInt104 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt104(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt112 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt112(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt120 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt120(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt128 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt128(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt136 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt136(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt144 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt144(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt152 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt152(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt16 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt16(value int16) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt160 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt160(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt168 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt168(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt16Array added in v2.12.0

func (contract *ContractFunctionParameters) AddInt16Array(value []int16) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt176 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt176(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt184 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt184(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt192 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt192(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt200 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt200(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt208 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt208(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt216 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt216(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt224 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt224(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt232 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt232(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt24 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt24(value int32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt240 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt240(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt248 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt248(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt24Array added in v2.12.0

func (contract *ContractFunctionParameters) AddInt24Array(value []int32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt256

func (contract *ContractFunctionParameters) AddInt256(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt256Array

func (contract *ContractFunctionParameters) AddInt256Array(value [][32]byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt32

func (contract *ContractFunctionParameters) AddInt32(value int32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt32Array

func (contract *ContractFunctionParameters) AddInt32Array(value []int32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt40 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt40(value int64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt48 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt48(value int64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt56 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt56(value int64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt64

func (contract *ContractFunctionParameters) AddInt64(value int64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt64Array

func (contract *ContractFunctionParameters) AddInt64Array(value []int64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt72 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt72(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt8

func (*ContractFunctionParameters) AddInt80 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt80(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt88 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt88(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt8Array added in v2.12.0

func (contract *ContractFunctionParameters) AddInt8Array(value []int8) *ContractFunctionParameters

func (*ContractFunctionParameters) AddInt96 added in v2.12.0

func (contract *ContractFunctionParameters) AddInt96(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddString

func (contract *ContractFunctionParameters) AddString(value string) *ContractFunctionParameters

func (*ContractFunctionParameters) AddStringArray

func (contract *ContractFunctionParameters) AddStringArray(value []string) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint104 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint104(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint112 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint112(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint120 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint120(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint128 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint128(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint136 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint136(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint144 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint144(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint152 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint152(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint16 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint16(value uint16) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint160 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint160(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint168 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint168(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint176 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint176(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint184 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint184(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint192 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint192(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint200 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint200(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint208 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint208(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint216 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint216(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint224 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint224(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint232 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint232(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint24 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint24(value uint32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint240 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint240(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint248 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint248(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint256

func (contract *ContractFunctionParameters) AddUint256(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint256Array

func (contract *ContractFunctionParameters) AddUint256Array(value [][32]byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint32

func (contract *ContractFunctionParameters) AddUint32(value uint32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint32Array

func (contract *ContractFunctionParameters) AddUint32Array(value []uint32) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint40 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint40(value uint64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint48 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint48(value uint64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint56 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint56(value uint64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint64

func (contract *ContractFunctionParameters) AddUint64(value uint64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint64Array

func (contract *ContractFunctionParameters) AddUint64Array(value []uint64) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint72 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint72(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint8

func (contract *ContractFunctionParameters) AddUint8(value uint8) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint80 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint80(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint88 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint88(value []byte) *ContractFunctionParameters

func (*ContractFunctionParameters) AddUint96 added in v2.12.0

func (contract *ContractFunctionParameters) AddUint96(value []byte) *ContractFunctionParameters

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
	ContractStateChanges []ContractStateChange
	EvmAddress           ContractID
	GasAvailable         int64
	Amount               Hbar
	FunctionParameters   []byte
}

ContractFunctionResult is the result returned by a call to a smart contract function. This is The _Response to a ContractCallQuery, and is in the record for a ContractCallQuery.

func ContractFunctionResultFromBytes added in v2.9.0

func ContractFunctionResultFromBytes(data []byte) (ContractFunctionResult, error)

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) 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 added in v2.12.0

func (result ContractFunctionResult) GetInt104(index uint64) []byte

func (ContractFunctionResult) GetInt112 added in v2.12.0

func (result ContractFunctionResult) GetInt112(index uint64) []byte

func (ContractFunctionResult) GetInt120 added in v2.12.0

func (result ContractFunctionResult) GetInt120(index uint64) []byte

func (ContractFunctionResult) GetInt128 added in v2.12.0

func (result ContractFunctionResult) GetInt128(index uint64) []byte

func (ContractFunctionResult) GetInt136 added in v2.12.0

func (result ContractFunctionResult) GetInt136(index uint64) []byte

func (ContractFunctionResult) GetInt144 added in v2.12.0

func (result ContractFunctionResult) GetInt144(index uint64) []byte

func (ContractFunctionResult) GetInt152 added in v2.12.0

func (result ContractFunctionResult) GetInt152(index uint64) []byte

func (ContractFunctionResult) GetInt16 added in v2.12.0

func (result ContractFunctionResult) GetInt16(index uint64) uint16

func (ContractFunctionResult) GetInt160 added in v2.12.0

func (result ContractFunctionResult) GetInt160(index uint64) []byte

func (ContractFunctionResult) GetInt168 added in v2.12.0

func (result ContractFunctionResult) GetInt168(index uint64) []byte

func (ContractFunctionResult) GetInt176 added in v2.12.0

func (result ContractFunctionResult) GetInt176(index uint64) []byte

func (ContractFunctionResult) GetInt184 added in v2.12.0

func (result ContractFunctionResult) GetInt184(index uint64) []byte

func (ContractFunctionResult) GetInt192 added in v2.12.0

func (result ContractFunctionResult) GetInt192(index uint64) []byte

func (ContractFunctionResult) GetInt200 added in v2.12.0

func (result ContractFunctionResult) GetInt200(index uint64) []byte

func (ContractFunctionResult) GetInt208 added in v2.12.0

func (result ContractFunctionResult) GetInt208(index uint64) []byte

func (ContractFunctionResult) GetInt216 added in v2.12.0

func (result ContractFunctionResult) GetInt216(index uint64) []byte

func (ContractFunctionResult) GetInt224 added in v2.12.0

func (result ContractFunctionResult) GetInt224(index uint64) []byte

func (ContractFunctionResult) GetInt232 added in v2.12.0

func (result ContractFunctionResult) GetInt232(index uint64) []byte

func (ContractFunctionResult) GetInt24 added in v2.12.0

func (result ContractFunctionResult) GetInt24(index uint64) uint32

func (ContractFunctionResult) GetInt240 added in v2.12.0

func (result ContractFunctionResult) GetInt240(index uint64) []byte

func (ContractFunctionResult) GetInt248 added in v2.12.0

func (result ContractFunctionResult) GetInt248(index uint64) []byte

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 added in v2.12.0

func (result ContractFunctionResult) GetInt40(index uint64) uint64

func (ContractFunctionResult) GetInt48 added in v2.12.0

func (result ContractFunctionResult) GetInt48(index uint64) uint64

func (ContractFunctionResult) GetInt56 added in v2.12.0

func (result ContractFunctionResult) GetInt56(index uint64) uint64

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 added in v2.12.0

func (result ContractFunctionResult) GetInt72(index uint64) []byte

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 added in v2.12.0

func (result ContractFunctionResult) GetInt80(index uint64) []byte

func (ContractFunctionResult) GetInt88 added in v2.12.0

func (result ContractFunctionResult) GetInt88(index uint64) []byte

func (ContractFunctionResult) GetInt96 added in v2.12.0

func (result ContractFunctionResult) GetInt96(index uint64) []byte

func (ContractFunctionResult) GetString

func (result ContractFunctionResult) GetString(index uint64) string

GetString gets a string from the result at the given index

func (ContractFunctionResult) GetUint104 added in v2.12.0

func (result ContractFunctionResult) GetUint104(index uint64) []byte

func (ContractFunctionResult) GetUint112 added in v2.12.0

func (result ContractFunctionResult) GetUint112(index uint64) []byte

func (ContractFunctionResult) GetUint120 added in v2.12.0

func (result ContractFunctionResult) GetUint120(index uint64) []byte

func (ContractFunctionResult) GetUint128 added in v2.12.0

func (result ContractFunctionResult) GetUint128(index uint64) []byte

func (ContractFunctionResult) GetUint136 added in v2.12.0

func (result ContractFunctionResult) GetUint136(index uint64) []byte

func (ContractFunctionResult) GetUint144 added in v2.12.0

func (result ContractFunctionResult) GetUint144(index uint64) []byte

func (ContractFunctionResult) GetUint152 added in v2.12.0

func (result ContractFunctionResult) GetUint152(index uint64) []byte

func (ContractFunctionResult) GetUint16 added in v2.12.0

func (result ContractFunctionResult) GetUint16(index uint64) uint16

func (ContractFunctionResult) GetUint160 added in v2.12.0

func (result ContractFunctionResult) GetUint160(index uint64) []byte

func (ContractFunctionResult) GetUint168 added in v2.12.0

func (result ContractFunctionResult) GetUint168(index uint64) []byte

func (ContractFunctionResult) GetUint176 added in v2.12.0

func (result ContractFunctionResult) GetUint176(index uint64) []byte

func (ContractFunctionResult) GetUint184 added in v2.12.0

func (result ContractFunctionResult) GetUint184(index uint64) []byte

func (ContractFunctionResult) GetUint192 added in v2.12.0

func (result ContractFunctionResult) GetUint192(index uint64) []byte

func (ContractFunctionResult) GetUint200 added in v2.12.0

func (result ContractFunctionResult) GetUint200(index uint64) []byte

func (ContractFunctionResult) GetUint208 added in v2.12.0

func (result ContractFunctionResult) GetUint208(index uint64) []byte

func (ContractFunctionResult) GetUint216 added in v2.12.0

func (result ContractFunctionResult) GetUint216(index uint64) []byte

func (ContractFunctionResult) GetUint224 added in v2.12.0

func (result ContractFunctionResult) GetUint224(index uint64) []byte

func (ContractFunctionResult) GetUint232 added in v2.12.0

func (result ContractFunctionResult) GetUint232(index uint64) []byte

func (ContractFunctionResult) GetUint24 added in v2.12.0

func (result ContractFunctionResult) GetUint24(index uint64) uint32

func (ContractFunctionResult) GetUint240 added in v2.12.0

func (result ContractFunctionResult) GetUint240(index uint64) []byte

func (ContractFunctionResult) GetUint248 added in v2.12.0

func (result ContractFunctionResult) GetUint248(index uint64) []byte

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 added in v2.12.0

func (result ContractFunctionResult) GetUint40(index uint64) uint64

func (ContractFunctionResult) GetUint48 added in v2.12.0

func (result ContractFunctionResult) GetUint48(index uint64) uint64

func (ContractFunctionResult) GetUint56 added in v2.12.0

func (result ContractFunctionResult) GetUint56(index uint64) uint64

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 added in v2.12.0

func (result ContractFunctionResult) GetUint72(index uint64) []byte

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 added in v2.12.0

func (result ContractFunctionResult) GetUint80(index uint64) []byte

func (ContractFunctionResult) GetUint88 added in v2.12.0

func (result ContractFunctionResult) GetUint88(index uint64) []byte

func (ContractFunctionResult) GetUint96 added in v2.12.0

func (result ContractFunctionResult) GetUint96(index uint64) []byte

func (*ContractFunctionResult) ToBytes added in v2.9.0

func (result *ContractFunctionResult) ToBytes() []byte

type ContractFunctionSelector

type ContractFunctionSelector struct {
	// contains filtered or unexported fields
}

func NewContractFunctionSelector

func NewContractFunctionSelector(name string) ContractFunctionSelector

func (*ContractFunctionSelector) AddAddress

func (selector *ContractFunctionSelector) AddAddress() *ContractFunctionSelector

func (*ContractFunctionSelector) AddAddressArray

func (selector *ContractFunctionSelector) AddAddressArray() *ContractFunctionSelector

func (*ContractFunctionSelector) AddBool

func (*ContractFunctionSelector) AddBoolArray

func (selector *ContractFunctionSelector) AddBoolArray() *ContractFunctionSelector

func (*ContractFunctionSelector) AddBytes

func (selector *ContractFunctionSelector) AddBytes() *ContractFunctionSelector

func (*ContractFunctionSelector) AddBytes32

func (selector *ContractFunctionSelector) AddBytes32() *ContractFunctionSelector

func (*ContractFunctionSelector) AddBytes32Array

func (selector *ContractFunctionSelector) AddBytes32Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddBytesArray

func (selector *ContractFunctionSelector) AddBytesArray() *ContractFunctionSelector

func (*ContractFunctionSelector) AddFunction

func (selector *ContractFunctionSelector) AddFunction() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt104 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt104() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt112 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt112() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt120 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt120() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt128 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt128() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt136 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt136() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt144 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt144() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt152 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt152() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt16 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt16() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt160 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt160() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt168 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt168() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt176 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt176() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt184 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt184() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt192 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt192() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt200 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt200() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt208 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt208() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt216 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt216() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt224 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt224() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt232 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt232() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt24 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt24() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt240 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt240() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt248 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt248() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt256

func (selector *ContractFunctionSelector) AddInt256() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt256Array

func (selector *ContractFunctionSelector) AddInt256Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt32

func (selector *ContractFunctionSelector) AddInt32() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt32Array

func (selector *ContractFunctionSelector) AddInt32Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt40 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt40() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt48 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt48() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt56 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt56() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt64

func (selector *ContractFunctionSelector) AddInt64() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt64Array

func (selector *ContractFunctionSelector) AddInt64Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt72 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt72() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt8

func (*ContractFunctionSelector) AddInt80 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt80() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt88 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt88() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt8Array

func (selector *ContractFunctionSelector) AddInt8Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddInt96 added in v2.12.0

func (selector *ContractFunctionSelector) AddInt96() *ContractFunctionSelector

func (*ContractFunctionSelector) AddString

func (selector *ContractFunctionSelector) AddString() *ContractFunctionSelector

func (*ContractFunctionSelector) AddStringArray

func (selector *ContractFunctionSelector) AddStringArray() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint104 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint104() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint112 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint112() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint120 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint120() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint128 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint128() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint136 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint136() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint144 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint144() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint152 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint152() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint16 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint16() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint160 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint160() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint168 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint168() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint176 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint176() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint184 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint184() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint192 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint192() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint200 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint200() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint208 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint208() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint216 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint216() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint224 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint224() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint232 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint232() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint24 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint24() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint240 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint240() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint248 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint248() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint256

func (selector *ContractFunctionSelector) AddUint256() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint256Array

func (selector *ContractFunctionSelector) AddUint256Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint32

func (selector *ContractFunctionSelector) AddUint32() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint32Array

func (selector *ContractFunctionSelector) AddUint32Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint40 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint40() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint48 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint48() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint56 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint56() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint64

func (selector *ContractFunctionSelector) AddUint64() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint64Array

func (selector *ContractFunctionSelector) AddUint64Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint72 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint72() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint8

func (selector *ContractFunctionSelector) AddUint8() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint80 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint80() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint88 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint88() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint8Array

func (selector *ContractFunctionSelector) AddUint8Array() *ContractFunctionSelector

func (*ContractFunctionSelector) AddUint96 added in v2.12.0

func (selector *ContractFunctionSelector) AddUint96() *ContractFunctionSelector

func (*ContractFunctionSelector) String

func (selector *ContractFunctionSelector) String() string

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 added in v2.1.3

func ContractIDFromBytes(data []byte) (ContractID, error)

func ContractIDFromEvmAddress added in v2.9.0

func ContractIDFromEvmAddress(shard uint64, realm uint64, evmAddress string) (ContractID, error)

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) 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 added in v2.1.3

func (id ContractID) ToBytes() []byte

func (ContractID) ToSolidityAddress

func (id ContractID) ToSolidityAddress() string

ToSolidityAddress returns the string representation of the ContractID as a _Solidity address.

func (ContractID) ToStringWithChecksum added in v2.1.13

func (id ContractID) ToStringWithChecksum(client Client) (string, error)

func (*ContractID) Validate added in v2.1.8

func (id *ContractID) Validate(client *Client) error

Deprecated

func (*ContractID) ValidateChecksum added in v2.4.0

func (id *ContractID) ValidateChecksum(client *Client) error

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
}

func ContractInfoFromBytes added in v2.1.3

func ContractInfoFromBytes(data []byte) (ContractInfo, error)

func (ContractInfo) ToBytes added in v2.1.3

func (contractInfo ContractInfo) ToBytes() []byte

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)

func (*ContractInfoQuery) GetContractID

func (query *ContractInfoQuery) GetContractID() ContractID

func (*ContractInfoQuery) GetCost

func (query *ContractInfoQuery) GetCost(client *Client) (Hbar, error)

func (*ContractInfoQuery) GetMaxBackoff added in v2.1.16

func (query *ContractInfoQuery) GetMaxBackoff() time.Duration

func (*ContractInfoQuery) GetMinBackoff added in v2.1.16

func (query *ContractInfoQuery) GetMinBackoff() time.Duration

func (*ContractInfoQuery) SetContractID

func (query *ContractInfoQuery) SetContractID(contractID ContractID) *ContractInfoQuery

SetContractID sets the contract for which information is requested

func (*ContractInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *ContractInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ContractInfoQuery

func (*ContractInfoQuery) SetMaxBackoff added in v2.1.16

func (query *ContractInfoQuery) SetMaxBackoff(max time.Duration) *ContractInfoQuery

func (*ContractInfoQuery) SetMaxQueryPayment

func (query *ContractInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ContractInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*ContractInfoQuery) SetMaxRetry added in v2.1.2

func (query *ContractInfoQuery) SetMaxRetry(count int) *ContractInfoQuery

func (*ContractInfoQuery) SetMinBackoff added in v2.1.16

func (query *ContractInfoQuery) SetMinBackoff(min time.Duration) *ContractInfoQuery

func (*ContractInfoQuery) SetNodeAccountIDs

func (query *ContractInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ContractInfoQuery

SetNodeAccountIDs sets the _Node AccountID for this ContractInfoQuery.

func (*ContractInfoQuery) SetPaymentTransactionID added in v2.11.0

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 ContractStateChange added in v2.9.0

type ContractStateChange struct {
	ContractID     *ContractID
	StorageChanges []*StorageChange
}

func ContractStateChangeFromBytes added in v2.9.0

func ContractStateChangeFromBytes(data []byte) (ContractStateChange, error)

func (*ContractStateChange) ToBytes added in v2.9.0

func (csc *ContractStateChange) ToBytes() []byte

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.

func (*ContractUpdateTransaction) AddSignature added in v2.1.3

func (transaction *ContractUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *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) 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) GetExpirationTime

func (transaction *ContractUpdateTransaction) GetExpirationTime() time.Time

func (*ContractUpdateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ContractUpdateTransaction) GetMaxBackoff() time.Duration

func (*ContractUpdateTransaction) GetMaxTransactionFee

func (transaction *ContractUpdateTransaction) GetMaxTransactionFee() Hbar

func (*ContractUpdateTransaction) GetMinBackoff added in v2.1.16

func (transaction *ContractUpdateTransaction) GetMinBackoff() time.Duration

func (*ContractUpdateTransaction) GetProxyAccountID

func (transaction *ContractUpdateTransaction) GetProxyAccountID() AccountID

func (*ContractUpdateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ContractUpdateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ContractUpdateTransaction) GetTransactionID

func (transaction *ContractUpdateTransaction) GetTransactionID() TransactionID

func (*ContractUpdateTransaction) GetTransactionMemo

func (transaction *ContractUpdateTransaction) GetTransactionMemo() string

func (*ContractUpdateTransaction) GetTransactionValidDuration

func (transaction *ContractUpdateTransaction) GetTransactionValidDuration() time.Duration

func (*ContractUpdateTransaction) IsFrozen

func (transaction *ContractUpdateTransaction) IsFrozen() bool

func (*ContractUpdateTransaction) Schedule added in v2.1.5

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) 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) 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 added in v2.11.0

func (transaction *ContractUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *ContractUpdateTransaction

func (*ContractUpdateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ContractUpdateTransaction) SetMaxBackoff(max time.Duration) *ContractUpdateTransaction

func (*ContractUpdateTransaction) SetMaxRetry added in v2.1.2

func (transaction *ContractUpdateTransaction) SetMaxRetry(count int) *ContractUpdateTransaction

func (*ContractUpdateTransaction) SetMaxTransactionFee

func (transaction *ContractUpdateTransaction) SetMaxTransactionFee(fee Hbar) *ContractUpdateTransaction

SetMaxTransactionFee sets the max transaction fee for this ContractUpdateTransaction.

func (*ContractUpdateTransaction) SetMinBackoff added in v2.1.16

func (transaction *ContractUpdateTransaction) SetMinBackoff(min time.Duration) *ContractUpdateTransaction

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

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 added in v2.8.0

func (transaction *ContractUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ContractUpdateTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

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)

type CustomFee added in v2.1.11

type CustomFee struct {
	FeeCollectorAccountID *AccountID
}

func (*CustomFee) GetFeeCollectorAccountID added in v2.1.13

func (fee *CustomFee) GetFeeCollectorAccountID() AccountID

func (*CustomFee) SetFeeCollectorAccountID added in v2.1.13

func (fee *CustomFee) SetFeeCollectorAccountID(id AccountID) *CustomFee

type CustomFixedFee added in v2.1.11

type CustomFixedFee struct {
	CustomFee
	Amount              int64
	DenominationTokenID *TokenID
}

func NewCustomFixedFee added in v2.1.16

func NewCustomFixedFee() *CustomFixedFee

func (*CustomFixedFee) GetAmount added in v2.1.16

func (fee *CustomFixedFee) GetAmount() Hbar

func (*CustomFixedFee) GetDenominatingTokenID added in v2.1.16

func (fee *CustomFixedFee) GetDenominatingTokenID() TokenID

func (*CustomFixedFee) GetFeeCollectorAccountID added in v2.1.16

func (fee *CustomFixedFee) GetFeeCollectorAccountID() AccountID

func (*CustomFixedFee) GetHbarAmount added in v2.1.13

func (fee *CustomFixedFee) GetHbarAmount() Hbar

func (*CustomFixedFee) SetAmount added in v2.1.16

func (fee *CustomFixedFee) SetAmount(tinybar int64) *CustomFixedFee

func (*CustomFixedFee) SetDenominatingTokenID added in v2.1.16

func (fee *CustomFixedFee) SetDenominatingTokenID(id TokenID) *CustomFixedFee

func (*CustomFixedFee) SetDenominatingTokenToSameToken added in v2.1.13

func (fee *CustomFixedFee) SetDenominatingTokenToSameToken() *CustomFixedFee

func (*CustomFixedFee) SetFeeCollectorAccountID added in v2.1.16

func (fee *CustomFixedFee) SetFeeCollectorAccountID(id AccountID) *CustomFixedFee

func (*CustomFixedFee) SetHbarAmount added in v2.1.13

func (fee *CustomFixedFee) SetHbarAmount(hbar Hbar) *CustomFixedFee

func (CustomFixedFee) String added in v2.4.0

func (fee CustomFixedFee) String() string

func (CustomFixedFee) ToBytes added in v2.1.11

func (fee CustomFixedFee) ToBytes() []byte

type CustomFractionalFee added in v2.1.11

type CustomFractionalFee struct {
	CustomFee
	Numerator        int64
	Denominator      int64
	MinimumAmount    int64
	MaximumAmount    int64
	AssessmentMethod FeeAssessmentMethod
}

func NewCustomFractionalFee added in v2.1.16

func NewCustomFractionalFee() *CustomFractionalFee

func (*CustomFractionalFee) GetAssessmentMethod added in v2.1.16

func (fee *CustomFractionalFee) GetAssessmentMethod() FeeAssessmentMethod

func (*CustomFractionalFee) GetDenominator added in v2.1.16

func (fee *CustomFractionalFee) GetDenominator() int64

func (*CustomFractionalFee) GetFeeCollectorAccountID added in v2.1.16

func (fee *CustomFractionalFee) GetFeeCollectorAccountID() AccountID

func (*CustomFractionalFee) GetMax added in v2.1.16

func (fee *CustomFractionalFee) GetMax() int64

func (*CustomFractionalFee) GetMin added in v2.1.16

func (fee *CustomFractionalFee) GetMin() int64

func (*CustomFractionalFee) GetNumerator added in v2.1.16

func (fee *CustomFractionalFee) GetNumerator() int64

func (*CustomFractionalFee) SetDenominator added in v2.1.16

func (fee *CustomFractionalFee) SetDenominator(denominator int64) *CustomFractionalFee

func (*CustomFractionalFee) SetFeeCollectorAccountID added in v2.1.16

func (fee *CustomFractionalFee) SetFeeCollectorAccountID(id AccountID) *CustomFractionalFee

func (*CustomFractionalFee) SetMax added in v2.1.16

func (fee *CustomFractionalFee) SetMax(max int64) *CustomFractionalFee

func (*CustomFractionalFee) SetMin added in v2.1.16

func (fee *CustomFractionalFee) SetMin(min int64) *CustomFractionalFee

func (*CustomFractionalFee) SetNumerator added in v2.1.16

func (fee *CustomFractionalFee) SetNumerator(numerator int64) *CustomFractionalFee

func (CustomFractionalFee) String added in v2.4.0

func (fee CustomFractionalFee) String() string

func (CustomFractionalFee) ToBytes added in v2.1.11

func (fee CustomFractionalFee) ToBytes() []byte

type CustomRoyaltyFee added in v2.1.14

type CustomRoyaltyFee struct {
	CustomFee
	Numerator   int64
	Denominator int64
	FallbackFee *CustomFixedFee
}

func NewCustomRoyaltyFee added in v2.1.16

func NewCustomRoyaltyFee() *CustomRoyaltyFee

func (*CustomRoyaltyFee) GetDenominator added in v2.1.16

func (fee *CustomRoyaltyFee) GetDenominator() int64

func (*CustomRoyaltyFee) GetFallbackFee added in v2.1.16

func (fee *CustomRoyaltyFee) GetFallbackFee() CustomFixedFee

func (*CustomRoyaltyFee) GetFeeCollectorAccountID added in v2.1.16

func (fee *CustomRoyaltyFee) GetFeeCollectorAccountID() AccountID

func (*CustomRoyaltyFee) GetNumerator added in v2.1.16

func (fee *CustomRoyaltyFee) GetNumerator() int64

func (*CustomRoyaltyFee) SetDenominator added in v2.1.14

func (fee *CustomRoyaltyFee) SetDenominator(denominator int64) *CustomRoyaltyFee

func (*CustomRoyaltyFee) SetFallbackFee added in v2.1.14

func (fee *CustomRoyaltyFee) SetFallbackFee(fallbackFee *CustomFixedFee) *CustomRoyaltyFee

func (*CustomRoyaltyFee) SetFeeCollectorAccountID added in v2.1.14

func (fee *CustomRoyaltyFee) SetFeeCollectorAccountID(accountID AccountID) *CustomRoyaltyFee

func (*CustomRoyaltyFee) SetNumerator added in v2.1.14

func (fee *CustomRoyaltyFee) SetNumerator(numerator int64) *CustomRoyaltyFee

type DelegatableContractID added in v2.7.0

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 added in v2.7.0

func DelegatableContractIDFromBytes(data []byte) (DelegatableContractID, error)

func DelegatableContractIDFromEvmAddress added in v2.9.0

func DelegatableContractIDFromEvmAddress(shard uint64, realm uint64, evmAddress string) (DelegatableContractID, error)

func DelegatableContractIDFromSolidityAddress added in v2.7.0

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 added in v2.7.0

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 added in v2.7.0

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 added in v2.7.0

func (id DelegatableContractID) ToBytes() []byte

func (DelegatableContractID) ToSolidityAddress added in v2.7.0

func (id DelegatableContractID) ToSolidityAddress() string

ToSolidityAddress returns the string representation of the DelegatableContractID as a _Solidity address.

func (DelegatableContractID) ToStringWithChecksum added in v2.7.0

func (id DelegatableContractID) ToStringWithChecksum(client Client) (string, error)

func (*DelegatableContractID) ValidateChecksum added in v2.7.0

func (id *DelegatableContractID) ValidateChecksum(client *Client) error

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

func (ErrBadKey) Error

func (e ErrBadKey) Error() string

Error() implements the Error interface

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

type ErrMaxChunksExceeded struct {
	Chunks    uint64
	MaxChunks uint64
}

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

Error() implements the Error interface

type ExchangeRate

type ExchangeRate struct {
	Hbars int32
	// contains filtered or unexported fields
}

func ExchangeRateFromBytes added in v2.5.0

func ExchangeRateFromBytes(data []byte) (ExchangeRate, error)

func (*ExchangeRate) String added in v2.5.0

func (exchange *ExchangeRate) String() string

func (*ExchangeRate) ToBytes added in v2.5.0

func (exchange *ExchangeRate) ToBytes() []byte

type Fee added in v2.1.11

type Fee interface {
	// contains filtered or unexported methods
}

func CustomFeeFromBytes added in v2.1.11

func CustomFeeFromBytes(data []byte) (Fee, error)

type FeeAssessmentMethod added in v2.1.14

type FeeAssessmentMethod bool
const (
	FeeAssessmentMethodInclusive FeeAssessmentMethod = false
	FeeAssessmentMethodExclusive FeeAssessmentMethod = true
)

func (FeeAssessmentMethod) String added in v2.1.14

func (assessment FeeAssessmentMethod) String() string

type FeeComponents added in v2.1.11

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 added in v2.1.11

func FeeComponentsFromBytes(data []byte) (FeeComponents, error)

func (FeeComponents) String added in v2.1.11

func (feeComponents FeeComponents) String() string

func (FeeComponents) ToBytes added in v2.1.11

func (feeComponents FeeComponents) ToBytes() []byte

type FeeData added in v2.1.11

type FeeData struct {
	NodeData    *FeeComponents
	NetworkData *FeeComponents
	ServiceData *FeeComponents
}

func FeeDataFromBytes added in v2.1.11

func FeeDataFromBytes(data []byte) (FeeData, error)

func (FeeData) String added in v2.1.11

func (feeData FeeData) String() string

func (FeeData) ToBytes added in v2.1.11

func (feeData FeeData) ToBytes() []byte

type FeeSchedule added in v2.1.11

type FeeSchedule struct {
	TransactionFeeSchedules []TransactionFeeSchedule
	ExpirationTime          *time.Time
}

func FeeScheduleFromBytes added in v2.1.11

func FeeScheduleFromBytes(data []byte) (FeeSchedule, error)

func (FeeSchedule) String added in v2.1.11

func (feeSchedule FeeSchedule) String() string

func (FeeSchedule) ToBytes added in v2.1.11

func (feeSchedule FeeSchedule) ToBytes() []byte

type FeeSchedules added in v2.1.11

type FeeSchedules struct {
	// contains filtered or unexported fields
}

func FeeSchedulesFromBytes added in v2.1.11

func FeeSchedulesFromBytes(data []byte) (FeeSchedules, error)

func (FeeSchedules) String added in v2.1.11

func (feeSchedules FeeSchedules) String() string

func (FeeSchedules) ToBytes added in v2.1.11

func (feeSchedules FeeSchedules) ToBytes() []byte

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 added in v2.1.3

func (transaction *FileAppendTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileAppendTransaction

func (*FileAppendTransaction) Execute

func (transaction *FileAppendTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*FileAppendTransaction) ExecuteAll added in v2.1.2

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

func (*FileAppendTransaction) GetFileID

func (transaction *FileAppendTransaction) GetFileID() FileID

func (*FileAppendTransaction) GetMaxBackoff added in v2.1.16

func (transaction *FileAppendTransaction) GetMaxBackoff() time.Duration

func (*FileAppendTransaction) GetMaxChunkSize added in v2.8.0

func (transaction *FileAppendTransaction) GetMaxChunkSize() int

func (*FileAppendTransaction) GetMaxTransactionFee

func (transaction *FileAppendTransaction) GetMaxTransactionFee() Hbar

func (*FileAppendTransaction) GetMinBackoff added in v2.1.16

func (transaction *FileAppendTransaction) GetMinBackoff() time.Duration

func (*FileAppendTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *FileAppendTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*FileAppendTransaction) GetTransactionID

func (transaction *FileAppendTransaction) GetTransactionID() TransactionID

func (*FileAppendTransaction) GetTransactionMemo

func (transaction *FileAppendTransaction) GetTransactionMemo() string

func (*FileAppendTransaction) GetTransactionValidDuration

func (transaction *FileAppendTransaction) GetTransactionValidDuration() time.Duration

func (*FileAppendTransaction) IsFrozen

func (transaction *FileAppendTransaction) IsFrozen() bool

func (*FileAppendTransaction) Schedule added in v2.1.5

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 added in v2.11.0

func (transaction *FileAppendTransaction) SetGrpcDeadline(deadline *time.Duration) *FileAppendTransaction

func (*FileAppendTransaction) SetMaxBackoff added in v2.1.16

func (transaction *FileAppendTransaction) SetMaxBackoff(max time.Duration) *FileAppendTransaction

func (*FileAppendTransaction) SetMaxChunkSize added in v2.8.0

func (transaction *FileAppendTransaction) SetMaxChunkSize(size int) *FileAppendTransaction

func (*FileAppendTransaction) SetMaxRetry added in v2.1.2

func (transaction *FileAppendTransaction) SetMaxRetry(count int) *FileAppendTransaction

func (*FileAppendTransaction) SetMaxTransactionFee

func (transaction *FileAppendTransaction) SetMaxTransactionFee(fee Hbar) *FileAppendTransaction

SetMaxTransactionFee sets the max transaction fee for this FileAppendTransaction.

func (*FileAppendTransaction) SetMinBackoff added in v2.1.16

func (transaction *FileAppendTransaction) SetMinBackoff(min time.Duration) *FileAppendTransaction

func (*FileAppendTransaction) SetNodeAccountIDs

func (transaction *FileAppendTransaction) SetNodeAccountIDs(nodeAccountIDs []AccountID) *FileAppendTransaction

SetNodeAccountID sets the _Node AccountID for this FileAppendTransaction.

func (*FileAppendTransaction) SetRegenerateTransactionID added in v2.8.0

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)

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 query which can be used to construct and execute a File Get Contents Query.

func (*FileContentsQuery) Execute

func (query *FileContentsQuery) Execute(client *Client) ([]byte, error)

func (*FileContentsQuery) GetCost

func (query *FileContentsQuery) GetCost(client *Client) (Hbar, error)

func (*FileContentsQuery) GetFileID

func (query *FileContentsQuery) GetFileID() FileID

func (*FileContentsQuery) GetMaxBackoff added in v2.1.16

func (query *FileContentsQuery) GetMaxBackoff() time.Duration

func (*FileContentsQuery) GetMinBackoff added in v2.1.16

func (query *FileContentsQuery) GetMinBackoff() time.Duration

func (*FileContentsQuery) SetFileID

func (query *FileContentsQuery) SetFileID(fileID FileID) *FileContentsQuery

SetFileID sets the FileID of the file whose contents are requested.

func (*FileContentsQuery) SetGrpcDeadline added in v2.11.0

func (query *FileContentsQuery) SetGrpcDeadline(deadline *time.Duration) *FileContentsQuery

func (*FileContentsQuery) SetMaxBackoff added in v2.1.16

func (query *FileContentsQuery) SetMaxBackoff(max time.Duration) *FileContentsQuery

func (*FileContentsQuery) SetMaxQueryPayment

func (query *FileContentsQuery) SetMaxQueryPayment(maxPayment Hbar) *FileContentsQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*FileContentsQuery) SetMaxRetry added in v2.1.2

func (query *FileContentsQuery) SetMaxRetry(count int) *FileContentsQuery

func (*FileContentsQuery) SetMinBackoff added in v2.1.16

func (query *FileContentsQuery) SetMinBackoff(min time.Duration) *FileContentsQuery

func (*FileContentsQuery) SetNodeAccountIDs

func (query *FileContentsQuery) SetNodeAccountIDs(accountID []AccountID) *FileContentsQuery

func (*FileContentsQuery) SetPaymentTransactionID added in v2.11.0

func (query *FileContentsQuery) SetPaymentTransactionID(transactionID TransactionID) *FileContentsQuery

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 transaction which can be used to construct and execute a File Create Transaction.

func (*FileCreateTransaction) AddSignature added in v2.1.3

func (transaction *FileCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileCreateTransaction

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

func (*FileCreateTransaction) GetExpirationTime

func (transaction *FileCreateTransaction) GetExpirationTime() time.Time

func (*FileCreateTransaction) GetKeys

func (transaction *FileCreateTransaction) GetKeys() KeyList

func (*FileCreateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *FileCreateTransaction) GetMaxBackoff() time.Duration

func (*FileCreateTransaction) GetMaxTransactionFee

func (transaction *FileCreateTransaction) GetMaxTransactionFee() Hbar

func (*FileCreateTransaction) GetMemo added in v2.1.16

func (transaction *FileCreateTransaction) GetMemo() string

func (*FileCreateTransaction) GetMinBackoff added in v2.1.16

func (transaction *FileCreateTransaction) GetMinBackoff() time.Duration

func (*FileCreateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *FileCreateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*FileCreateTransaction) GetTransactionID

func (transaction *FileCreateTransaction) GetTransactionID() TransactionID

func (*FileCreateTransaction) GetTransactionMemo

func (transaction *FileCreateTransaction) GetTransactionMemo() string

func (*FileCreateTransaction) GetTransactionValidDuration

func (transaction *FileCreateTransaction) GetTransactionValidDuration() time.Duration

func (*FileCreateTransaction) IsFrozen

func (transaction *FileCreateTransaction) IsFrozen() bool

func (*FileCreateTransaction) Schedule added in v2.1.5

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 FileAppendTransaction 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 added in v2.11.0

func (transaction *FileCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *FileCreateTransaction

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) SetMaxBackoff added in v2.1.16

func (transaction *FileCreateTransaction) SetMaxBackoff(max time.Duration) *FileCreateTransaction

func (*FileCreateTransaction) SetMaxRetry added in v2.1.2

func (transaction *FileCreateTransaction) SetMaxRetry(count int) *FileCreateTransaction

func (*FileCreateTransaction) SetMaxTransactionFee

func (transaction *FileCreateTransaction) SetMaxTransactionFee(fee Hbar) *FileCreateTransaction

SetMaxTransactionFee sets the max transaction fee for this FileCreateTransaction.

func (*FileCreateTransaction) SetMemo added in v2.1.16

func (transaction *FileCreateTransaction) SetMemo(memo string) *FileCreateTransaction

func (*FileCreateTransaction) SetMinBackoff added in v2.1.16

func (transaction *FileCreateTransaction) SetMinBackoff(min time.Duration) *FileCreateTransaction

func (*FileCreateTransaction) SetNodeAccountIDs

func (transaction *FileCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileCreateTransaction

SetNodeAccountID sets the _Node AccountID for this FileCreateTransaction.

func (*FileCreateTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type FileDeleteTransaction

type FileDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewFileDeleteTransaction

func NewFileDeleteTransaction() *FileDeleteTransaction

func (*FileDeleteTransaction) AddSignature added in v2.1.3

func (transaction *FileDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileDeleteTransaction

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

func (*FileDeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *FileDeleteTransaction) GetMaxBackoff() time.Duration

func (*FileDeleteTransaction) GetMaxTransactionFee

func (transaction *FileDeleteTransaction) GetMaxTransactionFee() Hbar

func (*FileDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *FileDeleteTransaction) GetMinBackoff() time.Duration

func (*FileDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *FileDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*FileDeleteTransaction) GetTransactionID

func (transaction *FileDeleteTransaction) GetTransactionID() TransactionID

func (*FileDeleteTransaction) GetTransactionMemo

func (transaction *FileDeleteTransaction) GetTransactionMemo() string

func (*FileDeleteTransaction) GetTransactionValidDuration

func (transaction *FileDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*FileDeleteTransaction) IsFrozen

func (transaction *FileDeleteTransaction) IsFrozen() bool

func (*FileDeleteTransaction) Schedule added in v2.1.5

func (transaction *FileDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*FileDeleteTransaction) SetFileID

func (transaction *FileDeleteTransaction) SetFileID(fileID FileID) *FileDeleteTransaction

func (*FileDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *FileDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *FileDeleteTransaction

func (*FileDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *FileDeleteTransaction) SetMaxBackoff(max time.Duration) *FileDeleteTransaction

func (*FileDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *FileDeleteTransaction) SetMaxRetry(count int) *FileDeleteTransaction

func (*FileDeleteTransaction) SetMaxTransactionFee

func (transaction *FileDeleteTransaction) SetMaxTransactionFee(fee Hbar) *FileDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this FileDeleteTransaction.

func (*FileDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *FileDeleteTransaction) SetMinBackoff(min time.Duration) *FileDeleteTransaction

func (*FileDeleteTransaction) SetNodeAccountIDs

func (transaction *FileDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileDeleteTransaction

SetNodeAccountID sets the _Node AccountID for this FileDeleteTransaction.

func (*FileDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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)

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 added in v2.1.3

func FileIDFromBytes(data []byte) (FileID, error)

func FileIDFromSolidityAddress

func FileIDFromSolidityAddress(s string) (FileID, error)

func FileIDFromString

func FileIDFromString(data string) (FileID, error)

FileIDFromString returns a FileID parsed from the given string. A malformatted string will cause this to return an error instead.

func (FileID) String

func (id FileID) String() string

func (FileID) ToBytes added in v2.1.3

func (id FileID) ToBytes() []byte

func (FileID) ToSolidityAddress

func (id FileID) ToSolidityAddress() string

func (FileID) ToStringWithChecksum added in v2.1.13

func (id FileID) ToStringWithChecksum(client Client) (string, error)

func (*FileID) Validate added in v2.1.8

func (id *FileID) Validate(client *Client) error

Deprecated

func (*FileID) ValidateChecksum added in v2.4.0

func (id *FileID) ValidateChecksum(client *Client) error

type FileInfo

type FileInfo struct {
	FileID         FileID
	Size           int64
	ExpirationTime time.Time
	IsDeleted      bool
	Keys           KeyList
	FileMemo       string
	LedgerID       LedgerID
}

func FileInfoFromBytes added in v2.1.3

func FileInfoFromBytes(data []byte) (FileInfo, error)

func (FileInfo) ToBytes added in v2.1.3

func (fileInfo FileInfo) ToBytes() []byte

type FileInfoQuery

type FileInfoQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewFileInfoQuery

func NewFileInfoQuery() *FileInfoQuery

func (*FileInfoQuery) Execute

func (query *FileInfoQuery) Execute(client *Client) (FileInfo, error)

func (*FileInfoQuery) GetCost

func (query *FileInfoQuery) GetCost(client *Client) (Hbar, error)

func (*FileInfoQuery) GetFileID

func (query *FileInfoQuery) GetFileID() FileID

func (*FileInfoQuery) GetMaxBackoff added in v2.1.16

func (query *FileInfoQuery) GetMaxBackoff() time.Duration

func (*FileInfoQuery) GetMinBackoff added in v2.1.16

func (query *FileInfoQuery) GetMinBackoff() time.Duration

func (*FileInfoQuery) GetNodeAccountIDs added in v2.2.0

func (query *FileInfoQuery) GetNodeAccountIDs() []AccountID

func (*FileInfoQuery) SetFileID

func (query *FileInfoQuery) SetFileID(fileID FileID) *FileInfoQuery

func (*FileInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *FileInfoQuery) SetGrpcDeadline(deadline *time.Duration) *FileInfoQuery

func (*FileInfoQuery) SetMaxBackoff added in v2.1.16

func (query *FileInfoQuery) SetMaxBackoff(max time.Duration) *FileInfoQuery

func (*FileInfoQuery) SetMaxQueryPayment

func (query *FileInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *FileInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*FileInfoQuery) SetMaxRetry added in v2.1.2

func (query *FileInfoQuery) SetMaxRetry(count int) *FileInfoQuery

func (*FileInfoQuery) SetMinBackoff added in v2.1.16

func (query *FileInfoQuery) SetMinBackoff(min time.Duration) *FileInfoQuery

func (*FileInfoQuery) SetNodeAccountIDs added in v2.1.2

func (query *FileInfoQuery) SetNodeAccountIDs(accountID []AccountID) *FileInfoQuery

func (*FileInfoQuery) SetPaymentTransactionID added in v2.11.0

func (query *FileInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *FileInfoQuery

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
}

func NewFileUpdateTransaction

func NewFileUpdateTransaction() *FileUpdateTransaction

func (*FileUpdateTransaction) AddSignature added in v2.1.3

func (transaction *FileUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *FileUpdateTransaction

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 added in v2.1.5

func (transaction *FileUpdateTransaction) GeFileMemo() string

GeFileMemo Deprecated use GetFileMemo()

func (*FileUpdateTransaction) GetContents

func (transaction *FileUpdateTransaction) GetContents() []byte

func (*FileUpdateTransaction) GetExpirationTime

func (transaction *FileUpdateTransaction) GetExpirationTime() time.Time

func (*FileUpdateTransaction) GetFileID

func (transaction *FileUpdateTransaction) GetFileID() FileID

func (*FileUpdateTransaction) GetFileMemo added in v2.13.2

func (transaction *FileUpdateTransaction) GetFileMemo() string

func (*FileUpdateTransaction) GetKeys

func (transaction *FileUpdateTransaction) GetKeys() KeyList

func (*FileUpdateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *FileUpdateTransaction) GetMaxBackoff() time.Duration

func (*FileUpdateTransaction) GetMaxTransactionFee

func (transaction *FileUpdateTransaction) GetMaxTransactionFee() Hbar

func (*FileUpdateTransaction) GetMinBackoff added in v2.1.16

func (transaction *FileUpdateTransaction) GetMinBackoff() time.Duration

func (*FileUpdateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *FileUpdateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*FileUpdateTransaction) GetTransactionID

func (transaction *FileUpdateTransaction) GetTransactionID() TransactionID

func (*FileUpdateTransaction) GetTransactionMemo

func (transaction *FileUpdateTransaction) GetTransactionMemo() string

func (*FileUpdateTransaction) GetTransactionValidDuration

func (transaction *FileUpdateTransaction) GetTransactionValidDuration() time.Duration

func (*FileUpdateTransaction) IsFrozen

func (transaction *FileUpdateTransaction) IsFrozen() bool

func (*FileUpdateTransaction) Schedule added in v2.1.5

func (transaction *FileUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*FileUpdateTransaction) SetContents

func (transaction *FileUpdateTransaction) SetContents(contents []byte) *FileUpdateTransaction

func (*FileUpdateTransaction) SetExpirationTime

func (transaction *FileUpdateTransaction) SetExpirationTime(expiration time.Time) *FileUpdateTransaction

func (*FileUpdateTransaction) SetFileID

func (transaction *FileUpdateTransaction) SetFileID(fileID FileID) *FileUpdateTransaction

func (*FileUpdateTransaction) SetFileMemo added in v2.1.5

func (transaction *FileUpdateTransaction) SetFileMemo(memo string) *FileUpdateTransaction

func (*FileUpdateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *FileUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *FileUpdateTransaction

func (*FileUpdateTransaction) SetKeys

func (transaction *FileUpdateTransaction) SetKeys(keys ...Key) *FileUpdateTransaction

func (*FileUpdateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *FileUpdateTransaction) SetMaxBackoff(max time.Duration) *FileUpdateTransaction

func (*FileUpdateTransaction) SetMaxRetry added in v2.1.2

func (transaction *FileUpdateTransaction) SetMaxRetry(count int) *FileUpdateTransaction

func (*FileUpdateTransaction) SetMaxTransactionFee

func (transaction *FileUpdateTransaction) SetMaxTransactionFee(fee Hbar) *FileUpdateTransaction

SetMaxTransactionFee sets the max transaction fee for this FileUpdateTransaction.

func (*FileUpdateTransaction) SetMinBackoff added in v2.1.16

func (transaction *FileUpdateTransaction) SetMinBackoff(min time.Duration) *FileUpdateTransaction

func (*FileUpdateTransaction) SetNodeAccountIDs

func (transaction *FileUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *FileUpdateTransaction

SetNodeAccountID sets the _Node AccountID for this FileUpdateTransaction.

func (*FileUpdateTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type FreezeTransaction

type FreezeTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewFreezeTransaction

func NewFreezeTransaction() *FreezeTransaction

func (*FreezeTransaction) AddSignature added in v2.1.3

func (transaction *FreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *FreezeTransaction

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 added in v2.1.16

func (transaction *FreezeTransaction) GetFileHash() []byte

func (*FreezeTransaction) GetFileID added in v2.1.16

func (transaction *FreezeTransaction) GetFileID() *FileID

func (*FreezeTransaction) GetFreezeType added in v2.3.0

func (transaction *FreezeTransaction) GetFreezeType() FreezeType

func (*FreezeTransaction) GetMaxBackoff added in v2.1.16

func (transaction *FreezeTransaction) GetMaxBackoff() time.Duration

func (*FreezeTransaction) GetMaxTransactionFee

func (transaction *FreezeTransaction) GetMaxTransactionFee() Hbar

func (*FreezeTransaction) GetMinBackoff added in v2.1.16

func (transaction *FreezeTransaction) GetMinBackoff() time.Duration

func (*FreezeTransaction) GetRegenerateTransactionID added in v2.8.0

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

func (*FreezeTransaction) GetTransactionMemo

func (transaction *FreezeTransaction) GetTransactionMemo() string

func (*FreezeTransaction) GetTransactionValidDuration

func (transaction *FreezeTransaction) GetTransactionValidDuration() time.Duration

func (*FreezeTransaction) IsFrozen

func (transaction *FreezeTransaction) IsFrozen() bool

func (*FreezeTransaction) Schedule added in v2.1.5

func (transaction *FreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*FreezeTransaction) SetEndTime

func (transaction *FreezeTransaction) SetEndTime(endTime time.Time) *FreezeTransaction

Deprecated

func (*FreezeTransaction) SetFileHash added in v2.1.16

func (transaction *FreezeTransaction) SetFileHash(hash []byte) *FreezeTransaction

func (*FreezeTransaction) SetFileID added in v2.1.16

func (transaction *FreezeTransaction) SetFileID(id FileID) *FreezeTransaction

func (*FreezeTransaction) SetFreezeType added in v2.3.0

func (transaction *FreezeTransaction) SetFreezeType(freezeType FreezeType) *FreezeTransaction

func (*FreezeTransaction) SetMaxBackoff added in v2.1.16

func (transaction *FreezeTransaction) SetMaxBackoff(max time.Duration) *FreezeTransaction

func (*FreezeTransaction) SetMaxRetry added in v2.1.2

func (transaction *FreezeTransaction) SetMaxRetry(count int) *FreezeTransaction

func (*FreezeTransaction) SetMaxTransactionFee

func (transaction *FreezeTransaction) SetMaxTransactionFee(fee Hbar) *FreezeTransaction

SetMaxTransactionFee sets the max transaction fee for this FreezeTransaction.

func (*FreezeTransaction) SetMinBackoff added in v2.1.16

func (transaction *FreezeTransaction) SetMinBackoff(min time.Duration) *FreezeTransaction

func (*FreezeTransaction) SetNodeAccountIDs

func (transaction *FreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *FreezeTransaction

SetNodeAccountID sets the _Node AccountID for this FreezeTransaction.

func (*FreezeTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type FreezeType added in v2.3.0

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 added in v2.3.0

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 HbarFrom

func HbarFrom(bars float64, unit HbarUnit) Hbar

HbarFrom creates a representation of Hbar in tinybar on the unit provided

func HbarFromString added in v2.1.13

func HbarFromString(hbar string) (Hbar, error)

func HbarFromTinybar

func HbarFromTinybar(tinybar int64) Hbar

HbarFromTinybar creates a representation of Hbar in tinybars

func NewHbar

func NewHbar(hbar float64) Hbar

NewHbar constructs a new Hbar from a possibly fractional amount of hbar.

func TransactionGetMaxTransactionFee added in v2.2.0

func TransactionGetMaxTransactionFee(transaction interface{}) (Hbar, error)

func (Hbar) As

func (hbar Hbar) As(unit HbarUnit) float64

func (Hbar) AsTinybar

func (hbar Hbar) AsTinybar() int64

AsTinybar returns the equivalent tinybar amount.

func (Hbar) Negated added in v2.1.6

func (hbar Hbar) Negated() Hbar

func (Hbar) String

func (hbar Hbar) String() string

func (Hbar) ToString

func (hbar Hbar) ToString(unit HbarUnit) string

type HbarAllowance added in v2.9.0

type HbarAllowance struct {
	OwnerAccountID   *AccountID
	SpenderAccountID *AccountID
	Amount           int64
}

func NewHbarAllowance added in v2.9.0

func NewHbarAllowance(ownerAccountID AccountID, spenderAccountID AccountID, amount int64) HbarAllowance

func (*HbarAllowance) String added in v2.13.0

func (approval *HbarAllowance) String() string

type HbarUnit

type HbarUnit string

func (HbarUnit) String

func (unit HbarUnit) String() string

func (HbarUnit) Symbol

func (unit HbarUnit) Symbol() string

type ITransaction added in v2.1.5

type ITransaction interface {
	// contains filtered or unexported methods
}

type Key

type Key interface {
	String() string
	// contains filtered or unexported methods
}

type KeyList

type KeyList struct {
	// contains filtered or unexported fields
}

func KeyListWithThreshold

func KeyListWithThreshold(threshold uint) *KeyList

func NewKeyList

func NewKeyList() *KeyList

func (*KeyList) Add

func (kl *KeyList) Add(key Key) *KeyList

func (*KeyList) AddAll

func (kl *KeyList) AddAll(keys []Key) *KeyList

func (*KeyList) AddAllPublicKeys

func (kl *KeyList) AddAllPublicKeys(keys []PublicKey) *KeyList

func (*KeyList) String

func (kl *KeyList) String() string

type LedgerID added in v2.7.0

type LedgerID struct {
	// contains filtered or unexported fields
}

func LedgerIDFromBytes added in v2.7.0

func LedgerIDFromBytes(byt []byte) *LedgerID

func LedgerIDFromNetworkName added in v2.7.0

func LedgerIDFromNetworkName(network NetworkName) (*LedgerID, error)

func LedgerIDFromString added in v2.7.0

func LedgerIDFromString(id string) (*LedgerID, error)

func NewLedgerIDMainnet added in v2.7.0

func NewLedgerIDMainnet() *LedgerID

func NewLedgerIDPreviewnet added in v2.7.0

func NewLedgerIDPreviewnet() *LedgerID

func NewLedgerIDTestnet added in v2.7.0

func NewLedgerIDTestnet() *LedgerID

func (*LedgerID) IsMainnet added in v2.7.0

func (id *LedgerID) IsMainnet() bool

func (*LedgerID) IsPreviewnet added in v2.7.0

func (id *LedgerID) IsPreviewnet() bool

func (*LedgerID) IsTestnet added in v2.7.0

func (id *LedgerID) IsTestnet() bool

func (*LedgerID) String added in v2.7.0

func (id *LedgerID) String() string

func (*LedgerID) ToBytes added in v2.7.0

func (id *LedgerID) ToBytes() []byte

func (*LedgerID) ToNetworkName added in v2.7.0

func (id *LedgerID) ToNetworkName() (NetworkName, error)

type LiveHash

type LiveHash struct {
	AccountID AccountID
	Hash      []byte
	Keys      KeyList
	Duration  time.Time
}

func LiveHashFromBytes added in v2.1.3

func LiveHashFromBytes(data []byte) (LiveHash, error)

func (LiveHash) ToBytes added in v2.1.3

func (liveHash LiveHash) ToBytes() []byte

type LiveHashAddTransaction

type LiveHashAddTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewLiveHashAddTransaction

func NewLiveHashAddTransaction() *LiveHashAddTransaction

func (*LiveHashAddTransaction) AddSignature added in v2.1.3

func (transaction *LiveHashAddTransaction) AddSignature(publicKey PublicKey, signature []byte) *LiveHashAddTransaction

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

func (*LiveHashAddTransaction) GetDuration

func (transaction *LiveHashAddTransaction) GetDuration() time.Duration

func (*LiveHashAddTransaction) GetHash

func (transaction *LiveHashAddTransaction) GetHash() []byte

func (*LiveHashAddTransaction) GetKeys

func (transaction *LiveHashAddTransaction) GetKeys() KeyList

func (*LiveHashAddTransaction) GetMaxBackoff added in v2.1.16

func (transaction *LiveHashAddTransaction) GetMaxBackoff() time.Duration

func (*LiveHashAddTransaction) GetMaxTransactionFee

func (transaction *LiveHashAddTransaction) GetMaxTransactionFee() Hbar

func (*LiveHashAddTransaction) GetMinBackoff added in v2.1.16

func (transaction *LiveHashAddTransaction) GetMinBackoff() time.Duration

func (*LiveHashAddTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *LiveHashAddTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*LiveHashAddTransaction) GetTransactionID

func (transaction *LiveHashAddTransaction) GetTransactionID() TransactionID

func (*LiveHashAddTransaction) GetTransactionMemo

func (transaction *LiveHashAddTransaction) GetTransactionMemo() string

func (*LiveHashAddTransaction) GetTransactionValidDuration

func (transaction *LiveHashAddTransaction) GetTransactionValidDuration() time.Duration

func (*LiveHashAddTransaction) IsFrozen

func (transaction *LiveHashAddTransaction) IsFrozen() bool

func (*LiveHashAddTransaction) SetAccountID

func (transaction *LiveHashAddTransaction) SetAccountID(accountID AccountID) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetDuration

func (transaction *LiveHashAddTransaction) SetDuration(duration time.Duration) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *LiveHashAddTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetHash

func (transaction *LiveHashAddTransaction) SetHash(hash []byte) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetKeys

func (transaction *LiveHashAddTransaction) SetKeys(keys ...Key) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetMaxBackoff added in v2.1.16

func (transaction *LiveHashAddTransaction) SetMaxBackoff(max time.Duration) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetMaxRetry added in v2.1.2

func (transaction *LiveHashAddTransaction) SetMaxRetry(count int) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetMaxTransactionFee

func (transaction *LiveHashAddTransaction) SetMaxTransactionFee(fee Hbar) *LiveHashAddTransaction

SetMaxTransactionFee sets the max transaction fee for this LiveHashAddTransaction.

func (*LiveHashAddTransaction) SetMinBackoff added in v2.1.16

func (transaction *LiveHashAddTransaction) SetMinBackoff(min time.Duration) *LiveHashAddTransaction

func (*LiveHashAddTransaction) SetNodeAccountIDs

func (transaction *LiveHashAddTransaction) SetNodeAccountIDs(nodeID []AccountID) *LiveHashAddTransaction

SetNodeAccountID sets the _Node AccountID for this LiveHashAddTransaction.

func (*LiveHashAddTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type LiveHashDeleteTransaction

type LiveHashDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewLiveHashDeleteTransaction

func NewLiveHashDeleteTransaction() *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) AddSignature added in v2.1.3

func (transaction *LiveHashDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *LiveHashDeleteTransaction

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

func (*LiveHashDeleteTransaction) GetHash

func (transaction *LiveHashDeleteTransaction) GetHash() []byte

func (*LiveHashDeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *LiveHashDeleteTransaction) GetMaxBackoff() time.Duration

func (*LiveHashDeleteTransaction) GetMaxTransactionFee

func (transaction *LiveHashDeleteTransaction) GetMaxTransactionFee() Hbar

func (*LiveHashDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *LiveHashDeleteTransaction) GetMinBackoff() time.Duration

func (*LiveHashDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *LiveHashDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*LiveHashDeleteTransaction) GetTransactionID

func (transaction *LiveHashDeleteTransaction) GetTransactionID() TransactionID

func (*LiveHashDeleteTransaction) GetTransactionMemo

func (transaction *LiveHashDeleteTransaction) GetTransactionMemo() string

func (*LiveHashDeleteTransaction) GetTransactionValidDuration

func (transaction *LiveHashDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*LiveHashDeleteTransaction) IsFrozen

func (transaction *LiveHashDeleteTransaction) IsFrozen() bool

func (*LiveHashDeleteTransaction) SetAccountID

func (transaction *LiveHashDeleteTransaction) SetAccountID(accountID AccountID) *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *LiveHashDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) SetHash

func (transaction *LiveHashDeleteTransaction) SetHash(hash []byte) *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *LiveHashDeleteTransaction) SetMaxBackoff(max time.Duration) *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *LiveHashDeleteTransaction) SetMaxRetry(count int) *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) SetMaxTransactionFee

func (transaction *LiveHashDeleteTransaction) SetMaxTransactionFee(fee Hbar) *LiveHashDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this LiveHashDeleteTransaction.

func (*LiveHashDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *LiveHashDeleteTransaction) SetMinBackoff(min time.Duration) *LiveHashDeleteTransaction

func (*LiveHashDeleteTransaction) SetNodeAccountIDs

func (transaction *LiveHashDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *LiveHashDeleteTransaction

SetNodeAccountID sets the _Node AccountID for this LiveHashDeleteTransaction.

func (*LiveHashDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type LiveHashQuery

type LiveHashQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewLiveHashQuery

func NewLiveHashQuery() *LiveHashQuery

func (*LiveHashQuery) Execute

func (query *LiveHashQuery) Execute(client *Client) (LiveHash, error)

func (*LiveHashQuery) GetAccountID

func (query *LiveHashQuery) GetAccountID() AccountID

func (*LiveHashQuery) GetCost

func (query *LiveHashQuery) GetCost(client *Client) (Hbar, error)

func (*LiveHashQuery) GetGetHash

func (query *LiveHashQuery) GetGetHash() []byte

func (*LiveHashQuery) GetMaxBackoff added in v2.1.16

func (query *LiveHashQuery) GetMaxBackoff() time.Duration

func (*LiveHashQuery) GetMinBackoff added in v2.1.16

func (query *LiveHashQuery) GetMinBackoff() time.Duration

func (*LiveHashQuery) SetAccountID

func (query *LiveHashQuery) SetAccountID(accountID AccountID) *LiveHashQuery

func (*LiveHashQuery) SetGrpcDeadline added in v2.11.0

func (query *LiveHashQuery) SetGrpcDeadline(deadline *time.Duration) *LiveHashQuery

func (*LiveHashQuery) SetHash

func (query *LiveHashQuery) SetHash(hash []byte) *LiveHashQuery

func (*LiveHashQuery) SetMaxBackoff added in v2.1.16

func (query *LiveHashQuery) SetMaxBackoff(max time.Duration) *LiveHashQuery

func (*LiveHashQuery) SetMaxQueryPayment

func (query *LiveHashQuery) SetMaxQueryPayment(maxPayment Hbar) *LiveHashQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*LiveHashQuery) SetMinBackoff added in v2.1.16

func (query *LiveHashQuery) SetMinBackoff(min time.Duration) *LiveHashQuery

func (*LiveHashQuery) SetNodeAccountIDs

func (query *LiveHashQuery) SetNodeAccountIDs(accountID []AccountID) *LiveHashQuery

func (*LiveHashQuery) SetPaymentTransactionID added in v2.11.0

func (query *LiveHashQuery) SetPaymentTransactionID(transactionID TransactionID) *LiveHashQuery

func (*LiveHashQuery) SetQueryPayment

func (query *LiveHashQuery) SetQueryPayment(paymentAmount Hbar) *LiveHashQuery

SetQueryPayment sets the payment amount for this Query.

type Mnemonic

type Mnemonic struct {
	// contains filtered or unexported fields
}

func GenerateMnemonic12

func GenerateMnemonic12() (Mnemonic, error)

func GenerateMnemonic24

func GenerateMnemonic24() (Mnemonic, error)

GenerateMnemonic generates a random 24-word mnemonic

func MnemonicFromString

func MnemonicFromString(s string) (Mnemonic, error)

MnemonicFromString creates a mnemonic from a string of 24 words separated by spaces

Keys are lazily generated

func NewMnemonic

func NewMnemonic(words []string) (Mnemonic, error)

NewMnemonic Creates a mnemonic from a slice of 24 strings

Keys are lazily generated

func (Mnemonic) String

func (m Mnemonic) String() string

func (Mnemonic) ToLegacyPrivateKey

func (m Mnemonic) ToLegacyPrivateKey() (PrivateKey, error)

func (Mnemonic) ToPrivateKey

func (m Mnemonic) ToPrivateKey(passPhrase string) (PrivateKey, error)

func (Mnemonic) Words

func (m Mnemonic) Words() []string

type NetworkName added in v2.1.8

type NetworkName string
const (
	NetworkNameMainnet    NetworkName = "mainnet"
	NetworkNameTestnet    NetworkName = "testnet"
	NetworkNamePreviewnet NetworkName = "previewnet"
	NetworkNameOther      NetworkName = "other"
)

func NetworkNameFromString added in v2.7.0

func NetworkNameFromString(s string) NetworkName

Deprecated

func (NetworkName) String added in v2.4.0

func (networkName NetworkName) String() string

Deprecated

type NetworkVersionInfo

type NetworkVersionInfo struct {
	ProtobufVersion SemanticVersion
	ServicesVersion SemanticVersion
}

func NetworkVersionInfoFromBytes added in v2.1.13

func NetworkVersionInfoFromBytes(data []byte) (NetworkVersionInfo, error)

func (*NetworkVersionInfo) ToBytes added in v2.1.13

func (version *NetworkVersionInfo) ToBytes() []byte

type NetworkVersionInfoQuery

type NetworkVersionInfoQuery struct {
	Query
}

func NewNetworkVersionQuery

func NewNetworkVersionQuery() *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) Execute

func (query *NetworkVersionInfoQuery) Execute(client *Client) (NetworkVersionInfo, error)

func (*NetworkVersionInfoQuery) GetCost

func (query *NetworkVersionInfoQuery) GetCost(client *Client) (Hbar, error)

func (*NetworkVersionInfoQuery) GetMaxBackoff added in v2.1.16

func (query *NetworkVersionInfoQuery) GetMaxBackoff() time.Duration

func (*NetworkVersionInfoQuery) GetMinBackoff added in v2.1.16

func (query *NetworkVersionInfoQuery) GetMinBackoff() time.Duration

func (*NetworkVersionInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *NetworkVersionInfoQuery) SetGrpcDeadline(deadline *time.Duration) *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) SetMaxBackoff added in v2.1.16

func (query *NetworkVersionInfoQuery) SetMaxBackoff(max time.Duration) *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) SetMaxQueryPayment

func (query *NetworkVersionInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *NetworkVersionInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*NetworkVersionInfoQuery) SetMaxRetry added in v2.1.2

func (query *NetworkVersionInfoQuery) SetMaxRetry(count int) *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) SetMinBackoff added in v2.1.16

func (query *NetworkVersionInfoQuery) SetMinBackoff(min time.Duration) *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) SetNodeAccountIDs

func (query *NetworkVersionInfoQuery) SetNodeAccountIDs(accountID []AccountID) *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) SetPaymentTransactionID added in v2.11.0

func (query *NetworkVersionInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *NetworkVersionInfoQuery

func (*NetworkVersionInfoQuery) SetQueryPayment

func (query *NetworkVersionInfoQuery) SetQueryPayment(paymentAmount Hbar) *NetworkVersionInfoQuery

SetQueryPayment sets the payment amount for this Query.

type NftID added in v2.1.11

type NftID struct {
	TokenID      TokenID
	SerialNumber int64
}

func NftIDFromBytes added in v2.1.11

func NftIDFromBytes(data []byte) (NftID, error)

func NftIDFromString added in v2.1.11

func NftIDFromString(s string) (NftID, error)

func (NftID) String added in v2.1.11

func (id NftID) String() string

func (NftID) ToBytes added in v2.1.11

func (id NftID) ToBytes() []byte

func (NftID) ToStringWithChecksum added in v2.1.13

func (id NftID) ToStringWithChecksum(client Client) (string, error)

func (*NftID) Validate added in v2.1.11

func (id *NftID) Validate(client *Client) error

type NodeAddress added in v2.10.0

type NodeAddress struct {
	PublicKey   string
	AccountID   *AccountID
	NodeID      int64
	CertHash    []byte
	Addresses   []_Endpoint
	Description string
	Stake       int64
}

func (NodeAddress) String added in v2.10.0

func (nodeAdd NodeAddress) String() string

type NodeAddressBook added in v2.10.0

type NodeAddressBook struct {
	NodeAddresses []NodeAddress
}

func NodeAddressBookFromBytes added in v2.10.0

func NodeAddressBookFromBytes(data []byte) (NodeAddressBook, error)

func (NodeAddressBook) ToBytes added in v2.10.0

func (book NodeAddressBook) ToBytes() []byte

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

func GeneratePrivateKey

func GeneratePrivateKey() (PrivateKey, error)

Deprecated

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 added in v2.7.0

func PrivateKeyFromBytesDer(bytes []byte) (PrivateKey, error)

func PrivateKeyFromBytesECDSA added in v2.7.0

func PrivateKeyFromBytesECDSA(bytes []byte) (PrivateKey, error)

func PrivateKeyFromBytesEd25519 added in v2.7.0

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)

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 PrivateKeyFromString

func PrivateKeyFromString(s string) (PrivateKey, error)

The use of raw bytes for a Ed25519 private key is deprecated; use PrivateKeyFromStringEd25519() instead.

func PrivateKeyFromStringDer added in v2.7.0

func PrivateKeyFromStringDer(s string) (PrivateKey, error)

func PrivateKeyFromStringECSDA added in v2.7.0

func PrivateKeyFromStringECSDA(s string) (PrivateKey, error)

func PrivateKeyFromStringEd25519 added in v2.7.0

func PrivateKeyFromStringEd25519(s string) (PrivateKey, error)

func PrivateKeyGenerate deprecated added in v2.7.0

func PrivateKeyGenerate() (PrivateKey, error)

Deprecated: use `PrivateKeyGenerateEd25519()` instead

func PrivateKeyGenerateEcdsa added in v2.7.0

func PrivateKeyGenerateEcdsa() (PrivateKey, error)

func PrivateKeyGenerateEd25519 added in v2.7.0

func PrivateKeyGenerateEd25519() (PrivateKey, error)

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 added in v2.7.0

func (sk PrivateKey) BytesDer() []byte

func (PrivateKey) BytesRaw added in v2.7.0

func (sk PrivateKey) BytesRaw() []byte

func (PrivateKey) Derive

func (sk PrivateKey) Derive(index uint32) (PrivateKey, error)

func (PrivateKey) Keystore

func (sk PrivateKey) Keystore(passphrase string) ([]byte, error)

func (PrivateKey) LegacyDerive added in v2.1.4

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 added in v2.7.0

func (sk PrivateKey) StringDer() string

func (PrivateKey) StringRaw added in v2.7.0

func (sk PrivateKey) StringRaw() string

func (PrivateKey) SupportsDerivation

func (sk PrivateKey) SupportsDerivation() bool

func (PrivateKey) ToAccountID added in v2.7.0

func (sk PrivateKey) ToAccountID(shard uint64, realm uint64) *AccountID

func (PrivateKey) WriteKeystore

func (sk PrivateKey) WriteKeystore(destination io.Writer, passphrase string) error

type ProxyStaker added in v2.1.3

type ProxyStaker struct {
	AccountID AccountID
	Amount    Hbar
}

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

func PublicKeyFromBytes

func PublicKeyFromBytes(bytes []byte) (PublicKey, error)

Deprecated the use of raw bytes for a Ed25519 private key is deprecated; use PublicKeyFromBytesEd25519() instead.

func PublicKeyFromBytesDer added in v2.7.0

func PublicKeyFromBytesDer(bytes []byte) (PublicKey, error)

func PublicKeyFromBytesECDSA added in v2.7.0

func PublicKeyFromBytesECDSA(bytes []byte) (PublicKey, error)

func PublicKeyFromBytesEd25519 added in v2.7.0

func PublicKeyFromBytesEd25519(bytes []byte) (PublicKey, error)

func PublicKeyFromString

func PublicKeyFromString(s string) (PublicKey, error)

The use of raw bytes for a Ed25519 public key is deprecated; use PublicKeyFromStringEd25519/ECDSA() instead.

func PublicKeyFromStringECDSA added in v2.7.0

func PublicKeyFromStringECDSA(s string) (PublicKey, error)

func PublicKeyFromStringEd25519 added in v2.7.0

func PublicKeyFromStringEd25519(s string) (PublicKey, error)

func (PublicKey) Bytes

func (pk PublicKey) 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 (PublicKey) BytesDer added in v2.7.0

func (pk PublicKey) BytesDer() []byte

func (PublicKey) BytesRaw added in v2.7.0

func (pk PublicKey) BytesRaw() []byte

func (PublicKey) String

func (pk PublicKey) String() string

func (PublicKey) StringDer added in v2.7.0

func (pk PublicKey) StringDer() string

func (PublicKey) StringRaw added in v2.7.0

func (pk PublicKey) StringRaw() string

func (PublicKey) ToAccountID added in v2.7.0

func (pk PublicKey) ToAccountID(shard uint64, realm uint64) *AccountID

func (PublicKey) Verify added in v2.1.2

func (pk PublicKey) Verify(message []byte, signature []byte) bool

func (PublicKey) VerifyTransaction added in v2.1.2

func (pk PublicKey) VerifyTransaction(transaction Transaction) bool

type Query

type Query struct {
	// contains filtered or unexported fields
}

func (*Query) GetGrpcDeadline added in v2.11.0

func (this *Query) GetGrpcDeadline() *time.Duration

func (*Query) GetMaxQueryPayment added in v2.13.2

func (this *Query) GetMaxQueryPayment() Hbar

func (*Query) GetMaxRetryCount added in v2.1.2

func (this *Query) GetMaxRetryCount() int

func (*Query) GetNodeAccountIDs

func (this *Query) GetNodeAccountIDs() (nodeAccountIDs []AccountID)

func (*Query) GetPaymentTransactionID added in v2.11.0

func (this *Query) GetPaymentTransactionID() TransactionID

func (*Query) GetQueryPayment added in v2.13.2

func (this *Query) GetQueryPayment() Hbar

func (*Query) SetGrpcDeadline added in v2.11.0

func (this *Query) SetGrpcDeadline(deadline *time.Duration) *Query

func (*Query) SetMaxQueryPayment

func (this *Query) SetMaxQueryPayment(maxPayment Hbar) *Query

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*Query) SetMaxRetry added in v2.1.2

func (this *Query) SetMaxRetry(count int) *Query

func (*Query) SetNodeAccountIDs

func (this *Query) SetNodeAccountIDs(nodeAccountIDs []AccountID) *Query

func (*Query) SetPaymentTransactionID added in v2.11.0

func (this *Query) SetPaymentTransactionID(transactionID TransactionID) *Query

func (*Query) SetQueryPayment

func (this *Query) SetQueryPayment(paymentAmount Hbar) *Query

SetQueryPayment sets the payment amount for this Query.

type RequestType added in v2.1.11

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 added in v2.1.11

func (requestType RequestType) String() string

String() returns a string representation of the status

type ScheduleCreateTransaction added in v2.1.4

type ScheduleCreateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewScheduleCreateTransaction added in v2.1.4

func NewScheduleCreateTransaction() *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) Execute added in v2.1.4

func (transaction *ScheduleCreateTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*ScheduleCreateTransaction) Freeze added in v2.1.4

func (transaction *ScheduleCreateTransaction) Freeze() (*ScheduleCreateTransaction, error)

func (*ScheduleCreateTransaction) FreezeWith added in v2.1.4

func (transaction *ScheduleCreateTransaction) FreezeWith(client *Client) (*ScheduleCreateTransaction, error)

func (*ScheduleCreateTransaction) GetAdminKey added in v2.1.4

func (transaction *ScheduleCreateTransaction) GetAdminKey() *Key

func (*ScheduleCreateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ScheduleCreateTransaction) GetMaxBackoff() time.Duration

func (*ScheduleCreateTransaction) GetMaxTransactionFee added in v2.1.4

func (transaction *ScheduleCreateTransaction) GetMaxTransactionFee() Hbar

func (*ScheduleCreateTransaction) GetMinBackoff added in v2.1.16

func (transaction *ScheduleCreateTransaction) GetMinBackoff() time.Duration

func (*ScheduleCreateTransaction) GetPayerAccountID added in v2.1.4

func (transaction *ScheduleCreateTransaction) GetPayerAccountID() AccountID

func (*ScheduleCreateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ScheduleCreateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ScheduleCreateTransaction) GetScheduleMemo added in v2.1.5

func (transaction *ScheduleCreateTransaction) GetScheduleMemo() string

func (*ScheduleCreateTransaction) GetTransactionID added in v2.1.4

func (transaction *ScheduleCreateTransaction) GetTransactionID() TransactionID

func (*ScheduleCreateTransaction) GetTransactionMemo added in v2.1.4

func (transaction *ScheduleCreateTransaction) GetTransactionMemo() string

func (*ScheduleCreateTransaction) GetTransactionValidDuration added in v2.1.4

func (transaction *ScheduleCreateTransaction) GetTransactionValidDuration() time.Duration

func (*ScheduleCreateTransaction) IsFrozen added in v2.1.4

func (transaction *ScheduleCreateTransaction) IsFrozen() bool

func (*ScheduleCreateTransaction) SetAdminKey added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetAdminKey(key Key) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *ScheduleCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ScheduleCreateTransaction) SetMaxBackoff(max time.Duration) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetMaxRetry added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetMaxRetry(count int) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetMaxTransactionFee added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleCreateTransaction

SetMaxTransactionFee sets the max transaction fee for this ScheduleCreateTransaction.

func (*ScheduleCreateTransaction) SetMinBackoff added in v2.1.16

func (transaction *ScheduleCreateTransaction) SetMinBackoff(min time.Duration) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetNodeAccountIDs added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleCreateTransaction

SetNodeAccountID sets the _Node AccountID for this ScheduleCreateTransaction.

func (*ScheduleCreateTransaction) SetPayerAccountID added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetPayerAccountID(payerAccountID AccountID) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *ScheduleCreateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleCreateTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*ScheduleCreateTransaction) SetScheduleMemo added in v2.1.5

func (transaction *ScheduleCreateTransaction) SetScheduleMemo(memo string) *ScheduleCreateTransaction

func (*ScheduleCreateTransaction) SetScheduledTransaction added in v2.1.5

func (transaction *ScheduleCreateTransaction) SetScheduledTransaction(tx ITransaction) (*ScheduleCreateTransaction, error)

func (*ScheduleCreateTransaction) SetTransactionID added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetTransactionID(transactionID TransactionID) *ScheduleCreateTransaction

SetTransactionID sets the TransactionID for this ScheduleCreateTransaction.

func (*ScheduleCreateTransaction) SetTransactionMemo added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetTransactionMemo(memo string) *ScheduleCreateTransaction

SetTransactionMemo sets the memo for this ScheduleCreateTransaction.

func (*ScheduleCreateTransaction) SetTransactionValidDuration added in v2.1.4

func (transaction *ScheduleCreateTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleCreateTransaction

SetTransactionValidDuration sets the valid duration for this ScheduleCreateTransaction.

func (*ScheduleCreateTransaction) Sign added in v2.1.4

func (transaction *ScheduleCreateTransaction) Sign(
	privateKey PrivateKey,
) *ScheduleCreateTransaction

Sign uses the provided privateKey to sign the transaction.

func (*ScheduleCreateTransaction) SignWith added in v2.1.4

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 added in v2.1.4

func (transaction *ScheduleCreateTransaction) SignWithOperator(
	client *Client,
) (*ScheduleCreateTransaction, error)

type ScheduleDeleteTransaction added in v2.1.4

type ScheduleDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewScheduleDeleteTransaction added in v2.1.4

func NewScheduleDeleteTransaction() *ScheduleDeleteTransaction

func (*ScheduleDeleteTransaction) Execute added in v2.1.4

func (transaction *ScheduleDeleteTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*ScheduleDeleteTransaction) Freeze added in v2.1.4

func (transaction *ScheduleDeleteTransaction) Freeze() (*ScheduleDeleteTransaction, error)

func (*ScheduleDeleteTransaction) FreezeWith added in v2.1.4

func (transaction *ScheduleDeleteTransaction) FreezeWith(client *Client) (*ScheduleDeleteTransaction, error)

func (*ScheduleDeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ScheduleDeleteTransaction) GetMaxBackoff() time.Duration

func (*ScheduleDeleteTransaction) GetMaxTransactionFee added in v2.1.4

func (transaction *ScheduleDeleteTransaction) GetMaxTransactionFee() Hbar

func (*ScheduleDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *ScheduleDeleteTransaction) GetMinBackoff() time.Duration

func (*ScheduleDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ScheduleDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ScheduleDeleteTransaction) GetScheduleID added in v2.1.4

func (transaction *ScheduleDeleteTransaction) GetScheduleID() ScheduleID

func (*ScheduleDeleteTransaction) GetTransactionID added in v2.1.4

func (transaction *ScheduleDeleteTransaction) GetTransactionID() TransactionID

func (*ScheduleDeleteTransaction) GetTransactionMemo added in v2.1.4

func (transaction *ScheduleDeleteTransaction) GetTransactionMemo() string

func (*ScheduleDeleteTransaction) GetTransactionValidDuration added in v2.1.4

func (transaction *ScheduleDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*ScheduleDeleteTransaction) IsFrozen added in v2.1.4

func (transaction *ScheduleDeleteTransaction) IsFrozen() bool

func (*ScheduleDeleteTransaction) Schedule added in v2.1.5

func (transaction *ScheduleDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*ScheduleDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *ScheduleDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleDeleteTransaction

func (*ScheduleDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ScheduleDeleteTransaction) SetMaxBackoff(max time.Duration) *ScheduleDeleteTransaction

func (*ScheduleDeleteTransaction) SetMaxRetry added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetMaxRetry(count int) *ScheduleDeleteTransaction

func (*ScheduleDeleteTransaction) SetMaxTransactionFee added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this ScheduleDeleteTransaction.

func (*ScheduleDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *ScheduleDeleteTransaction) SetMinBackoff(min time.Duration) *ScheduleDeleteTransaction

func (*ScheduleDeleteTransaction) SetNodeAccountIDs added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleDeleteTransaction

SetNodeAccountID sets the _Node AccountID for this ScheduleDeleteTransaction.

func (*ScheduleDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *ScheduleDeleteTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleDeleteTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*ScheduleDeleteTransaction) SetScheduleID added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleDeleteTransaction

func (*ScheduleDeleteTransaction) SetTransactionID added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetTransactionID(transactionID TransactionID) *ScheduleDeleteTransaction

SetTransactionID sets the TransactionID for this ScheduleDeleteTransaction.

func (*ScheduleDeleteTransaction) SetTransactionMemo added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetTransactionMemo(memo string) *ScheduleDeleteTransaction

SetTransactionMemo sets the memo for this ScheduleDeleteTransaction.

func (*ScheduleDeleteTransaction) SetTransactionValidDuration added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleDeleteTransaction

SetTransactionValidDuration sets the valid duration for this ScheduleDeleteTransaction.

func (*ScheduleDeleteTransaction) Sign added in v2.1.4

func (transaction *ScheduleDeleteTransaction) Sign(
	privateKey PrivateKey,
) *ScheduleDeleteTransaction

Sign uses the provided privateKey to sign the transaction.

func (*ScheduleDeleteTransaction) SignWith added in v2.1.4

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 added in v2.1.4

func (transaction *ScheduleDeleteTransaction) SignWithOperator(
	client *Client,
) (*ScheduleDeleteTransaction, error)

type ScheduleID added in v2.1.4

type ScheduleID struct {
	Shard    uint64
	Realm    uint64
	Schedule uint64
	// contains filtered or unexported fields
}

ScheduleID is the ID for a Hedera account

func ScheduleIDFromString added in v2.1.4

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 added in v2.1.4

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 added in v2.1.13

func (id ScheduleID) ToStringWithChecksum(client Client) (string, error)

func (*ScheduleID) UnmarshalJSON added in v2.1.4

func (id *ScheduleID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding.JSON interface.

func (*ScheduleID) Validate added in v2.1.8

func (id *ScheduleID) Validate(client *Client) error

Deprecated

func (*ScheduleID) ValidateChecksum added in v2.4.0

func (id *ScheduleID) ValidateChecksum(client *Client) error

type ScheduleInfo added in v2.1.4

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
	// contains filtered or unexported fields
}

func (*ScheduleInfo) GetScheduledTransaction added in v2.1.5

func (scheduleInfo *ScheduleInfo) GetScheduledTransaction() (ITransaction, error)

type ScheduleInfoQuery added in v2.1.4

type ScheduleInfoQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewScheduleInfoQuery added in v2.1.4

func NewScheduleInfoQuery() *ScheduleInfoQuery

func (*ScheduleInfoQuery) Execute added in v2.1.4

func (query *ScheduleInfoQuery) Execute(client *Client) (ScheduleInfo, error)

func (*ScheduleInfoQuery) GetCost added in v2.1.4

func (query *ScheduleInfoQuery) GetCost(client *Client) (Hbar, error)

func (*ScheduleInfoQuery) GetMaxBackoff added in v2.1.16

func (query *ScheduleInfoQuery) GetMaxBackoff() time.Duration

func (*ScheduleInfoQuery) GetMinBackoff added in v2.1.16

func (query *ScheduleInfoQuery) GetMinBackoff() time.Duration

func (*ScheduleInfoQuery) GetNodeAccountIDs added in v2.2.0

func (query *ScheduleInfoQuery) GetNodeAccountIDs() []AccountID

func (*ScheduleInfoQuery) GetScheduleID added in v2.1.4

func (query *ScheduleInfoQuery) GetScheduleID() ScheduleID

func (*ScheduleInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *ScheduleInfoQuery) SetGrpcDeadline(deadline *time.Duration) *ScheduleInfoQuery

func (*ScheduleInfoQuery) SetMaxBackoff added in v2.1.16

func (query *ScheduleInfoQuery) SetMaxBackoff(max time.Duration) *ScheduleInfoQuery

func (*ScheduleInfoQuery) SetMaxQueryPayment added in v2.1.4

func (query *ScheduleInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *ScheduleInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*ScheduleInfoQuery) SetMaxRetry added in v2.1.4

func (query *ScheduleInfoQuery) SetMaxRetry(count int) *ScheduleInfoQuery

func (*ScheduleInfoQuery) SetMinBackoff added in v2.1.16

func (query *ScheduleInfoQuery) SetMinBackoff(min time.Duration) *ScheduleInfoQuery

func (*ScheduleInfoQuery) SetNodeAccountIDs added in v2.1.4

func (query *ScheduleInfoQuery) SetNodeAccountIDs(accountID []AccountID) *ScheduleInfoQuery

func (*ScheduleInfoQuery) SetPaymentTransactionID added in v2.11.0

func (query *ScheduleInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *ScheduleInfoQuery

func (*ScheduleInfoQuery) SetQueryPayment added in v2.1.4

func (query *ScheduleInfoQuery) SetQueryPayment(paymentAmount Hbar) *ScheduleInfoQuery

SetQueryPayment sets the payment amount for this Query.

func (*ScheduleInfoQuery) SetScheduleID added in v2.1.4

func (query *ScheduleInfoQuery) SetScheduleID(scheduleID ScheduleID) *ScheduleInfoQuery

type ScheduleSignTransaction added in v2.1.4

type ScheduleSignTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewScheduleSignTransaction added in v2.1.4

func NewScheduleSignTransaction() *ScheduleSignTransaction

func (*ScheduleSignTransaction) Execute added in v2.1.4

func (transaction *ScheduleSignTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*ScheduleSignTransaction) Freeze added in v2.1.4

func (transaction *ScheduleSignTransaction) Freeze() (*ScheduleSignTransaction, error)

func (*ScheduleSignTransaction) FreezeWith added in v2.1.4

func (transaction *ScheduleSignTransaction) FreezeWith(client *Client) (*ScheduleSignTransaction, error)

func (*ScheduleSignTransaction) GetMaxBackoff added in v2.1.16

func (transaction *ScheduleSignTransaction) GetMaxBackoff() time.Duration

func (*ScheduleSignTransaction) GetMaxTransactionFee added in v2.1.4

func (transaction *ScheduleSignTransaction) GetMaxTransactionFee() Hbar

func (*ScheduleSignTransaction) GetMinBackoff added in v2.1.16

func (transaction *ScheduleSignTransaction) GetMinBackoff() time.Duration

func (*ScheduleSignTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *ScheduleSignTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*ScheduleSignTransaction) GetScheduleID added in v2.1.4

func (transaction *ScheduleSignTransaction) GetScheduleID() ScheduleID

func (*ScheduleSignTransaction) GetTransactionID added in v2.1.4

func (transaction *ScheduleSignTransaction) GetTransactionID() TransactionID

func (*ScheduleSignTransaction) GetTransactionMemo added in v2.1.4

func (transaction *ScheduleSignTransaction) GetTransactionMemo() string

func (*ScheduleSignTransaction) GetTransactionValidDuration added in v2.1.4

func (transaction *ScheduleSignTransaction) GetTransactionValidDuration() time.Duration

func (*ScheduleSignTransaction) IsFrozen added in v2.1.4

func (transaction *ScheduleSignTransaction) IsFrozen() bool

func (*ScheduleSignTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *ScheduleSignTransaction) SetGrpcDeadline(deadline *time.Duration) *ScheduleSignTransaction

func (*ScheduleSignTransaction) SetMaxBackoff added in v2.1.16

func (transaction *ScheduleSignTransaction) SetMaxBackoff(max time.Duration) *ScheduleSignTransaction

func (*ScheduleSignTransaction) SetMaxRetry added in v2.1.4

func (transaction *ScheduleSignTransaction) SetMaxRetry(count int) *ScheduleSignTransaction

func (*ScheduleSignTransaction) SetMaxTransactionFee added in v2.1.4

func (transaction *ScheduleSignTransaction) SetMaxTransactionFee(fee Hbar) *ScheduleSignTransaction

SetMaxTransactionFee sets the max transaction fee for this ScheduleSignTransaction.

func (*ScheduleSignTransaction) SetMinBackoff added in v2.1.16

func (transaction *ScheduleSignTransaction) SetMinBackoff(min time.Duration) *ScheduleSignTransaction

func (*ScheduleSignTransaction) SetNodeAccountIDs added in v2.1.4

func (transaction *ScheduleSignTransaction) SetNodeAccountIDs(nodeID []AccountID) *ScheduleSignTransaction

SetNodeAccountID sets the _Node AccountID for this ScheduleSignTransaction.

func (*ScheduleSignTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *ScheduleSignTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *ScheduleSignTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*ScheduleSignTransaction) SetScheduleID added in v2.1.4

func (transaction *ScheduleSignTransaction) SetScheduleID(scheduleID ScheduleID) *ScheduleSignTransaction

func (*ScheduleSignTransaction) SetTransactionID added in v2.1.4

func (transaction *ScheduleSignTransaction) SetTransactionID(transactionID TransactionID) *ScheduleSignTransaction

SetTransactionID sets the TransactionID for this ScheduleSignTransaction.

func (*ScheduleSignTransaction) SetTransactionMemo added in v2.1.4

func (transaction *ScheduleSignTransaction) SetTransactionMemo(memo string) *ScheduleSignTransaction

SetTransactionMemo sets the memo for this ScheduleSignTransaction.

func (*ScheduleSignTransaction) SetTransactionValidDuration added in v2.1.4

func (transaction *ScheduleSignTransaction) SetTransactionValidDuration(duration time.Duration) *ScheduleSignTransaction

SetTransactionValidDuration sets the valid duration for this ScheduleSignTransaction.

func (*ScheduleSignTransaction) Sign added in v2.1.4

func (transaction *ScheduleSignTransaction) Sign(
	privateKey PrivateKey,
) *ScheduleSignTransaction

Sign uses the provided privateKey to sign the transaction.

func (*ScheduleSignTransaction) SignWith added in v2.1.4

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 added in v2.1.4

func (transaction *ScheduleSignTransaction) SignWithOperator(
	client *Client,
) (*ScheduleSignTransaction, error)

type SemanticVersion

type SemanticVersion struct {
	Major uint32
	Minor uint32
	Patch uint32
	Pre   string
	Build string
}

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
	StatusPayerAccountUnauthorized                                 Status = 89
	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
	StatusUnauthorized                                             Status = 157
	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
)

func (Status) String

func (status Status) String() string

String() returns a string representation of the status

type StorageChange added in v2.9.0

type StorageChange struct {
	Slot         *big.Int
	ValueRead    *big.Int
	ValueWritten *big.Int
}

func StorageChangeFromBytes added in v2.9.0

func StorageChangeFromBytes(data []byte) (StorageChange, error)

func (*StorageChange) ToBytes added in v2.9.0

func (storageChange *StorageChange) ToBytes() []byte

type SubscriptionHandle

type SubscriptionHandle struct {
	// contains filtered or unexported fields
}

func (SubscriptionHandle) Unsubscribe

func (handle SubscriptionHandle) Unsubscribe()

type SystemDeleteTransaction

type SystemDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewSystemDeleteTransaction

func NewSystemDeleteTransaction() *SystemDeleteTransaction

func (*SystemDeleteTransaction) AddSignature added in v2.1.3

func (transaction *SystemDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *SystemDeleteTransaction

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 added in v2.2.0

func (transaction *SystemDeleteTransaction) GetContractID() ContractID

func (*SystemDeleteTransaction) GetExpirationTime

func (transaction *SystemDeleteTransaction) GetExpirationTime() int64

func (*SystemDeleteTransaction) GetFileID

func (transaction *SystemDeleteTransaction) GetFileID() FileID

func (*SystemDeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *SystemDeleteTransaction) GetMaxBackoff() time.Duration

func (*SystemDeleteTransaction) GetMaxTransactionFee

func (transaction *SystemDeleteTransaction) GetMaxTransactionFee() Hbar

func (*SystemDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *SystemDeleteTransaction) GetMinBackoff() time.Duration

func (*SystemDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *SystemDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*SystemDeleteTransaction) GetTransactionID

func (transaction *SystemDeleteTransaction) GetTransactionID() TransactionID

func (*SystemDeleteTransaction) GetTransactionMemo

func (transaction *SystemDeleteTransaction) GetTransactionMemo() string

func (*SystemDeleteTransaction) GetTransactionValidDuration

func (transaction *SystemDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*SystemDeleteTransaction) IsFrozen

func (transaction *SystemDeleteTransaction) IsFrozen() bool

func (*SystemDeleteTransaction) Schedule added in v2.1.5

func (transaction *SystemDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*SystemDeleteTransaction) SetContractID

func (transaction *SystemDeleteTransaction) SetContractID(contractID ContractID) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetExpirationTime

func (transaction *SystemDeleteTransaction) SetExpirationTime(expiration time.Time) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetFileID

func (transaction *SystemDeleteTransaction) SetFileID(fileID FileID) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *SystemDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *SystemDeleteTransaction) SetMaxBackoff(max time.Duration) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *SystemDeleteTransaction) SetMaxRetry(count int) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetMaxTransactionFee

func (transaction *SystemDeleteTransaction) SetMaxTransactionFee(fee Hbar) *SystemDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this SystemDeleteTransaction.

func (*SystemDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *SystemDeleteTransaction) SetMinBackoff(min time.Duration) *SystemDeleteTransaction

func (*SystemDeleteTransaction) SetNodeAccountIDs

func (transaction *SystemDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *SystemDeleteTransaction

SetNodeAccountID sets the _Node AccountID for this SystemDeleteTransaction.

func (*SystemDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type SystemUndeleteTransaction

type SystemUndeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewSystemUndeleteTransaction

func NewSystemUndeleteTransaction() *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) AddSignature added in v2.1.3

func (transaction *SystemUndeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *SystemUndeleteTransaction

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 added in v2.2.0

func (transaction *SystemUndeleteTransaction) GetContractID() ContractID

func (*SystemUndeleteTransaction) GetFileID

func (transaction *SystemUndeleteTransaction) GetFileID() FileID

func (*SystemUndeleteTransaction) GetMaxBackoff added in v2.1.16

func (transaction *SystemUndeleteTransaction) GetMaxBackoff() time.Duration

func (*SystemUndeleteTransaction) GetMaxTransactionFee

func (transaction *SystemUndeleteTransaction) GetMaxTransactionFee() Hbar

func (*SystemUndeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *SystemUndeleteTransaction) GetMinBackoff() time.Duration

func (*SystemUndeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *SystemUndeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*SystemUndeleteTransaction) GetTransactionID

func (transaction *SystemUndeleteTransaction) GetTransactionID() TransactionID

func (*SystemUndeleteTransaction) GetTransactionMemo

func (transaction *SystemUndeleteTransaction) GetTransactionMemo() string

func (*SystemUndeleteTransaction) GetTransactionValidDuration

func (transaction *SystemUndeleteTransaction) GetTransactionValidDuration() time.Duration

func (*SystemUndeleteTransaction) IsFrozen

func (transaction *SystemUndeleteTransaction) IsFrozen() bool

func (*SystemUndeleteTransaction) Schedule added in v2.1.5

func (transaction *SystemUndeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*SystemUndeleteTransaction) SetContractID

func (transaction *SystemUndeleteTransaction) SetContractID(contractID ContractID) *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) SetFileID

func (transaction *SystemUndeleteTransaction) SetFileID(fileID FileID) *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *SystemUndeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *SystemUndeleteTransaction) SetMaxBackoff(max time.Duration) *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *SystemUndeleteTransaction) SetMaxRetry(count int) *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) SetMaxTransactionFee

func (transaction *SystemUndeleteTransaction) SetMaxTransactionFee(fee Hbar) *SystemUndeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this SystemUndeleteTransaction.

func (*SystemUndeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *SystemUndeleteTransaction) SetMinBackoff(min time.Duration) *SystemUndeleteTransaction

func (*SystemUndeleteTransaction) SetNodeAccountIDs

func (transaction *SystemUndeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *SystemUndeleteTransaction

SetNodeAccountID sets the _Node AccountID for this SystemUndeleteTransaction.

func (*SystemUndeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type TokenAllowance added in v2.9.0

type TokenAllowance struct {
	TokenID          *TokenID
	SpenderAccountID *AccountID
	OwnerAccountID   *AccountID
	Amount           int64
}

func NewTokenAllowance added in v2.9.0

func NewTokenAllowance(tokenID TokenID, owner AccountID, spender AccountID, amount int64) TokenAllowance

func (*TokenAllowance) String added in v2.13.0

func (approval *TokenAllowance) String() string

type TokenAssociateTransaction

type TokenAssociateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenAssociateTransaction) AddSignature added in v2.1.3

func (transaction *TokenAssociateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenAssociateTransaction

func (*TokenAssociateTransaction) AddTokenID

func (transaction *TokenAssociateTransaction) AddTokenID(id TokenID) *TokenAssociateTransaction

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

func (*TokenAssociateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenAssociateTransaction) GetMaxBackoff() time.Duration

func (*TokenAssociateTransaction) GetMaxTransactionFee

func (transaction *TokenAssociateTransaction) GetMaxTransactionFee() Hbar

func (*TokenAssociateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenAssociateTransaction) GetMinBackoff() time.Duration

func (*TokenAssociateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenAssociateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenAssociateTransaction) GetTokenIDs

func (transaction *TokenAssociateTransaction) GetTokenIDs() []TokenID

func (*TokenAssociateTransaction) GetTransactionID

func (transaction *TokenAssociateTransaction) GetTransactionID() TransactionID

func (*TokenAssociateTransaction) GetTransactionMemo

func (transaction *TokenAssociateTransaction) GetTransactionMemo() string

func (*TokenAssociateTransaction) GetTransactionValidDuration

func (transaction *TokenAssociateTransaction) GetTransactionValidDuration() time.Duration

func (*TokenAssociateTransaction) IsFrozen

func (transaction *TokenAssociateTransaction) IsFrozen() bool

func (*TokenAssociateTransaction) Schedule added in v2.1.5

func (transaction *TokenAssociateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenAssociateTransaction) SetAccountID

func (transaction *TokenAssociateTransaction) SetAccountID(accountID AccountID) *TokenAssociateTransaction

The account to be associated with the provided tokens

func (*TokenAssociateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenAssociateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenAssociateTransaction

func (*TokenAssociateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenAssociateTransaction) SetMaxBackoff(max time.Duration) *TokenAssociateTransaction

func (*TokenAssociateTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenAssociateTransaction) SetMaxRetry(count int) *TokenAssociateTransaction

func (*TokenAssociateTransaction) SetMaxTransactionFee

func (transaction *TokenAssociateTransaction) SetMaxTransactionFee(fee Hbar) *TokenAssociateTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenAssociateTransaction.

func (*TokenAssociateTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenAssociateTransaction) SetMinBackoff(min time.Duration) *TokenAssociateTransaction

func (*TokenAssociateTransaction) SetNodeAccountIDs

func (transaction *TokenAssociateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenAssociateTransaction

SetNodeTokenID sets the _Node TokenID for this TokenAssociateTransaction.

func (*TokenAssociateTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenAssociation added in v2.2.0

type TokenAssociation struct {
	TokenID   *TokenID
	AccountID *AccountID
}

func TokenAssociationFromBytes added in v2.2.0

func TokenAssociationFromBytes(data []byte) (TokenAssociation, error)

func (*TokenAssociation) ToBytes added in v2.2.0

func (association *TokenAssociation) ToBytes() []byte

type TokenBalanceMap added in v2.1.10

type TokenBalanceMap struct {
	// contains filtered or unexported fields
}

func (*TokenBalanceMap) Get added in v2.1.10

func (tokenBalances *TokenBalanceMap) Get(tokenID TokenID) uint64

type TokenBurnTransaction

type TokenBurnTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenBurnTransaction) AddSignature added in v2.1.3

func (transaction *TokenBurnTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenBurnTransaction

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 added in v2.1.6

func (transaction *TokenBurnTransaction) GetAmount() uint64

func (*TokenBurnTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenBurnTransaction) GetMaxBackoff() time.Duration

func (*TokenBurnTransaction) GetMaxTransactionFee

func (transaction *TokenBurnTransaction) GetMaxTransactionFee() Hbar

func (*TokenBurnTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenBurnTransaction) GetMinBackoff() time.Duration

func (*TokenBurnTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenBurnTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenBurnTransaction) GetSerialNumbers added in v2.1.11

func (transaction *TokenBurnTransaction) GetSerialNumbers() []int64

func (*TokenBurnTransaction) GetTokenID

func (transaction *TokenBurnTransaction) GetTokenID() TokenID

func (*TokenBurnTransaction) GetTransactionID

func (transaction *TokenBurnTransaction) GetTransactionID() TransactionID

func (*TokenBurnTransaction) GetTransactionMemo

func (transaction *TokenBurnTransaction) GetTransactionMemo() string

func (*TokenBurnTransaction) GetTransactionValidDuration

func (transaction *TokenBurnTransaction) GetTransactionValidDuration() time.Duration

func (*TokenBurnTransaction) IsFrozen

func (transaction *TokenBurnTransaction) IsFrozen() bool

func (*TokenBurnTransaction) Schedule added in v2.1.5

func (transaction *TokenBurnTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenBurnTransaction) SetAmount

func (transaction *TokenBurnTransaction) SetAmount(amount uint64) *TokenBurnTransaction

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 added in v2.11.0

func (transaction *TokenBurnTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenBurnTransaction

func (*TokenBurnTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenBurnTransaction) SetMaxBackoff(max time.Duration) *TokenBurnTransaction

func (*TokenBurnTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenBurnTransaction) SetMaxRetry(count int) *TokenBurnTransaction

func (*TokenBurnTransaction) SetMaxTransactionFee

func (transaction *TokenBurnTransaction) SetMaxTransactionFee(fee Hbar) *TokenBurnTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenBurnTransaction.

func (*TokenBurnTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenBurnTransaction) SetMinBackoff(min time.Duration) *TokenBurnTransaction

func (*TokenBurnTransaction) SetNodeAccountIDs

func (transaction *TokenBurnTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenBurnTransaction

SetNodeTokenID sets the _Node TokenID for this TokenBurnTransaction.

func (*TokenBurnTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *TokenBurnTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenBurnTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*TokenBurnTransaction) SetSerialNumber added in v2.1.11

func (transaction *TokenBurnTransaction) SetSerialNumber(serial int64) *TokenBurnTransaction

func (*TokenBurnTransaction) SetSerialNumbers added in v2.1.11

func (transaction *TokenBurnTransaction) SetSerialNumbers(serial []int64) *TokenBurnTransaction

func (*TokenBurnTransaction) SetTokenID

func (transaction *TokenBurnTransaction) SetTokenID(tokenID TokenID) *TokenBurnTransaction

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)

type TokenCreateTransaction

type TokenCreateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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 supply that is going to be put in circulation is going to be the initial supply provided. The maximum supply a token can have is 2^63-1.

Example: Token A has initial supply set to 10_000 and decimals set to 2. The tokens that will be put into circulation are going be 100. Token B has initial supply set to 10_012_345_678 and decimals set to 8. The number of tokens that will be put into circulation are going to be 100.12345678

Creating immutable token: Token can be created as immutable if the adminKey is omitted. In this case, the name, symbol, treasury, management keys, expiry and renew properties cannot be updated. If a token is created as immutable, anyone is able to extend the expiry time by paying the fee.

func NewTokenCreateTransaction

func NewTokenCreateTransaction() *TokenCreateTransaction

func (*TokenCreateTransaction) AddSignature added in v2.1.3

func (transaction *TokenCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenCreateTransaction

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

func (*TokenCreateTransaction) GetAutoRenewAccount

func (transaction *TokenCreateTransaction) GetAutoRenewAccount() AccountID

func (*TokenCreateTransaction) GetAutoRenewPeriod

func (transaction *TokenCreateTransaction) GetAutoRenewPeriod() time.Duration

func (*TokenCreateTransaction) GetCustomFees added in v2.1.11

func (transaction *TokenCreateTransaction) GetCustomFees() []Fee

func (*TokenCreateTransaction) GetDecimals

func (transaction *TokenCreateTransaction) GetDecimals() uint

func (*TokenCreateTransaction) GetExpirationTime

func (transaction *TokenCreateTransaction) GetExpirationTime() time.Time

func (*TokenCreateTransaction) GetFeeScheduleKey added in v2.1.11

func (transaction *TokenCreateTransaction) GetFeeScheduleKey() Key

func (*TokenCreateTransaction) GetFreezeDefault

func (transaction *TokenCreateTransaction) GetFreezeDefault() bool

func (*TokenCreateTransaction) GetFreezeKey

func (transaction *TokenCreateTransaction) GetFreezeKey() Key

func (*TokenCreateTransaction) GetInitialSupply

func (transaction *TokenCreateTransaction) GetInitialSupply() uint64

func (*TokenCreateTransaction) GetKycKey

func (transaction *TokenCreateTransaction) GetKycKey() Key

func (*TokenCreateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenCreateTransaction) GetMaxBackoff() time.Duration

func (*TokenCreateTransaction) GetMaxSupply added in v2.1.11

func (transaction *TokenCreateTransaction) GetMaxSupply() int64

func (*TokenCreateTransaction) GetMaxTransactionFee

func (transaction *TokenCreateTransaction) GetMaxTransactionFee() Hbar

func (*TokenCreateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenCreateTransaction) GetMinBackoff() time.Duration

func (*TokenCreateTransaction) GetPauseKey added in v2.3.0

func (transaction *TokenCreateTransaction) GetPauseKey() Key

func (*TokenCreateTransaction) GetRegenerateTransactionID added in v2.8.0

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 added in v2.1.11

func (transaction *TokenCreateTransaction) GetSupplyType() TokenSupplyType

func (*TokenCreateTransaction) GetTokenMemo added in v2.1.6

func (transaction *TokenCreateTransaction) GetTokenMemo() string

func (*TokenCreateTransaction) GetTokenName

func (transaction *TokenCreateTransaction) GetTokenName() string

func (*TokenCreateTransaction) GetTokenSymbol

func (transaction *TokenCreateTransaction) GetTokenSymbol() string

func (*TokenCreateTransaction) GetTokenType added in v2.1.11

func (transaction *TokenCreateTransaction) GetTokenType() TokenType

func (*TokenCreateTransaction) GetTransactionID

func (transaction *TokenCreateTransaction) GetTransactionID() TransactionID

func (*TokenCreateTransaction) GetTransactionMemo

func (transaction *TokenCreateTransaction) GetTransactionMemo() string

func (*TokenCreateTransaction) GetTransactionValidDuration

func (transaction *TokenCreateTransaction) GetTransactionValidDuration() time.Duration

func (*TokenCreateTransaction) GetTreasuryAccountID

func (transaction *TokenCreateTransaction) GetTreasuryAccountID() AccountID

func (*TokenCreateTransaction) GetWipeKey

func (transaction *TokenCreateTransaction) GetWipeKey() Key

func (*TokenCreateTransaction) IsFrozen

func (transaction *TokenCreateTransaction) IsFrozen() bool

func (*TokenCreateTransaction) Schedule added in v2.1.5

func (transaction *TokenCreateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenCreateTransaction) SetAdminKey

func (transaction *TokenCreateTransaction) SetAdminKey(publicKey Key) *TokenCreateTransaction

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 added in v2.1.11

func (transaction *TokenCreateTransaction) SetCustomFees(customFee []Fee) *TokenCreateTransaction

func (*TokenCreateTransaction) SetDecimals

func (transaction *TokenCreateTransaction) SetDecimals(decimals uint) *TokenCreateTransaction

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 added in v2.1.11

func (transaction *TokenCreateTransaction) SetFeeScheduleKey(key Key) *TokenCreateTransaction

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

The key which can sign to freeze or unfreeze an account for token transactions. If empty, freezing is not possible

func (*TokenCreateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenCreateTransaction

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

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) SetMaxBackoff added in v2.1.16

func (transaction *TokenCreateTransaction) SetMaxBackoff(max time.Duration) *TokenCreateTransaction

func (*TokenCreateTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenCreateTransaction) SetMaxRetry(count int) *TokenCreateTransaction

func (*TokenCreateTransaction) SetMaxSupply added in v2.1.11

func (transaction *TokenCreateTransaction) SetMaxSupply(maxSupply int64) *TokenCreateTransaction

func (*TokenCreateTransaction) SetMaxTransactionFee

func (transaction *TokenCreateTransaction) SetMaxTransactionFee(fee Hbar) *TokenCreateTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenCreateTransaction.

func (*TokenCreateTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenCreateTransaction) SetMinBackoff(min time.Duration) *TokenCreateTransaction

func (*TokenCreateTransaction) SetNodeAccountIDs

func (transaction *TokenCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenCreateTransaction

SetNodeTokenID sets the _Node TokenID for this TokenCreateTransaction.

func (*TokenCreateTransaction) SetPauseKey added in v2.3.0

func (transaction *TokenCreateTransaction) SetPauseKey(key Key) *TokenCreateTransaction

func (*TokenCreateTransaction) SetRegenerateTransactionID added in v2.8.0

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 added in v2.1.11

func (transaction *TokenCreateTransaction) SetSupplyType(tokenSupply TokenSupplyType) *TokenCreateTransaction

func (*TokenCreateTransaction) SetTokenMemo added in v2.1.5

func (transaction *TokenCreateTransaction) SetTokenMemo(memo string) *TokenCreateTransaction

The publicly visible token memo. It is max 100 bytes.

func (*TokenCreateTransaction) SetTokenName

func (transaction *TokenCreateTransaction) SetTokenName(name string) *TokenCreateTransaction

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

The publicly visible token symbol. It is UTF-8 capitalized alphabetical string identifying the token

func (*TokenCreateTransaction) SetTokenType added in v2.1.11

func (transaction *TokenCreateTransaction) SetTokenType(t TokenType) *TokenCreateTransaction

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

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

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)

type TokenDecimalMap added in v2.1.10

type TokenDecimalMap struct {
	// contains filtered or unexported fields
}

func (*TokenDecimalMap) Get added in v2.1.10

func (tokenDecimals *TokenDecimalMap) Get(tokenID TokenID) uint64

type TokenDeleteTransaction

type TokenDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

Deletes an already created Token. If no value is given for a field, that field is left unchanged. For an immutable tokens (that is, a token created without an adminKey), only the expiry may be deleted. Setting any other field in that case will cause the transaction status to resolve to TOKEN_IS_IMMUTABlE.

func NewTokenDeleteTransaction

func NewTokenDeleteTransaction() *TokenDeleteTransaction

func (*TokenDeleteTransaction) AddSignature added in v2.1.3

func (transaction *TokenDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenDeleteTransaction

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 added in v2.1.16

func (transaction *TokenDeleteTransaction) GetMaxBackoff() time.Duration

func (*TokenDeleteTransaction) GetMaxTransactionFee

func (transaction *TokenDeleteTransaction) GetMaxTransactionFee() Hbar

func (*TokenDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenDeleteTransaction) GetMinBackoff() time.Duration

func (*TokenDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenDeleteTransaction) GetTokenID

func (transaction *TokenDeleteTransaction) GetTokenID() TokenID

func (*TokenDeleteTransaction) GetTransactionID

func (transaction *TokenDeleteTransaction) GetTransactionID() TransactionID

func (*TokenDeleteTransaction) GetTransactionMemo

func (transaction *TokenDeleteTransaction) GetTransactionMemo() string

func (*TokenDeleteTransaction) GetTransactionValidDuration

func (transaction *TokenDeleteTransaction) GetTransactionValidDuration() time.Duration

func (*TokenDeleteTransaction) IsFrozen

func (transaction *TokenDeleteTransaction) IsFrozen() bool

func (*TokenDeleteTransaction) Schedule added in v2.1.5

func (transaction *TokenDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenDeleteTransaction

func (*TokenDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenDeleteTransaction) SetMaxBackoff(max time.Duration) *TokenDeleteTransaction

func (*TokenDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenDeleteTransaction) SetMaxRetry(count int) *TokenDeleteTransaction

func (*TokenDeleteTransaction) SetMaxTransactionFee

func (transaction *TokenDeleteTransaction) SetMaxTransactionFee(fee Hbar) *TokenDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenDeleteTransaction.

func (*TokenDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenDeleteTransaction) SetMinBackoff(min time.Duration) *TokenDeleteTransaction

func (*TokenDeleteTransaction) SetNodeAccountIDs

func (transaction *TokenDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenDeleteTransaction

SetNodeTokenID sets the _Node TokenID for this TokenDeleteTransaction.

func (*TokenDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenDissociateTransaction

type TokenDissociateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewTokenDissociateTransaction

func NewTokenDissociateTransaction() *TokenDissociateTransaction

func (*TokenDissociateTransaction) AddSignature added in v2.1.3

func (transaction *TokenDissociateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenDissociateTransaction

func (*TokenDissociateTransaction) AddTokenID

func (transaction *TokenDissociateTransaction) AddTokenID(id TokenID) *TokenDissociateTransaction

func (*TokenDissociateTransaction) Execute

func (transaction *TokenDissociateTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*TokenDissociateTransaction) Freeze

func (*TokenDissociateTransaction) FreezeWith

func (transaction *TokenDissociateTransaction) FreezeWith(client *Client) (*TokenDissociateTransaction, error)

func (*TokenDissociateTransaction) GetAccountID

func (transaction *TokenDissociateTransaction) GetAccountID() AccountID

func (*TokenDissociateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenDissociateTransaction) GetMaxBackoff() time.Duration

func (*TokenDissociateTransaction) GetMaxTransactionFee

func (transaction *TokenDissociateTransaction) GetMaxTransactionFee() Hbar

func (*TokenDissociateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenDissociateTransaction) GetMinBackoff() time.Duration

func (*TokenDissociateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenDissociateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenDissociateTransaction) GetTokenIDs

func (transaction *TokenDissociateTransaction) GetTokenIDs() []TokenID

func (*TokenDissociateTransaction) GetTransactionID

func (transaction *TokenDissociateTransaction) GetTransactionID() TransactionID

func (*TokenDissociateTransaction) GetTransactionMemo

func (transaction *TokenDissociateTransaction) GetTransactionMemo() string

func (*TokenDissociateTransaction) GetTransactionValidDuration

func (transaction *TokenDissociateTransaction) GetTransactionValidDuration() time.Duration

func (*TokenDissociateTransaction) IsFrozen

func (transaction *TokenDissociateTransaction) IsFrozen() bool

func (*TokenDissociateTransaction) Schedule added in v2.1.5

func (transaction *TokenDissociateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenDissociateTransaction) SetAccountID

func (transaction *TokenDissociateTransaction) SetAccountID(accountID AccountID) *TokenDissociateTransaction

The account to be dissociated with the provided tokens

func (*TokenDissociateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenDissociateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenDissociateTransaction

func (*TokenDissociateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenDissociateTransaction) SetMaxBackoff(max time.Duration) *TokenDissociateTransaction

func (*TokenDissociateTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenDissociateTransaction) SetMaxRetry(count int) *TokenDissociateTransaction

func (*TokenDissociateTransaction) SetMaxTransactionFee

func (transaction *TokenDissociateTransaction) SetMaxTransactionFee(fee Hbar) *TokenDissociateTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenDissociateTransaction.

func (*TokenDissociateTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenDissociateTransaction) SetMinBackoff(min time.Duration) *TokenDissociateTransaction

func (*TokenDissociateTransaction) SetNodeAccountIDs

func (transaction *TokenDissociateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenDissociateTransaction

SetNodeTokenID sets the _Node TokenID for this TokenDissociateTransaction.

func (*TokenDissociateTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenFeeScheduleUpdateTransaction added in v2.1.11

type TokenFeeScheduleUpdateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewTokenFeeScheduleUpdateTransaction added in v2.1.11

func NewTokenFeeScheduleUpdateTransaction() *TokenFeeScheduleUpdateTransaction

func (*TokenFeeScheduleUpdateTransaction) AddSignature added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenFeeScheduleUpdateTransaction

func (*TokenFeeScheduleUpdateTransaction) Execute added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*TokenFeeScheduleUpdateTransaction) Freeze added in v2.1.11

func (*TokenFeeScheduleUpdateTransaction) FreezeWith added in v2.1.11

func (*TokenFeeScheduleUpdateTransaction) GetCustomFees added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) GetCustomFees() []Fee

func (*TokenFeeScheduleUpdateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenFeeScheduleUpdateTransaction) GetMaxBackoff() time.Duration

func (*TokenFeeScheduleUpdateTransaction) GetMaxTransactionFee added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) GetMaxTransactionFee() Hbar

func (*TokenFeeScheduleUpdateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenFeeScheduleUpdateTransaction) GetMinBackoff() time.Duration

func (*TokenFeeScheduleUpdateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenFeeScheduleUpdateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenFeeScheduleUpdateTransaction) GetTokenID added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) GetTokenID() TokenID

func (*TokenFeeScheduleUpdateTransaction) GetTransactionID added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionID() TransactionID

func (*TokenFeeScheduleUpdateTransaction) GetTransactionMemo added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionMemo() string

func (*TokenFeeScheduleUpdateTransaction) GetTransactionValidDuration added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) GetTransactionValidDuration() time.Duration

func (*TokenFeeScheduleUpdateTransaction) IsFrozen added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) IsFrozen() bool

func (*TokenFeeScheduleUpdateTransaction) SetCustomFees added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SetCustomFees(fees []Fee) *TokenFeeScheduleUpdateTransaction

func (*TokenFeeScheduleUpdateTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenFeeScheduleUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenFeeScheduleUpdateTransaction

func (*TokenFeeScheduleUpdateTransaction) SetMaxBackoff added in v2.1.16

func (*TokenFeeScheduleUpdateTransaction) SetMaxRetry added in v2.1.11

func (*TokenFeeScheduleUpdateTransaction) SetMaxTransactionFee added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TokenFeeScheduleUpdateTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenFeeScheduleUpdateTransaction.

func (*TokenFeeScheduleUpdateTransaction) SetMinBackoff added in v2.1.16

func (*TokenFeeScheduleUpdateTransaction) SetNodeAccountIDs added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenFeeScheduleUpdateTransaction

SetNodeTokenID sets the _Node TokenID for this TokenFeeScheduleUpdateTransaction.

func (*TokenFeeScheduleUpdateTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *TokenFeeScheduleUpdateTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenFeeScheduleUpdateTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*TokenFeeScheduleUpdateTransaction) SetTokenID added in v2.1.11

The account to be associated with the provided tokens

func (*TokenFeeScheduleUpdateTransaction) SetTransactionID added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionID(transactionID TransactionID) *TokenFeeScheduleUpdateTransaction

SetTransactionID sets the TransactionID for this TokenFeeScheduleUpdateTransaction.

func (*TokenFeeScheduleUpdateTransaction) SetTransactionMemo added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionMemo(memo string) *TokenFeeScheduleUpdateTransaction

SetTransactionMemo sets the memo for this TokenFeeScheduleUpdateTransaction.

func (*TokenFeeScheduleUpdateTransaction) SetTransactionValidDuration added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SetTransactionValidDuration(duration time.Duration) *TokenFeeScheduleUpdateTransaction

SetTransactionValidDuration sets the valid duration for this TokenFeeScheduleUpdateTransaction.

func (*TokenFeeScheduleUpdateTransaction) Sign added in v2.1.11

Sign uses the provided privateKey to sign the transaction.

func (*TokenFeeScheduleUpdateTransaction) SignWith added in v2.1.11

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 added in v2.1.11

func (transaction *TokenFeeScheduleUpdateTransaction) SignWithOperator(
	client *Client,
) (*TokenFeeScheduleUpdateTransaction, error)

type TokenFreezeTransaction

type TokenFreezeTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenFreezeTransaction) AddSignature added in v2.1.3

func (transaction *TokenFreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenFreezeTransaction

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

func (*TokenFreezeTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenFreezeTransaction) GetMaxBackoff() time.Duration

func (*TokenFreezeTransaction) GetMaxTransactionFee

func (transaction *TokenFreezeTransaction) GetMaxTransactionFee() Hbar

func (*TokenFreezeTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenFreezeTransaction) GetMinBackoff() time.Duration

func (*TokenFreezeTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenFreezeTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenFreezeTransaction) GetTokenID

func (transaction *TokenFreezeTransaction) GetTokenID() TokenID

func (*TokenFreezeTransaction) GetTransactionID

func (transaction *TokenFreezeTransaction) GetTransactionID() TransactionID

func (*TokenFreezeTransaction) GetTransactionMemo

func (transaction *TokenFreezeTransaction) GetTransactionMemo() string

func (*TokenFreezeTransaction) GetTransactionValidDuration

func (transaction *TokenFreezeTransaction) GetTransactionValidDuration() time.Duration

func (*TokenFreezeTransaction) IsFrozen

func (transaction *TokenFreezeTransaction) IsFrozen() bool

func (*TokenFreezeTransaction) Schedule added in v2.1.5

func (transaction *TokenFreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenFreezeTransaction) SetAccountID

func (transaction *TokenFreezeTransaction) SetAccountID(accountID AccountID) *TokenFreezeTransaction

The account to be frozen

func (*TokenFreezeTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenFreezeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenFreezeTransaction

func (*TokenFreezeTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenFreezeTransaction) SetMaxBackoff(max time.Duration) *TokenFreezeTransaction

func (*TokenFreezeTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenFreezeTransaction) SetMaxRetry(count int) *TokenFreezeTransaction

func (*TokenFreezeTransaction) SetMaxTransactionFee

func (transaction *TokenFreezeTransaction) SetMaxTransactionFee(fee Hbar) *TokenFreezeTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenFreezeTransaction.

func (*TokenFreezeTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenFreezeTransaction) SetMinBackoff(min time.Duration) *TokenFreezeTransaction

func (*TokenFreezeTransaction) SetNodeAccountIDs

func (transaction *TokenFreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenFreezeTransaction

SetNodeTokenID sets the _Node TokenID for this TokenFreezeTransaction.

func (*TokenFreezeTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenGrantKycTransaction

type TokenGrantKycTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenGrantKycTransaction) AddSignature added in v2.1.3

func (transaction *TokenGrantKycTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenGrantKycTransaction

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

func (*TokenGrantKycTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenGrantKycTransaction) GetMaxBackoff() time.Duration

func (*TokenGrantKycTransaction) GetMaxTransactionFee

func (transaction *TokenGrantKycTransaction) GetMaxTransactionFee() Hbar

func (*TokenGrantKycTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenGrantKycTransaction) GetMinBackoff() time.Duration

func (*TokenGrantKycTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenGrantKycTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenGrantKycTransaction) GetTokenID

func (transaction *TokenGrantKycTransaction) GetTokenID() TokenID

func (*TokenGrantKycTransaction) GetTransactionID

func (transaction *TokenGrantKycTransaction) GetTransactionID() TransactionID

func (*TokenGrantKycTransaction) GetTransactionMemo

func (transaction *TokenGrantKycTransaction) GetTransactionMemo() string

func (*TokenGrantKycTransaction) GetTransactionValidDuration

func (transaction *TokenGrantKycTransaction) GetTransactionValidDuration() time.Duration

func (*TokenGrantKycTransaction) IsFrozen

func (transaction *TokenGrantKycTransaction) IsFrozen() bool

func (*TokenGrantKycTransaction) Schedule added in v2.1.5

func (transaction *TokenGrantKycTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenGrantKycTransaction) SetAccountID

func (transaction *TokenGrantKycTransaction) SetAccountID(accountID AccountID) *TokenGrantKycTransaction

The account to be KYCed

func (*TokenGrantKycTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenGrantKycTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenGrantKycTransaction

func (*TokenGrantKycTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenGrantKycTransaction) SetMaxBackoff(max time.Duration) *TokenGrantKycTransaction

func (*TokenGrantKycTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenGrantKycTransaction) SetMaxRetry(count int) *TokenGrantKycTransaction

func (*TokenGrantKycTransaction) SetMaxTransactionFee

func (transaction *TokenGrantKycTransaction) SetMaxTransactionFee(fee Hbar) *TokenGrantKycTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenGrantKycTransaction.

func (*TokenGrantKycTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenGrantKycTransaction) SetMinBackoff(min time.Duration) *TokenGrantKycTransaction

func (*TokenGrantKycTransaction) SetNodeAccountIDs

func (transaction *TokenGrantKycTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenGrantKycTransaction

SetNodeTokenID sets the _Node TokenID for this TokenGrantKycTransaction.

func (*TokenGrantKycTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenID

type TokenID struct {
	Shard uint64
	Realm uint64
	Token uint64
	// contains filtered or unexported fields
}

func TokenIDFromBytes added in v2.1.3

func TokenIDFromBytes(data []byte) (TokenID, error)

func TokenIDFromSolidityAddress added in v2.7.0

func TokenIDFromSolidityAddress(s string) (TokenID, error)

TokenIDFromSolidityAddress constructs a TokenID from a string representation of a _Solidity address

func TokenIDFromString added in v2.1.4

func TokenIDFromString(data string) (TokenID, error)

TokenIDFromString constructs an TokenID from a string formatted as `Shard.Realm.TokenID` (for example "0.0.3")

func (TokenID) Compare added in v2.6.0

func (id TokenID) Compare(given TokenID) int

func (*TokenID) Nft added in v2.1.11

func (id *TokenID) Nft(serial int64) NftID

func (TokenID) String

func (id TokenID) String() string

func (TokenID) ToBytes added in v2.1.3

func (id TokenID) ToBytes() []byte

func (TokenID) ToSolidityAddress added in v2.7.0

func (id TokenID) ToSolidityAddress() string

ToSolidityAddress returns the string representation of the TokenID as a _Solidity address.

func (TokenID) ToStringWithChecksum added in v2.1.13

func (id TokenID) ToStringWithChecksum(client Client) (string, error)

func (*TokenID) Validate added in v2.1.8

func (id *TokenID) Validate(client *Client) error

Deprecated

func (*TokenID) ValidateChecksum added in v2.4.0

func (id *TokenID) ValidateChecksum(client *Client) error

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
}

func TokenInfoFromBytes added in v2.1.3

func TokenInfoFromBytes(data []byte) (TokenInfo, error)

func (*TokenInfo) FreezeStatusToProtobuf

func (tokenInfo *TokenInfo) FreezeStatusToProtobuf() *services.TokenFreezeStatus

func (*TokenInfo) KycStatusToProtobuf

func (tokenInfo *TokenInfo) KycStatusToProtobuf() *services.TokenKycStatus

func (*TokenInfo) PauseStatusToProtobuf added in v2.3.0

func (tokenInfo *TokenInfo) PauseStatusToProtobuf() *services.TokenPauseStatus

func (TokenInfo) ToBytes added in v2.1.3

func (tokenInfo TokenInfo) ToBytes() []byte

type TokenInfoQuery

type TokenInfoQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewTokenInfoQuery

func NewTokenInfoQuery() *TokenInfoQuery

NewTopicInfoQuery creates a TopicInfoQuery query which can be used to construct and execute a

Get Topic Info Query.

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)

func (*TokenInfoQuery) GetMaxBackoff added in v2.1.16

func (query *TokenInfoQuery) GetMaxBackoff() time.Duration

func (*TokenInfoQuery) GetMinBackoff added in v2.1.16

func (query *TokenInfoQuery) GetMinBackoff() time.Duration

func (*TokenInfoQuery) GetTokenID

func (query *TokenInfoQuery) GetTokenID() TokenID

func (*TokenInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *TokenInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenInfoQuery

func (*TokenInfoQuery) SetMaxBackoff added in v2.1.16

func (query *TokenInfoQuery) SetMaxBackoff(max time.Duration) *TokenInfoQuery

func (*TokenInfoQuery) SetMaxQueryPayment

func (query *TokenInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*TokenInfoQuery) SetMaxRetry added in v2.1.2

func (query *TokenInfoQuery) SetMaxRetry(count int) *TokenInfoQuery

func (*TokenInfoQuery) SetMinBackoff added in v2.1.16

func (query *TokenInfoQuery) SetMinBackoff(min time.Duration) *TokenInfoQuery

func (*TokenInfoQuery) SetNodeAccountIDs

func (query *TokenInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenInfoQuery

func (*TokenInfoQuery) SetPaymentTransactionID added in v2.11.0

func (query *TokenInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenInfoQuery

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

SetTopicID sets the topic to retrieve info about (the parameters and running state of).

type TokenMintTransaction

type TokenMintTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenMintTransaction) AddSignature added in v2.1.3

func (transaction *TokenMintTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenMintTransaction

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

func (*TokenMintTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenMintTransaction) GetMaxBackoff() time.Duration

func (*TokenMintTransaction) GetMaxTransactionFee

func (transaction *TokenMintTransaction) GetMaxTransactionFee() Hbar

func (*TokenMintTransaction) GetMetadatas added in v2.1.11

func (transaction *TokenMintTransaction) GetMetadatas() [][]byte

func (*TokenMintTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenMintTransaction) GetMinBackoff() time.Duration

func (*TokenMintTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenMintTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenMintTransaction) GetTokenID

func (transaction *TokenMintTransaction) GetTokenID() TokenID

func (*TokenMintTransaction) GetTransactionID

func (transaction *TokenMintTransaction) GetTransactionID() TransactionID

func (*TokenMintTransaction) GetTransactionMemo

func (transaction *TokenMintTransaction) GetTransactionMemo() string

func (*TokenMintTransaction) GetTransactionValidDuration

func (transaction *TokenMintTransaction) GetTransactionValidDuration() time.Duration

func (*TokenMintTransaction) IsFrozen

func (transaction *TokenMintTransaction) IsFrozen() bool

func (*TokenMintTransaction) Schedule added in v2.1.5

func (transaction *TokenMintTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenMintTransaction) SetAmount

func (transaction *TokenMintTransaction) SetAmount(amount uint64) *TokenMintTransaction

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 added in v2.11.0

func (transaction *TokenMintTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenMintTransaction

func (*TokenMintTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenMintTransaction) SetMaxBackoff(max time.Duration) *TokenMintTransaction

func (*TokenMintTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenMintTransaction) SetMaxRetry(count int) *TokenMintTransaction

func (*TokenMintTransaction) SetMaxTransactionFee

func (transaction *TokenMintTransaction) SetMaxTransactionFee(fee Hbar) *TokenMintTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenMintTransaction.

func (*TokenMintTransaction) SetMetadata added in v2.1.11

func (transaction *TokenMintTransaction) SetMetadata(meta []byte) *TokenMintTransaction

func (*TokenMintTransaction) SetMetadatas added in v2.1.11

func (transaction *TokenMintTransaction) SetMetadatas(meta [][]byte) *TokenMintTransaction

func (*TokenMintTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenMintTransaction) SetMinBackoff(min time.Duration) *TokenMintTransaction

func (*TokenMintTransaction) SetNodeAccountIDs

func (transaction *TokenMintTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenMintTransaction

SetNodeTokenID sets the _Node TokenID for this TokenMintTransaction.

func (*TokenMintTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenNftAllowance added in v2.9.0

type TokenNftAllowance struct {
	TokenID           *TokenID
	SpenderAccountID  *AccountID
	OwnerAccountID    *AccountID
	SerialNumbers     []int64
	AllSerials        bool
	DelegatingSpender *AccountID
}

func NewTokenNftAllowance added in v2.9.0

func NewTokenNftAllowance(tokenID TokenID, owner AccountID, spender AccountID, serialNumbers []int64, approvedForAll bool, delegatingSpender AccountID) TokenNftAllowance

func (*TokenNftAllowance) String added in v2.13.0

func (approval *TokenNftAllowance) String() string

type TokenNftInfo added in v2.1.11

type TokenNftInfo struct {
	NftID        NftID
	AccountID    AccountID
	CreationTime time.Time
	Metadata     []byte
	LedgerID     LedgerID
	SpenderID    AccountID
}

func TokenNftInfoFromBytes added in v2.1.11

func TokenNftInfoFromBytes(data []byte) (TokenNftInfo, error)

func (*TokenNftInfo) ToBytes added in v2.1.11

func (tokenNftInfo *TokenNftInfo) ToBytes() []byte

type TokenNftInfoQuery added in v2.1.11

type TokenNftInfoQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewTokenNftInfoQuery added in v2.1.11

func NewTokenNftInfoQuery() *TokenNftInfoQuery

func (*TokenNftInfoQuery) ByAccountID added in v2.1.11

func (query *TokenNftInfoQuery) ByAccountID(id AccountID) *TokenNftInfoQuery

Deprecated

func (*TokenNftInfoQuery) ByNftID added in v2.1.11

func (query *TokenNftInfoQuery) ByNftID(id NftID) *TokenNftInfoQuery

Deprecated

func (*TokenNftInfoQuery) ByTokenID added in v2.1.11

func (query *TokenNftInfoQuery) ByTokenID(id TokenID) *TokenNftInfoQuery

Deprecated

func (*TokenNftInfoQuery) Execute added in v2.1.11

func (query *TokenNftInfoQuery) Execute(client *Client) ([]TokenNftInfo, error)

func (*TokenNftInfoQuery) GetAccountID added in v2.1.11

func (query *TokenNftInfoQuery) GetAccountID() AccountID

Deprecated

func (*TokenNftInfoQuery) GetCost added in v2.1.11

func (query *TokenNftInfoQuery) GetCost(client *Client) (Hbar, error)

func (*TokenNftInfoQuery) GetEnd added in v2.1.11

func (query *TokenNftInfoQuery) GetEnd() int64

Deprecated

func (*TokenNftInfoQuery) GetMaxBackoff added in v2.1.16

func (query *TokenNftInfoQuery) GetMaxBackoff() time.Duration

func (*TokenNftInfoQuery) GetMinBackoff added in v2.1.16

func (query *TokenNftInfoQuery) GetMinBackoff() time.Duration

func (*TokenNftInfoQuery) GetNftID added in v2.1.11

func (query *TokenNftInfoQuery) GetNftID() NftID

func (*TokenNftInfoQuery) GetStart added in v2.1.11

func (query *TokenNftInfoQuery) GetStart() int64

Deprecated

func (*TokenNftInfoQuery) GetTokenID added in v2.1.11

func (query *TokenNftInfoQuery) GetTokenID() TokenID

Deprecated

func (*TokenNftInfoQuery) SetAccountID added in v2.1.11

func (query *TokenNftInfoQuery) SetAccountID(id AccountID) *TokenNftInfoQuery

Deprecated

func (*TokenNftInfoQuery) SetEnd added in v2.1.11

func (query *TokenNftInfoQuery) SetEnd(end int64) *TokenNftInfoQuery

Deprecated

func (*TokenNftInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *TokenNftInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetMaxBackoff added in v2.1.16

func (query *TokenNftInfoQuery) SetMaxBackoff(max time.Duration) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetMaxQueryPayment added in v2.1.11

func (query *TokenNftInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TokenNftInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*TokenNftInfoQuery) SetMaxRetry added in v2.1.11

func (query *TokenNftInfoQuery) SetMaxRetry(count int) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetMinBackoff added in v2.1.16

func (query *TokenNftInfoQuery) SetMinBackoff(min time.Duration) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetNftID added in v2.1.11

func (query *TokenNftInfoQuery) SetNftID(nftID NftID) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetNodeAccountIDs added in v2.1.11

func (query *TokenNftInfoQuery) SetNodeAccountIDs(accountID []AccountID) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetPaymentTransactionID added in v2.11.0

func (query *TokenNftInfoQuery) SetPaymentTransactionID(transactionID TransactionID) *TokenNftInfoQuery

func (*TokenNftInfoQuery) SetQueryPayment added in v2.1.11

func (query *TokenNftInfoQuery) SetQueryPayment(paymentAmount Hbar) *TokenNftInfoQuery

SetQueryPayment sets the payment amount for this Query.

func (*TokenNftInfoQuery) SetStart added in v2.1.11

func (query *TokenNftInfoQuery) SetStart(start int64) *TokenNftInfoQuery

Deprecated

func (*TokenNftInfoQuery) SetTokenID added in v2.1.11

func (query *TokenNftInfoQuery) SetTokenID(id TokenID) *TokenNftInfoQuery

Deprecated

type TokenNftTransfer added in v2.1.11

type TokenNftTransfer struct {
	SenderAccountID   AccountID
	ReceiverAccountID AccountID
	SerialNumber      int64
	IsApproved        bool
}

func NftTransferFromBytes added in v2.1.11

func NftTransferFromBytes(data []byte) (TokenNftTransfer, error)

func (TokenNftTransfer) ToBytes added in v2.1.11

func (transfer TokenNftTransfer) ToBytes() []byte

type TokenPauseTransaction added in v2.3.0

type TokenPauseTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewTokenPauseTransaction added in v2.3.0

func NewTokenPauseTransaction() *TokenPauseTransaction

func (*TokenPauseTransaction) AddSignature added in v2.3.0

func (transaction *TokenPauseTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenPauseTransaction

func (*TokenPauseTransaction) Execute added in v2.3.0

func (transaction *TokenPauseTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*TokenPauseTransaction) Freeze added in v2.3.0

func (transaction *TokenPauseTransaction) Freeze() (*TokenPauseTransaction, error)

func (*TokenPauseTransaction) FreezeWith added in v2.3.0

func (transaction *TokenPauseTransaction) FreezeWith(client *Client) (*TokenPauseTransaction, error)

func (*TokenPauseTransaction) GetMaxBackoff added in v2.3.0

func (transaction *TokenPauseTransaction) GetMaxBackoff() time.Duration

func (*TokenPauseTransaction) GetMaxTransactionFee added in v2.3.0

func (transaction *TokenPauseTransaction) GetMaxTransactionFee() Hbar

func (*TokenPauseTransaction) GetMinBackoff added in v2.3.0

func (transaction *TokenPauseTransaction) GetMinBackoff() time.Duration

func (*TokenPauseTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenPauseTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenPauseTransaction) GetTokenID added in v2.3.0

func (transaction *TokenPauseTransaction) GetTokenID() TokenID

func (*TokenPauseTransaction) GetTransactionID added in v2.3.0

func (transaction *TokenPauseTransaction) GetTransactionID() TransactionID

func (*TokenPauseTransaction) GetTransactionMemo added in v2.3.0

func (transaction *TokenPauseTransaction) GetTransactionMemo() string

func (*TokenPauseTransaction) GetTransactionValidDuration added in v2.3.0

func (transaction *TokenPauseTransaction) GetTransactionValidDuration() time.Duration

func (*TokenPauseTransaction) IsFrozen added in v2.3.0

func (transaction *TokenPauseTransaction) IsFrozen() bool

func (*TokenPauseTransaction) Schedule added in v2.3.0

func (transaction *TokenPauseTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenPauseTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenPauseTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenPauseTransaction

func (*TokenPauseTransaction) SetMaxBackoff added in v2.3.0

func (transaction *TokenPauseTransaction) SetMaxBackoff(max time.Duration) *TokenPauseTransaction

func (*TokenPauseTransaction) SetMaxRetry added in v2.3.0

func (transaction *TokenPauseTransaction) SetMaxRetry(count int) *TokenPauseTransaction

func (*TokenPauseTransaction) SetMaxTransactionFee added in v2.3.0

func (transaction *TokenPauseTransaction) SetMaxTransactionFee(fee Hbar) *TokenPauseTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenPauseTransaction.

func (*TokenPauseTransaction) SetMinBackoff added in v2.3.0

func (transaction *TokenPauseTransaction) SetMinBackoff(min time.Duration) *TokenPauseTransaction

func (*TokenPauseTransaction) SetNodeAccountIDs added in v2.3.0

func (transaction *TokenPauseTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenPauseTransaction

SetNodeTokenID sets the _Node TokenID for this TokenPauseTransaction.

func (*TokenPauseTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *TokenPauseTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenPauseTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*TokenPauseTransaction) SetTokenID added in v2.3.0

func (transaction *TokenPauseTransaction) SetTokenID(tokenID TokenID) *TokenPauseTransaction

func (*TokenPauseTransaction) SetTransactionID added in v2.3.0

func (transaction *TokenPauseTransaction) SetTransactionID(transactionID TransactionID) *TokenPauseTransaction

SetTransactionID sets the TransactionID for this TokenPauseTransaction.

func (*TokenPauseTransaction) SetTransactionMemo added in v2.3.0

func (transaction *TokenPauseTransaction) SetTransactionMemo(memo string) *TokenPauseTransaction

SetTransactionMemo sets the memo for this TokenPauseTransaction.

func (*TokenPauseTransaction) SetTransactionValidDuration added in v2.3.0

func (transaction *TokenPauseTransaction) SetTransactionValidDuration(duration time.Duration) *TokenPauseTransaction

SetTransactionValidDuration sets the valid duration for this TokenPauseTransaction.

func (*TokenPauseTransaction) Sign added in v2.3.0

func (transaction *TokenPauseTransaction) Sign(
	privateKey PrivateKey,
) *TokenPauseTransaction

Sign uses the provided privateKey to sign the transaction.

func (*TokenPauseTransaction) SignWith added in v2.3.0

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 added in v2.3.0

func (transaction *TokenPauseTransaction) SignWithOperator(
	client *Client,
) (*TokenPauseTransaction, error)

type TokenRelationship

type TokenRelationship struct {
	TokenID              TokenID
	Symbol               string
	Balance              uint64
	KycStatus            *bool
	FreezeStatus         *bool
	Decimals             uint32
	AutomaticAssociation bool
}

func TokenRelationshipFromBytes added in v2.1.3

func TokenRelationshipFromBytes(data []byte) (TokenRelationship, error)

func (TokenRelationship) ToBytes added in v2.1.3

func (relationship TokenRelationship) ToBytes() []byte

type TokenRevokeKycTransaction

type TokenRevokeKycTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenRevokeKycTransaction) AddSignature added in v2.1.3

func (transaction *TokenRevokeKycTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenRevokeKycTransaction

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 added in v2.1.3

func (transaction *TokenRevokeKycTransaction) GetAccountID() AccountID

func (*TokenRevokeKycTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenRevokeKycTransaction) GetMaxBackoff() time.Duration

func (*TokenRevokeKycTransaction) GetMaxTransactionFee

func (transaction *TokenRevokeKycTransaction) GetMaxTransactionFee() Hbar

func (*TokenRevokeKycTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenRevokeKycTransaction) GetMinBackoff() time.Duration

func (*TokenRevokeKycTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenRevokeKycTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenRevokeKycTransaction) GetTokenID

func (transaction *TokenRevokeKycTransaction) GetTokenID() TokenID

func (*TokenRevokeKycTransaction) GetTransactionID

func (transaction *TokenRevokeKycTransaction) GetTransactionID() TransactionID

func (*TokenRevokeKycTransaction) GetTransactionMemo

func (transaction *TokenRevokeKycTransaction) GetTransactionMemo() string

func (*TokenRevokeKycTransaction) GetTransactionValidDuration

func (transaction *TokenRevokeKycTransaction) GetTransactionValidDuration() time.Duration

func (*TokenRevokeKycTransaction) IsFrozen

func (transaction *TokenRevokeKycTransaction) IsFrozen() bool

func (*TokenRevokeKycTransaction) Schedule added in v2.1.5

func (transaction *TokenRevokeKycTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenRevokeKycTransaction) SetAccountID

func (transaction *TokenRevokeKycTransaction) SetAccountID(accountID AccountID) *TokenRevokeKycTransaction

The account to be KYC Revoked

func (*TokenRevokeKycTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenRevokeKycTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenRevokeKycTransaction

func (*TokenRevokeKycTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenRevokeKycTransaction) SetMaxBackoff(max time.Duration) *TokenRevokeKycTransaction

func (*TokenRevokeKycTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenRevokeKycTransaction) SetMaxRetry(count int) *TokenRevokeKycTransaction

func (*TokenRevokeKycTransaction) SetMaxTransactionFee

func (transaction *TokenRevokeKycTransaction) SetMaxTransactionFee(fee Hbar) *TokenRevokeKycTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenRevokeKycTransaction.

func (*TokenRevokeKycTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenRevokeKycTransaction) SetMinBackoff(min time.Duration) *TokenRevokeKycTransaction

func (*TokenRevokeKycTransaction) SetNodeAccountIDs

func (transaction *TokenRevokeKycTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenRevokeKycTransaction

SetNodeTokenID sets the _Node TokenID for this TokenRevokeKycTransaction.

func (*TokenRevokeKycTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenSupplyType added in v2.1.11

type TokenSupplyType int32
const (
	TokenSupplyTypeInfinite TokenSupplyType = 0
	TokenSupplyTypeFinite   TokenSupplyType = 1
)

func (TokenSupplyType) String added in v2.1.11

func (tokenSupplyType TokenSupplyType) String() string

type TokenTransfer

type TokenTransfer struct {
	AccountID  AccountID
	Amount     int64
	IsApproved bool
}

func NewTokenTransfer

func NewTokenTransfer(accountID AccountID, amount int64) TokenTransfer

func TokenTransferFromBytes added in v2.1.3

func TokenTransferFromBytes(data []byte) (TokenTransfer, error)

func (TokenTransfer) String added in v2.4.0

func (transfer TokenTransfer) String() string

func (TokenTransfer) ToBytes added in v2.1.3

func (transfer TokenTransfer) ToBytes() []byte

type TokenType added in v2.1.11

type TokenType uint32
const (
	TokenTypeFungibleCommon    TokenType = 0
	TokenTypeNonFungibleUnique TokenType = 1
)

func (TokenType) String added in v2.1.11

func (tokenType TokenType) String() string

type TokenUnfreezeTransaction

type TokenUnfreezeTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenUnfreezeTransaction) AddSignature added in v2.1.3

func (transaction *TokenUnfreezeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUnfreezeTransaction

func (*TokenUnfreezeTransaction) Execute

func (transaction *TokenUnfreezeTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*TokenUnfreezeTransaction) Freeze added in v2.2.0

func (transaction *TokenUnfreezeTransaction) Freeze() (*TokenUnfreezeTransaction, error)

func (*TokenUnfreezeTransaction) FreezeWith added in v2.2.0

func (transaction *TokenUnfreezeTransaction) FreezeWith(client *Client) (*TokenUnfreezeTransaction, error)

func (*TokenUnfreezeTransaction) GetAccountID

func (transaction *TokenUnfreezeTransaction) GetAccountID() AccountID

func (*TokenUnfreezeTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenUnfreezeTransaction) GetMaxBackoff() time.Duration

func (*TokenUnfreezeTransaction) GetMaxTransactionFee

func (transaction *TokenUnfreezeTransaction) GetMaxTransactionFee() Hbar

func (*TokenUnfreezeTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenUnfreezeTransaction) GetMinBackoff() time.Duration

func (*TokenUnfreezeTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenUnfreezeTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenUnfreezeTransaction) GetTokenID

func (transaction *TokenUnfreezeTransaction) GetTokenID() TokenID

func (*TokenUnfreezeTransaction) GetTransactionID

func (transaction *TokenUnfreezeTransaction) GetTransactionID() TransactionID

func (*TokenUnfreezeTransaction) GetTransactionMemo

func (transaction *TokenUnfreezeTransaction) GetTransactionMemo() string

func (*TokenUnfreezeTransaction) GetTransactionValidDuration

func (transaction *TokenUnfreezeTransaction) GetTransactionValidDuration() time.Duration

func (*TokenUnfreezeTransaction) IsFrozen

func (transaction *TokenUnfreezeTransaction) IsFrozen() bool

func (*TokenUnfreezeTransaction) Schedule added in v2.1.5

func (transaction *TokenUnfreezeTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenUnfreezeTransaction) SetAccountID

func (transaction *TokenUnfreezeTransaction) SetAccountID(accountID AccountID) *TokenUnfreezeTransaction

The account to be unfrozen

func (*TokenUnfreezeTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenUnfreezeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUnfreezeTransaction

func (*TokenUnfreezeTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenUnfreezeTransaction) SetMaxBackoff(max time.Duration) *TokenUnfreezeTransaction

func (*TokenUnfreezeTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenUnfreezeTransaction) SetMaxRetry(count int) *TokenUnfreezeTransaction

func (*TokenUnfreezeTransaction) SetMaxTransactionFee

func (transaction *TokenUnfreezeTransaction) SetMaxTransactionFee(fee Hbar) *TokenUnfreezeTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenUnfreezeTransaction.

func (*TokenUnfreezeTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenUnfreezeTransaction) SetMinBackoff(min time.Duration) *TokenUnfreezeTransaction

func (*TokenUnfreezeTransaction) SetNodeAccountIDs

func (transaction *TokenUnfreezeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUnfreezeTransaction

SetNodeTokenID sets the _Node TokenID for this TokenUnfreezeTransaction.

func (*TokenUnfreezeTransaction) SetRegenerateTransactionID added in v2.8.0

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

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)

type TokenUnpauseTransaction added in v2.3.0

type TokenUnpauseTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewTokenUnpauseTransaction added in v2.3.0

func NewTokenUnpauseTransaction() *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) AddSignature added in v2.3.0

func (transaction *TokenUnpauseTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) Execute added in v2.3.0

func (transaction *TokenUnpauseTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

Execute executes the Transaction with the provided client

func (*TokenUnpauseTransaction) Freeze added in v2.3.0

func (transaction *TokenUnpauseTransaction) Freeze() (*TokenUnpauseTransaction, error)

func (*TokenUnpauseTransaction) FreezeWith added in v2.3.0

func (transaction *TokenUnpauseTransaction) FreezeWith(client *Client) (*TokenUnpauseTransaction, error)

func (*TokenUnpauseTransaction) GetMaxBackoff added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetMaxBackoff() time.Duration

func (*TokenUnpauseTransaction) GetMaxTransactionFee added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetMaxTransactionFee() Hbar

func (*TokenUnpauseTransaction) GetMinBackoff added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetMinBackoff() time.Duration

func (*TokenUnpauseTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenUnpauseTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenUnpauseTransaction) GetTokenID added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetTokenID() TokenID

func (*TokenUnpauseTransaction) GetTransactionID added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetTransactionID() TransactionID

func (*TokenUnpauseTransaction) GetTransactionMemo added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetTransactionMemo() string

func (*TokenUnpauseTransaction) GetTransactionValidDuration added in v2.3.0

func (transaction *TokenUnpauseTransaction) GetTransactionValidDuration() time.Duration

func (*TokenUnpauseTransaction) IsFrozen added in v2.3.0

func (transaction *TokenUnpauseTransaction) IsFrozen() bool

func (*TokenUnpauseTransaction) Schedule added in v2.3.0

func (transaction *TokenUnpauseTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenUnpauseTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TokenUnpauseTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) SetMaxBackoff added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetMaxBackoff(max time.Duration) *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) SetMaxRetry added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetMaxRetry(count int) *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) SetMaxTransactionFee added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetMaxTransactionFee(fee Hbar) *TokenUnpauseTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenUnpauseTransaction.

func (*TokenUnpauseTransaction) SetMinBackoff added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetMinBackoff(min time.Duration) *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) SetNodeAccountIDs added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUnpauseTransaction

SetNodeTokenID sets the _Node TokenID for this TokenUnpauseTransaction.

func (*TokenUnpauseTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *TokenUnpauseTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenUnpauseTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*TokenUnpauseTransaction) SetTokenID added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetTokenID(tokenID TokenID) *TokenUnpauseTransaction

func (*TokenUnpauseTransaction) SetTransactionID added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetTransactionID(transactionID TransactionID) *TokenUnpauseTransaction

SetTransactionID sets the TransactionID for this TokenUnpauseTransaction.

func (*TokenUnpauseTransaction) SetTransactionMemo added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetTransactionMemo(memo string) *TokenUnpauseTransaction

SetTransactionMemo sets the memo for this TokenUnpauseTransaction.

func (*TokenUnpauseTransaction) SetTransactionValidDuration added in v2.3.0

func (transaction *TokenUnpauseTransaction) SetTransactionValidDuration(duration time.Duration) *TokenUnpauseTransaction

SetTransactionValidDuration sets the valid duration for this TokenUnpauseTransaction.

func (*TokenUnpauseTransaction) Sign added in v2.3.0

func (transaction *TokenUnpauseTransaction) Sign(
	privateKey PrivateKey,
) *TokenUnpauseTransaction

Sign uses the provided privateKey to sign the transaction.

func (*TokenUnpauseTransaction) SignWith added in v2.3.0

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 added in v2.3.0

func (transaction *TokenUnpauseTransaction) SignWithOperator(
	client *Client,
) (*TokenUnpauseTransaction, error)

type TokenUpdateTransaction

type TokenUpdateTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

Updates an already created Token. If no value is given for a field, that field is left unchanged. For an immutable tokens (that is, a token created without an adminKey), only the expiry may be updated. Setting any other field in that case will cause the transaction status to resolve to TOKEN_IS_IMMUTABlE.

func NewTokenUpdateTransaction

func NewTokenUpdateTransaction() *TokenUpdateTransaction

func (*TokenUpdateTransaction) AddSignature added in v2.1.3

func (transaction *TokenUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenUpdateTransaction

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 added in v2.1.5

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

func (*TokenUpdateTransaction) GetExpirationTime

func (transaction *TokenUpdateTransaction) GetExpirationTime() time.Time

func (*TokenUpdateTransaction) GetFeeScheduleKey added in v2.1.11

func (transaction *TokenUpdateTransaction) GetFeeScheduleKey() Key

func (*TokenUpdateTransaction) GetFreezeKey

func (transaction *TokenUpdateTransaction) GetFreezeKey() Key

func (*TokenUpdateTransaction) GetKycKey

func (transaction *TokenUpdateTransaction) GetKycKey() Key

func (*TokenUpdateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenUpdateTransaction) GetMaxBackoff() time.Duration

func (*TokenUpdateTransaction) GetMaxTransactionFee

func (transaction *TokenUpdateTransaction) GetMaxTransactionFee() Hbar

func (*TokenUpdateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenUpdateTransaction) GetMinBackoff() time.Duration

func (*TokenUpdateTransaction) GetPauseKey added in v2.7.0

func (transaction *TokenUpdateTransaction) GetPauseKey() Key

func (*TokenUpdateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenUpdateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenUpdateTransaction) GetSupplyKey

func (transaction *TokenUpdateTransaction) GetSupplyKey() Key

func (*TokenUpdateTransaction) GetTokenID

func (transaction *TokenUpdateTransaction) GetTokenID() TokenID

func (*TokenUpdateTransaction) GetTokenName

func (transaction *TokenUpdateTransaction) GetTokenName() string

func (*TokenUpdateTransaction) GetTokenSymbol

func (transaction *TokenUpdateTransaction) GetTokenSymbol() string

func (*TokenUpdateTransaction) GetTransactionID

func (transaction *TokenUpdateTransaction) GetTransactionID() TransactionID

func (*TokenUpdateTransaction) GetTransactionMemo

func (transaction *TokenUpdateTransaction) GetTransactionMemo() string

func (*TokenUpdateTransaction) GetTransactionValidDuration

func (transaction *TokenUpdateTransaction) GetTransactionValidDuration() time.Duration

func (*TokenUpdateTransaction) GetTreasuryAccountID

func (transaction *TokenUpdateTransaction) GetTreasuryAccountID() AccountID

func (*TokenUpdateTransaction) GetWipeKey

func (transaction *TokenUpdateTransaction) GetWipeKey() Key

func (*TokenUpdateTransaction) IsFrozen

func (transaction *TokenUpdateTransaction) IsFrozen() bool

func (*TokenUpdateTransaction) Schedule added in v2.1.5

func (transaction *TokenUpdateTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenUpdateTransaction) SetAdminKey

func (transaction *TokenUpdateTransaction) SetAdminKey(publicKey Key) *TokenUpdateTransaction

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

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

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

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 added in v2.1.11

func (transaction *TokenUpdateTransaction) SetFeeScheduleKey(key Key) *TokenUpdateTransaction

func (*TokenUpdateTransaction) SetFreezeKey

func (transaction *TokenUpdateTransaction) SetFreezeKey(publicKey Key) *TokenUpdateTransaction

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) SetKycKey

func (transaction *TokenUpdateTransaction) SetKycKey(publicKey Key) *TokenUpdateTransaction

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) SetMaxBackoff added in v2.1.16

func (transaction *TokenUpdateTransaction) SetMaxBackoff(max time.Duration) *TokenUpdateTransaction

func (*TokenUpdateTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenUpdateTransaction) SetMaxRetry(count int) *TokenUpdateTransaction

func (*TokenUpdateTransaction) SetMaxTransactionFee

func (transaction *TokenUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TokenUpdateTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenUpdateTransaction.

func (*TokenUpdateTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenUpdateTransaction) SetMinBackoff(min time.Duration) *TokenUpdateTransaction

func (*TokenUpdateTransaction) SetNodeAccountIDs

func (transaction *TokenUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenUpdateTransaction

SetNodeTokenID sets the _Node TokenID for this TokenUpdateTransaction.

func (*TokenUpdateTransaction) SetPauseKey added in v2.7.0

func (transaction *TokenUpdateTransaction) SetPauseKey(publicKey Key) *TokenUpdateTransaction

func (*TokenUpdateTransaction) SetRegenerateTransactionID added in v2.8.0

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

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

The Token to be updated

func (*TokenUpdateTransaction) SetTokenMemo added in v2.1.5

func (transaction *TokenUpdateTransaction) SetTokenMemo(memo string) *TokenUpdateTransaction

func (*TokenUpdateTransaction) SetTokenName

func (transaction *TokenUpdateTransaction) SetTokenName(name string) *TokenUpdateTransaction

The new Name of the Token. Must be a string of ASCII characters.

func (*TokenUpdateTransaction) SetTokenSymbol

func (transaction *TokenUpdateTransaction) SetTokenSymbol(symbol string) *TokenUpdateTransaction

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

The 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

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)

type TokenWipeTransaction

type TokenWipeTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

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

func (*TokenWipeTransaction) AddSignature added in v2.1.3

func (transaction *TokenWipeTransaction) AddSignature(publicKey PublicKey, signature []byte) *TokenWipeTransaction

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

func (*TokenWipeTransaction) GetAmount

func (transaction *TokenWipeTransaction) GetAmount() uint64

func (*TokenWipeTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TokenWipeTransaction) GetMaxBackoff() time.Duration

func (*TokenWipeTransaction) GetMaxTransactionFee

func (transaction *TokenWipeTransaction) GetMaxTransactionFee() Hbar

func (*TokenWipeTransaction) GetMinBackoff added in v2.1.16

func (transaction *TokenWipeTransaction) GetMinBackoff() time.Duration

func (*TokenWipeTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TokenWipeTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TokenWipeTransaction) GetSerialNumbers added in v2.1.11

func (transaction *TokenWipeTransaction) GetSerialNumbers() []int64

func (*TokenWipeTransaction) GetTokenID

func (transaction *TokenWipeTransaction) GetTokenID() TokenID

func (*TokenWipeTransaction) GetTransactionID

func (transaction *TokenWipeTransaction) GetTransactionID() TransactionID

func (*TokenWipeTransaction) GetTransactionMemo

func (transaction *TokenWipeTransaction) GetTransactionMemo() string

func (*TokenWipeTransaction) GetTransactionValidDuration

func (transaction *TokenWipeTransaction) GetTransactionValidDuration() time.Duration

func (*TokenWipeTransaction) IsFrozen

func (transaction *TokenWipeTransaction) IsFrozen() bool

func (*TokenWipeTransaction) Schedule added in v2.1.5

func (transaction *TokenWipeTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TokenWipeTransaction) SetAccountID

func (transaction *TokenWipeTransaction) SetAccountID(accountID AccountID) *TokenWipeTransaction

The account to be wiped

func (*TokenWipeTransaction) SetAmount

func (transaction *TokenWipeTransaction) SetAmount(amount uint64) *TokenWipeTransaction

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 added in v2.11.0

func (transaction *TokenWipeTransaction) SetGrpcDeadline(deadline *time.Duration) *TokenWipeTransaction

func (*TokenWipeTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TokenWipeTransaction) SetMaxBackoff(max time.Duration) *TokenWipeTransaction

func (*TokenWipeTransaction) SetMaxRetry added in v2.1.2

func (transaction *TokenWipeTransaction) SetMaxRetry(count int) *TokenWipeTransaction

func (*TokenWipeTransaction) SetMaxTransactionFee

func (transaction *TokenWipeTransaction) SetMaxTransactionFee(fee Hbar) *TokenWipeTransaction

SetMaxTransactionFee sets the max transaction fee for this TokenWipeTransaction.

func (*TokenWipeTransaction) SetMinBackoff added in v2.1.16

func (transaction *TokenWipeTransaction) SetMinBackoff(min time.Duration) *TokenWipeTransaction

func (*TokenWipeTransaction) SetNodeAccountIDs

func (transaction *TokenWipeTransaction) SetNodeAccountIDs(nodeID []AccountID) *TokenWipeTransaction

SetNodeTokenID sets the _Node TokenID for this TokenWipeTransaction.

func (*TokenWipeTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *TokenWipeTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TokenWipeTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*TokenWipeTransaction) SetSerialNumbers added in v2.1.11

func (transaction *TokenWipeTransaction) SetSerialNumbers(serial []int64) *TokenWipeTransaction

func (*TokenWipeTransaction) SetTokenID

func (transaction *TokenWipeTransaction) SetTokenID(tokenID TokenID) *TokenWipeTransaction

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)

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 added in v2.1.3

func (transaction *TopicCreateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicCreateTransaction

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)

func (*TopicCreateTransaction) GetAutoRenewAccountID

func (transaction *TopicCreateTransaction) GetAutoRenewAccountID() AccountID

func (*TopicCreateTransaction) GetAutoRenewPeriod

func (transaction *TopicCreateTransaction) GetAutoRenewPeriod() time.Duration

func (*TopicCreateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TopicCreateTransaction) GetMaxBackoff() time.Duration

func (*TopicCreateTransaction) GetMaxTransactionFee

func (transaction *TopicCreateTransaction) GetMaxTransactionFee() Hbar

func (*TopicCreateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TopicCreateTransaction) GetMinBackoff() time.Duration

func (*TopicCreateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TopicCreateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TopicCreateTransaction) GetSubmitKey

func (transaction *TopicCreateTransaction) GetSubmitKey() (Key, error)

func (*TopicCreateTransaction) GetTopicMemo

func (transaction *TopicCreateTransaction) GetTopicMemo() string

func (*TopicCreateTransaction) GetTransactionID

func (transaction *TopicCreateTransaction) GetTransactionID() TransactionID

func (*TopicCreateTransaction) GetTransactionMemo

func (transaction *TopicCreateTransaction) GetTransactionMemo() string

func (*TopicCreateTransaction) GetTransactionValidDuration

func (transaction *TopicCreateTransaction) GetTransactionValidDuration() time.Duration

func (*TopicCreateTransaction) IsFrozen

func (transaction *TopicCreateTransaction) IsFrozen() bool

func (*TopicCreateTransaction) Schedule added in v2.1.5

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 added in v2.11.0

func (transaction *TopicCreateTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicCreateTransaction

func (*TopicCreateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TopicCreateTransaction) SetMaxBackoff(max time.Duration) *TopicCreateTransaction

func (*TopicCreateTransaction) SetMaxRetry added in v2.1.2

func (transaction *TopicCreateTransaction) SetMaxRetry(count int) *TopicCreateTransaction

func (*TopicCreateTransaction) SetMaxTransactionFee

func (transaction *TopicCreateTransaction) SetMaxTransactionFee(fee Hbar) *TopicCreateTransaction

SetMaxTransactionFee sets the max transaction fee for this TopicCreateTransaction.

func (*TopicCreateTransaction) SetMinBackoff added in v2.1.16

func (transaction *TopicCreateTransaction) SetMinBackoff(min time.Duration) *TopicCreateTransaction

func (*TopicCreateTransaction) SetNodeAccountIDs

func (transaction *TopicCreateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicCreateTransaction

SetNodeAccountID sets the _Node AccountID for this TopicCreateTransaction.

func (*TopicCreateTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type TopicDeleteTransaction

type TopicDeleteTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

A ConsensusTopicDeleteTransaction is for deleting a topic on HCS.

func NewTopicDeleteTransaction

func NewTopicDeleteTransaction() *TopicDeleteTransaction

NewConsensusTopicDeleteTransaction creates a ConsensusTopicDeleteTransaction transaction which can be used to construct and execute a Consensus Delete Topic Transaction.

func (*TopicDeleteTransaction) AddSignature added in v2.1.3

func (transaction *TopicDeleteTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicDeleteTransaction

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 added in v2.1.16

func (transaction *TopicDeleteTransaction) GetMaxBackoff() time.Duration

func (*TopicDeleteTransaction) GetMinBackoff added in v2.1.16

func (transaction *TopicDeleteTransaction) GetMinBackoff() time.Duration

func (*TopicDeleteTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TopicDeleteTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TopicDeleteTransaction) GetTopicID

func (transaction *TopicDeleteTransaction) GetTopicID() TopicID

func (*TopicDeleteTransaction) IsFrozen

func (transaction *TopicDeleteTransaction) IsFrozen() bool

func (*TopicDeleteTransaction) Schedule added in v2.1.5

func (transaction *TopicDeleteTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TopicDeleteTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TopicDeleteTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicDeleteTransaction

func (*TopicDeleteTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TopicDeleteTransaction) SetMaxBackoff(max time.Duration) *TopicDeleteTransaction

func (*TopicDeleteTransaction) SetMaxRetry added in v2.1.2

func (transaction *TopicDeleteTransaction) SetMaxRetry(count int) *TopicDeleteTransaction

func (*TopicDeleteTransaction) SetMaxTransactionFee

func (transaction *TopicDeleteTransaction) SetMaxTransactionFee(fee Hbar) *TopicDeleteTransaction

SetMaxTransactionFee sets the max transaction fee for this TopicDeleteTransaction.

func (*TopicDeleteTransaction) SetMinBackoff added in v2.1.16

func (transaction *TopicDeleteTransaction) SetMinBackoff(min time.Duration) *TopicDeleteTransaction

func (*TopicDeleteTransaction) SetNodeAccountIDs

func (transaction *TopicDeleteTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicDeleteTransaction

SetNodeAccountID sets the _Node AccountID for this TopicDeleteTransaction.

func (*TopicDeleteTransaction) SetRegenerateTransactionID added in v2.8.0

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 added in v2.1.3

func TopicIDFromBytes(data []byte) (TopicID, error)

func TopicIDFromSolidityAddress added in v2.7.0

func TopicIDFromSolidityAddress(s string) (TopicID, error)

TopicIDFromSolidityAddress constructs an TopicID from a string representation of a _Solidity address

func TopicIDFromString

func TopicIDFromString(data string) (TopicID, error)

TopicIDFromString constructs a TopicID from a string formatted as `Shard.Realm.Topic` (for example "0.0.3")

func (TopicID) String

func (id TopicID) String() string

String returns the string representation of a TopicID in `Shard.Realm.Topic` (for example "0.0.3")

func (TopicID) ToBytes added in v2.1.3

func (id TopicID) ToBytes() []byte

func (TopicID) ToSolidityAddress added in v2.7.0

func (id TopicID) ToSolidityAddress() string

ToSolidityAddress returns the string representation of the TopicID as a _Solidity address.

func (TopicID) ToStringWithChecksum added in v2.1.13

func (id TopicID) ToStringWithChecksum(client Client) (string, error)

func (*TopicID) Validate added in v2.1.8

func (id *TopicID) Validate(client *Client) error

Deprecated

func (*TopicID) ValidateChecksum added in v2.4.0

func (id *TopicID) ValidateChecksum(client *Client) error

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
}

func TopicInfoFromBytes added in v2.1.3

func TopicInfoFromBytes(data []byte) (TopicInfo, error)

func (TopicInfo) ToBytes added in v2.1.3

func (topicInfo TopicInfo) ToBytes() []byte

type TopicInfoQuery

type TopicInfoQuery struct {
	Query
	// contains filtered or unexported fields
}

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)

func (*TopicInfoQuery) GetMaxBackoff added in v2.1.16

func (query *TopicInfoQuery) GetMaxBackoff() time.Duration

func (*TopicInfoQuery) GetMinBackoff added in v2.1.16

func (query *TopicInfoQuery) GetMinBackoff() time.Duration

func (*TopicInfoQuery) GetTopicID

func (query *TopicInfoQuery) GetTopicID() TopicID

func (*TopicInfoQuery) SetGrpcDeadline added in v2.11.0

func (query *TopicInfoQuery) SetGrpcDeadline(deadline *time.Duration) *TopicInfoQuery

func (*TopicInfoQuery) SetMaxBackoff added in v2.1.16

func (query *TopicInfoQuery) SetMaxBackoff(max time.Duration) *TopicInfoQuery

func (*TopicInfoQuery) SetMaxQueryPayment

func (query *TopicInfoQuery) SetMaxQueryPayment(maxPayment Hbar) *TopicInfoQuery

SetMaxQueryPayment sets the maximum payment allowed for this Query.

func (*TopicInfoQuery) SetMaxRetry added in v2.1.2

func (query *TopicInfoQuery) SetMaxRetry(count int) *TopicInfoQuery

func (*TopicInfoQuery) SetMinBackoff added in v2.1.16

func (query *TopicInfoQuery) SetMinBackoff(min time.Duration) *TopicInfoQuery

func (*TopicInfoQuery) SetNodeAccountIDs

func (query *TopicInfoQuery) SetNodeAccountIDs(accountID []AccountID) *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
}

type TopicMessageChunk

type TopicMessageChunk struct {
	ConsensusTimestamp time.Time
	ContentSize        uint64
	RunningHash        []byte
	SequenceNumber     uint64
}

type TopicMessageQuery

type TopicMessageQuery struct {
	// contains filtered or unexported fields
}

func NewTopicMessageQuery

func NewTopicMessageQuery() *TopicMessageQuery

func (*TopicMessageQuery) GetEndTime

func (query *TopicMessageQuery) GetEndTime() time.Time

func (*TopicMessageQuery) GetLimit

func (query *TopicMessageQuery) GetLimit() uint64

func (*TopicMessageQuery) GetMaxAttempts added in v2.1.9

func (query *TopicMessageQuery) GetMaxAttempts() uint64

func (*TopicMessageQuery) GetStartTime

func (query *TopicMessageQuery) GetStartTime() time.Time

func (*TopicMessageQuery) GetTopicID

func (query *TopicMessageQuery) GetTopicID() TopicID

func (*TopicMessageQuery) SetCompletionHandler added in v2.1.6

func (query *TopicMessageQuery) SetCompletionHandler(completionHandler func()) *TopicMessageQuery

func (*TopicMessageQuery) SetEndTime

func (query *TopicMessageQuery) SetEndTime(endTime time.Time) *TopicMessageQuery

func (*TopicMessageQuery) SetErrorHandler added in v2.1.2

func (query *TopicMessageQuery) SetErrorHandler(errorHandler func(stat status.Status)) *TopicMessageQuery

func (*TopicMessageQuery) SetLimit

func (query *TopicMessageQuery) SetLimit(limit uint64) *TopicMessageQuery

func (*TopicMessageQuery) SetMaxAttempts added in v2.1.9

func (query *TopicMessageQuery) SetMaxAttempts(maxAttempts uint64) *TopicMessageQuery

func (*TopicMessageQuery) SetRetryHandler added in v2.1.6

func (query *TopicMessageQuery) SetRetryHandler(retryHandler func(err error) bool) *TopicMessageQuery

func (*TopicMessageQuery) SetStartTime

func (query *TopicMessageQuery) SetStartTime(startTime time.Time) *TopicMessageQuery

func (*TopicMessageQuery) SetTopicID

func (query *TopicMessageQuery) SetTopicID(topicID TopicID) *TopicMessageQuery

func (*TopicMessageQuery) Subscribe

func (query *TopicMessageQuery) Subscribe(client *Client, onNext func(TopicMessage)) (SubscriptionHandle, error)

type TopicMessageSubmitTransaction

type TopicMessageSubmitTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewTopicMessageSubmitTransaction

func NewTopicMessageSubmitTransaction() *TopicMessageSubmitTransaction

func (*TopicMessageSubmitTransaction) AddSignature added in v2.1.3

func (transaction *TopicMessageSubmitTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicMessageSubmitTransaction

func (*TopicMessageSubmitTransaction) Execute

func (transaction *TopicMessageSubmitTransaction) Execute(
	client *Client,
) (TransactionResponse, error)

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 (*TopicMessageSubmitTransaction) FreezeWith

func (transaction *TopicMessageSubmitTransaction) FreezeWith(client *Client) (*TopicMessageSubmitTransaction, error)

func (*TopicMessageSubmitTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TopicMessageSubmitTransaction) GetMaxBackoff() time.Duration

func (*TopicMessageSubmitTransaction) GetMaxChunks

func (transaction *TopicMessageSubmitTransaction) GetMaxChunks() uint64

func (*TopicMessageSubmitTransaction) GetMaxTransactionFee

func (transaction *TopicMessageSubmitTransaction) GetMaxTransactionFee() Hbar

func (*TopicMessageSubmitTransaction) GetMessage

func (transaction *TopicMessageSubmitTransaction) GetMessage() []byte

func (*TopicMessageSubmitTransaction) GetMinBackoff added in v2.1.16

func (transaction *TopicMessageSubmitTransaction) GetMinBackoff() time.Duration

func (*TopicMessageSubmitTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TopicMessageSubmitTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TopicMessageSubmitTransaction) GetTopicID

func (transaction *TopicMessageSubmitTransaction) GetTopicID() TopicID

func (*TopicMessageSubmitTransaction) GetTransactionID

func (transaction *TopicMessageSubmitTransaction) GetTransactionID() TransactionID

func (*TopicMessageSubmitTransaction) GetTransactionMemo

func (transaction *TopicMessageSubmitTransaction) GetTransactionMemo() string

func (*TopicMessageSubmitTransaction) GetTransactionValidDuration

func (transaction *TopicMessageSubmitTransaction) GetTransactionValidDuration() time.Duration

func (*TopicMessageSubmitTransaction) IsFrozen

func (transaction *TopicMessageSubmitTransaction) IsFrozen() bool

func (*TopicMessageSubmitTransaction) Schedule added in v2.1.5

func (*TopicMessageSubmitTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TopicMessageSubmitTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicMessageSubmitTransaction

func (*TopicMessageSubmitTransaction) SetMaxBackoff added in v2.1.16

func (*TopicMessageSubmitTransaction) SetMaxChunks

func (transaction *TopicMessageSubmitTransaction) SetMaxChunks(maxChunks uint64) *TopicMessageSubmitTransaction

func (*TopicMessageSubmitTransaction) SetMaxRetry added in v2.1.2

func (transaction *TopicMessageSubmitTransaction) SetMaxRetry(count int) *TopicMessageSubmitTransaction

func (*TopicMessageSubmitTransaction) SetMaxTransactionFee

func (transaction *TopicMessageSubmitTransaction) SetMaxTransactionFee(fee Hbar) *TopicMessageSubmitTransaction

SetMaxTransactionFee sets the max transaction fee for this TopicMessageSubmitTransaction.

func (*TopicMessageSubmitTransaction) SetMessage

func (transaction *TopicMessageSubmitTransaction) SetMessage(message []byte) *TopicMessageSubmitTransaction

func (*TopicMessageSubmitTransaction) SetMinBackoff added in v2.1.16

func (*TopicMessageSubmitTransaction) SetNodeAccountIDs

func (transaction *TopicMessageSubmitTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicMessageSubmitTransaction

SetNodeAccountID sets the _Node AccountID for this TopicMessageSubmitTransaction.

func (*TopicMessageSubmitTransaction) SetRegenerateTransactionID added in v2.8.0

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

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

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)

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 can be used to construct and execute a Update Topic Transaction.

func (*TopicUpdateTransaction) AddSignature added in v2.1.3

func (transaction *TopicUpdateTransaction) AddSignature(publicKey PublicKey, signature []byte) *TopicUpdateTransaction

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)

func (*TopicUpdateTransaction) GetAutoRenewAccountID

func (transaction *TopicUpdateTransaction) GetAutoRenewAccountID() AccountID

func (*TopicUpdateTransaction) GetAutoRenewPeriod

func (transaction *TopicUpdateTransaction) GetAutoRenewPeriod() time.Duration

func (*TopicUpdateTransaction) GetExpirationTime

func (transaction *TopicUpdateTransaction) GetExpirationTime() time.Time

func (*TopicUpdateTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TopicUpdateTransaction) GetMaxBackoff() time.Duration

func (*TopicUpdateTransaction) GetMaxTransactionFee

func (transaction *TopicUpdateTransaction) GetMaxTransactionFee() Hbar

func (*TopicUpdateTransaction) GetMinBackoff added in v2.1.16

func (transaction *TopicUpdateTransaction) GetMinBackoff() time.Duration

func (*TopicUpdateTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TopicUpdateTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TopicUpdateTransaction) GetSubmitKey

func (transaction *TopicUpdateTransaction) GetSubmitKey() (Key, error)

func (*TopicUpdateTransaction) GetTopicID

func (transaction *TopicUpdateTransaction) GetTopicID() TopicID

func (*TopicUpdateTransaction) GetTopicMemo

func (transaction *TopicUpdateTransaction) GetTopicMemo() string

func (*TopicUpdateTransaction) GetTransactionID

func (transaction *TopicUpdateTransaction) GetTransactionID() TransactionID

func (*TopicUpdateTransaction) GetTransactionMemo

func (transaction *TopicUpdateTransaction) GetTransactionMemo() string

func (*TopicUpdateTransaction) GetTransactionValidDuration

func (transaction *TopicUpdateTransaction) GetTransactionValidDuration() time.Duration

func (*TopicUpdateTransaction) IsFrozen

func (transaction *TopicUpdateTransaction) IsFrozen() bool

func (*TopicUpdateTransaction) Schedule added in v2.1.5

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 added in v2.11.0

func (transaction *TopicUpdateTransaction) SetGrpcDeadline(deadline *time.Duration) *TopicUpdateTransaction

func (*TopicUpdateTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TopicUpdateTransaction) SetMaxBackoff(max time.Duration) *TopicUpdateTransaction

func (*TopicUpdateTransaction) SetMaxRetry added in v2.1.2

func (transaction *TopicUpdateTransaction) SetMaxRetry(count int) *TopicUpdateTransaction

func (*TopicUpdateTransaction) SetMaxTransactionFee

func (transaction *TopicUpdateTransaction) SetMaxTransactionFee(fee Hbar) *TopicUpdateTransaction

SetMaxTransactionFee sets the max transaction fee for this TopicUpdateTransaction.

func (*TopicUpdateTransaction) SetMinBackoff added in v2.1.16

func (transaction *TopicUpdateTransaction) SetMinBackoff(min time.Duration) *TopicUpdateTransaction

func (*TopicUpdateTransaction) SetNodeAccountIDs

func (transaction *TopicUpdateTransaction) SetNodeAccountIDs(nodeID []AccountID) *TopicUpdateTransaction

SetNodeAccountID sets the _Node AccountID for this TopicUpdateTransaction.

func (*TopicUpdateTransaction) SetRegenerateTransactionID added in v2.8.0

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)

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

func (*Transaction) GetGrpcDeadline added in v2.11.0

func (this *Transaction) GetGrpcDeadline() *time.Duration

func (*Transaction) GetMaxRetry added in v2.1.2

func (this *Transaction) GetMaxRetry() int

func (*Transaction) GetMaxTransactionFee

func (this *Transaction) GetMaxTransactionFee() Hbar

func (*Transaction) GetNodeAccountIDs

func (this *Transaction) GetNodeAccountIDs() (nodeAccountIDs []AccountID)

func (*Transaction) GetRegenerateTransactionID added in v2.8.0

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)

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

func (*Transaction) GetTransactionMemo

func (this *Transaction) GetTransactionMemo() string

func (*Transaction) GetTransactionValidDuration

func (this *Transaction) GetTransactionValidDuration() time.Duration

func (*Transaction) SetGrpcDeadline added in v2.11.0

func (this *Transaction) SetGrpcDeadline(deadline *time.Duration) *Transaction

func (*Transaction) SetMaxRetry added in v2.1.2

func (this *Transaction) SetMaxRetry(count int) *Transaction

func (*Transaction) SetMaxTransactionFee

func (this *Transaction) SetMaxTransactionFee(fee Hbar) *Transaction

SetMaxTransactionFee sets the max transaction fee for this Transaction.

func (*Transaction) SetNodeAccountIDs

func (this *Transaction) SetNodeAccountIDs(nodeAccountIDs []AccountID) *Transaction

SetNodeAccountIDs sets the node AccountID for this Transaction.

func (*Transaction) SetRegenerateTransactionID added in v2.8.0

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

func (*Transaction) ToBytes

func (this *Transaction) ToBytes() ([]byte, error)

type TransactionFeeSchedule added in v2.1.11

type TransactionFeeSchedule struct {
	RequestType RequestType
	// Deprecated use Fees
	FeeData *FeeData
	Fees    []*FeeData
}

func (TransactionFeeSchedule) String added in v2.1.11

func (txFeeSchedule TransactionFeeSchedule) String() string

func (TransactionFeeSchedule) ToBytes added in v2.1.11

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 added in v2.2.0

func TransactionGetTransactionID(transaction interface{}) (TransactionID, error)

func TransactionIDFromBytes added in v2.1.3

func TransactionIDFromBytes(data []byte) (TransactionID, error)

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 added in v2.1.5

func TransactionIdFromString(data string) (TransactionID, error)

func (TransactionID) GetNonce added in v2.7.0

func (id TransactionID) GetNonce() int32

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 added in v2.1.5

func (id TransactionID) GetScheduled() bool

func (TransactionID) SetNonce added in v2.7.0

func (id TransactionID) SetNonce(nonce int32) TransactionID

func (TransactionID) SetScheduled added in v2.1.5

func (id TransactionID) SetScheduled(scheduled bool) 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 added in v2.1.3

func (id TransactionID) ToBytes() []byte

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
}

func TransactionReceiptFromBytes added in v2.1.3

func TransactionReceiptFromBytes(data []byte) (TransactionReceipt, error)

func (TransactionReceipt) ToBytes added in v2.1.3

func (receipt TransactionReceipt) ToBytes() []byte

type TransactionReceiptQuery

type TransactionReceiptQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewTransactionReceiptQuery

func NewTransactionReceiptQuery() *TransactionReceiptQuery

func (*TransactionReceiptQuery) Execute

func (query *TransactionReceiptQuery) Execute(client *Client) (TransactionReceipt, error)

func (*TransactionReceiptQuery) GetCost

func (query *TransactionReceiptQuery) GetCost(client *Client) (Hbar, error)

func (*TransactionReceiptQuery) GetIncludeChildren added in v2.7.0

func (query *TransactionReceiptQuery) GetIncludeChildren() bool

func (*TransactionReceiptQuery) GetIncludeDuplicates added in v2.7.0

func (query *TransactionReceiptQuery) GetIncludeDuplicates() bool

func (*TransactionReceiptQuery) GetMaxBackoff added in v2.1.16

func (query *TransactionReceiptQuery) GetMaxBackoff() time.Duration

func (*TransactionReceiptQuery) GetMinBackoff added in v2.1.16

func (query *TransactionReceiptQuery) GetMinBackoff() time.Duration

func (*TransactionReceiptQuery) GetTransactionID

func (query *TransactionReceiptQuery) GetTransactionID() TransactionID

func (*TransactionReceiptQuery) SetGrpcDeadline added in v2.11.0

func (query *TransactionReceiptQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetIncludeChildren added in v2.7.0

func (query *TransactionReceiptQuery) SetIncludeChildren(includeChildReceipts bool) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetIncludeDuplicates added in v2.7.0

func (query *TransactionReceiptQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetMaxBackoff added in v2.1.16

func (query *TransactionReceiptQuery) SetMaxBackoff(max time.Duration) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetMaxQueryPayment

func (query *TransactionReceiptQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetMaxRetry added in v2.1.2

func (query *TransactionReceiptQuery) SetMaxRetry(count int) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetMinBackoff added in v2.1.16

func (query *TransactionReceiptQuery) SetMinBackoff(min time.Duration) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetNodeAccountIDs

func (query *TransactionReceiptQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetPaymentTransactionID added in v2.11.0

func (query *TransactionReceiptQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetQueryPayment

func (query *TransactionReceiptQuery) SetQueryPayment(queryPayment Hbar) *TransactionReceiptQuery

func (*TransactionReceiptQuery) SetTransactionID

func (query *TransactionReceiptQuery) SetTransactionID(transactionID TransactionID) *TransactionReceiptQuery

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
}

func TransactionRecordFromBytes added in v2.1.3

func TransactionRecordFromBytes(data []byte) (TransactionRecord, error)

func (TransactionRecord) GetContractCreateResult

func (record TransactionRecord) GetContractCreateResult() (ContractFunctionResult, error)

func (TransactionRecord) GetContractExecuteResult

func (record TransactionRecord) GetContractExecuteResult() (ContractFunctionResult, error)

func (TransactionRecord) ToBytes added in v2.1.3

func (record TransactionRecord) ToBytes() []byte

type TransactionRecordQuery

type TransactionRecordQuery struct {
	Query
	// contains filtered or unexported fields
}

func NewTransactionRecordQuery

func NewTransactionRecordQuery() *TransactionRecordQuery

func (*TransactionRecordQuery) Execute

func (query *TransactionRecordQuery) Execute(client *Client) (TransactionRecord, error)

func (*TransactionRecordQuery) GetCost

func (query *TransactionRecordQuery) GetCost(client *Client) (Hbar, error)

func (*TransactionRecordQuery) GetIncludeChildren added in v2.7.0

func (query *TransactionRecordQuery) GetIncludeChildren() bool

func (*TransactionRecordQuery) GetIncludeDuplicates added in v2.7.0

func (query *TransactionRecordQuery) GetIncludeDuplicates() bool

func (*TransactionRecordQuery) GetMaxBackoff added in v2.1.16

func (query *TransactionRecordQuery) GetMaxBackoff() time.Duration

func (*TransactionRecordQuery) GetMinBackoff added in v2.1.16

func (query *TransactionRecordQuery) GetMinBackoff() time.Duration

func (*TransactionRecordQuery) GetTransactionID

func (query *TransactionRecordQuery) GetTransactionID() TransactionID

func (*TransactionRecordQuery) SetGrpcDeadline added in v2.11.0

func (query *TransactionRecordQuery) SetGrpcDeadline(deadline *time.Duration) *TransactionRecordQuery

func (*TransactionRecordQuery) SetIncludeChildren added in v2.7.0

func (query *TransactionRecordQuery) SetIncludeChildren(includeChildRecords bool) *TransactionRecordQuery

func (*TransactionRecordQuery) SetIncludeDuplicates added in v2.7.0

func (query *TransactionRecordQuery) SetIncludeDuplicates(includeDuplicates bool) *TransactionRecordQuery

func (*TransactionRecordQuery) SetMaxBackoff added in v2.1.16

func (query *TransactionRecordQuery) SetMaxBackoff(max time.Duration) *TransactionRecordQuery

func (*TransactionRecordQuery) SetMaxQueryPayment

func (query *TransactionRecordQuery) SetMaxQueryPayment(queryMaxPayment Hbar) *TransactionRecordQuery

func (*TransactionRecordQuery) SetMaxRetry added in v2.1.2

func (query *TransactionRecordQuery) SetMaxRetry(count int) *TransactionRecordQuery

func (*TransactionRecordQuery) SetMinBackoff added in v2.1.16

func (query *TransactionRecordQuery) SetMinBackoff(min time.Duration) *TransactionRecordQuery

func (*TransactionRecordQuery) SetNodeAccountIDs

func (query *TransactionRecordQuery) SetNodeAccountIDs(accountID []AccountID) *TransactionRecordQuery

func (*TransactionRecordQuery) SetPaymentTransactionID added in v2.11.0

func (query *TransactionRecordQuery) SetPaymentTransactionID(transactionID TransactionID) *TransactionRecordQuery

func (*TransactionRecordQuery) SetQueryPayment

func (query *TransactionRecordQuery) SetQueryPayment(queryPayment Hbar) *TransactionRecordQuery

func (*TransactionRecordQuery) SetTransactionID

func (query *TransactionRecordQuery) SetTransactionID(transactionID TransactionID) *TransactionRecordQuery

type TransactionResponse

type TransactionResponse struct {
	TransactionID          TransactionID
	ScheduledTransactionId TransactionID // nolint
	NodeID                 AccountID
	Hash                   []byte
}

func TransactionExecute added in v2.2.0

func TransactionExecute(transaction interface{}, client *Client) (TransactionResponse, error)

func (TransactionResponse) GetReceipt

func (response TransactionResponse) GetReceipt(client *Client) (TransactionReceipt, error)

func (TransactionResponse) GetRecord

func (response TransactionResponse) GetRecord(client *Client) (TransactionRecord, error)

type TransactionSigner

type TransactionSigner func(message []byte) []byte

TransactionSigner is a closure or function that defines how transactions will be signed

type Transfer

type Transfer struct {
	AccountID AccountID
	Amount    Hbar
}

type TransferTransaction

type TransferTransaction struct {
	Transaction
	// contains filtered or unexported fields
}

func NewTransferTransaction

func NewTransferTransaction() *TransferTransaction

func (*TransferTransaction) AddApprovedHbarTransfer added in v2.12.0

func (transaction *TransferTransaction) AddApprovedHbarTransfer(accountID AccountID, amount Hbar, approve bool) *TransferTransaction

func (*TransferTransaction) AddApprovedNftTransfer added in v2.12.0

func (transaction *TransferTransaction) AddApprovedNftTransfer(nftID NftID, sender AccountID, receiver AccountID, approve bool) *TransferTransaction

func (*TransferTransaction) AddApprovedTokenTransfer added in v2.12.0

func (transaction *TransferTransaction) AddApprovedTokenTransfer(tokenID TokenID, accountID AccountID, value int64, approve bool) *TransferTransaction

func (*TransferTransaction) AddApprovedTokenTransferWithDecimals added in v2.12.0

func (transaction *TransferTransaction) AddApprovedTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32, approve bool) *TransferTransaction

func (*TransferTransaction) AddHbarTransfer

func (transaction *TransferTransaction) AddHbarTransfer(accountID AccountID, amount Hbar) *TransferTransaction

func (*TransferTransaction) AddNftTransfer added in v2.1.11

func (transaction *TransferTransaction) AddNftTransfer(nftID NftID, sender AccountID, receiver AccountID) *TransferTransaction

func (*TransferTransaction) AddSignature added in v2.1.3

func (transaction *TransferTransaction) AddSignature(publicKey PublicKey, signature []byte) *TransferTransaction

func (*TransferTransaction) AddTokenTransfer

func (transaction *TransferTransaction) AddTokenTransfer(tokenID TokenID, accountID AccountID, value int64) *TransferTransaction

func (*TransferTransaction) AddTokenTransferWithDecimals added in v2.7.0

func (transaction *TransferTransaction) AddTokenTransferWithDecimals(tokenID TokenID, accountID AccountID, value int64, decimal uint32) *TransferTransaction

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

func (*TransferTransaction) GetMaxBackoff added in v2.1.16

func (transaction *TransferTransaction) GetMaxBackoff() time.Duration

func (*TransferTransaction) GetMaxTransactionFee

func (transaction *TransferTransaction) GetMaxTransactionFee() Hbar

func (*TransferTransaction) GetMinBackoff added in v2.1.16

func (transaction *TransferTransaction) GetMinBackoff() time.Duration

func (*TransferTransaction) GetNftTransfers added in v2.1.11

func (transaction *TransferTransaction) GetNftTransfers() map[TokenID][]TokenNftTransfer

func (*TransferTransaction) GetRegenerateTransactionID added in v2.8.0

func (transaction *TransferTransaction) GetRegenerateTransactionID() bool

GetRegenerateTransactionID returns true if transaction ID regeneration is enabled.

func (*TransferTransaction) GetTokenIDDecimals added in v2.7.0

func (transaction *TransferTransaction) GetTokenIDDecimals() map[TokenID]uint32

func (*TransferTransaction) GetTokenTransfers

func (transaction *TransferTransaction) GetTokenTransfers() map[TokenID][]TokenTransfer

func (*TransferTransaction) GetTransactionID

func (transaction *TransferTransaction) GetTransactionID() TransactionID

func (*TransferTransaction) GetTransactionMemo

func (transaction *TransferTransaction) GetTransactionMemo() string

func (*TransferTransaction) GetTransactionValidDuration

func (transaction *TransferTransaction) GetTransactionValidDuration() time.Duration

func (*TransferTransaction) IsFrozen

func (transaction *TransferTransaction) IsFrozen() bool

func (*TransferTransaction) Schedule added in v2.1.5

func (transaction *TransferTransaction) Schedule() (*ScheduleCreateTransaction, error)

func (*TransferTransaction) SetGrpcDeadline added in v2.11.0

func (transaction *TransferTransaction) SetGrpcDeadline(deadline *time.Duration) *TransferTransaction

func (*TransferTransaction) SetHbarTransferApproval added in v2.9.0

func (transaction *TransferTransaction) SetHbarTransferApproval(spenderAccountID AccountID, approval bool) *TransferTransaction

func (*TransferTransaction) SetMaxBackoff added in v2.1.16

func (transaction *TransferTransaction) SetMaxBackoff(max time.Duration) *TransferTransaction

func (*TransferTransaction) SetMaxRetry added in v2.1.2

func (transaction *TransferTransaction) SetMaxRetry(count int) *TransferTransaction

func (*TransferTransaction) SetMaxTransactionFee

func (transaction *TransferTransaction) SetMaxTransactionFee(fee Hbar) *TransferTransaction

SetMaxTransactionFee sets the max transaction fee for this TransferTransaction.

func (*TransferTransaction) SetMinBackoff added in v2.1.16

func (transaction *TransferTransaction) SetMinBackoff(min time.Duration) *TransferTransaction

func (*TransferTransaction) SetNftTransferApproval added in v2.9.0

func (transaction *TransferTransaction) SetNftTransferApproval(nftID NftID, approval bool) *TransferTransaction

func (*TransferTransaction) SetNodeAccountIDs

func (transaction *TransferTransaction) SetNodeAccountIDs(nodeID []AccountID) *TransferTransaction

SetNodeTokenID sets the _Node TokenID for this TransferTransaction.

func (*TransferTransaction) SetRegenerateTransactionID added in v2.8.0

func (transaction *TransferTransaction) SetRegenerateTransactionID(regenerateTransactionID bool) *TransferTransaction

SetRegenerateTransactionID sets if transaction IDs should be regenerated when `TRANSACTION_EXPIRED` is received

func (*TransferTransaction) SetTokenTransferApproval added in v2.9.0

func (transaction *TransferTransaction) SetTokenTransferApproval(tokenID TokenID, accountID AccountID, approval bool) *TransferTransaction

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)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL