mirror_node

package
v0.1.0-alpha-10 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(mirrorNodeAPIAddress string, pollingInterval time.Duration) *Client

func (Client) AccountExists

func (c Client) AccountExists(accountID hedera.AccountID) bool

func (Client) GetAccountCreditTransactionsAfterTimestamp

func (c Client) GetAccountCreditTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*model.Response, error)

func (Client) GetAccountCreditTransactionsAfterTimestampString added in v1.4.0

func (c Client) GetAccountCreditTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)

func (Client) GetAccountCreditTransactionsBetween

func (c Client) GetAccountCreditTransactionsBetween(accountId hedera.AccountID, from, to int64) ([]model.Transaction, error)

GetAccountCreditTransactionsBetween returns all incoming Transfers for the specified account between timestamp `from` and `to` excluded

func (Client) GetAccountDebitTransactionsAfterTimestampString added in v1.4.0

func (c Client) GetAccountDebitTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)

func (Client) GetAccountTokenBurnTransactionsAfterTimestamp added in v1.4.0

func (c Client) GetAccountTokenBurnTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*model.Response, error)

func (Client) GetAccountTokenBurnTransactionsAfterTimestampString added in v1.4.0

func (c Client) GetAccountTokenBurnTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)

func (Client) GetAccountTokenMintTransactionsAfterTimestamp added in v1.4.0

func (c Client) GetAccountTokenMintTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*model.Response, error)

func (Client) GetAccountTokenMintTransactionsAfterTimestampString added in v1.4.0

func (c Client) GetAccountTokenMintTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)

func (Client) GetMessagesAfterTimestamp

func (c Client) GetMessagesAfterTimestamp(topicId hedera.TopicID, from int64) ([]model.Message, error)

GetMessagesAfterTimestamp returns all Topic messages after the given timestamp

func (Client) GetMessagesForTopicBetween

func (c Client) GetMessagesForTopicBetween(topicId hedera.TopicID, from, to int64) ([]model.Message, error)

GetMessagesForTopicBetween returns all Topic messages for the specified topic between timestamp `from` and `to` excluded

func (Client) GetSchedule added in v1.4.0

func (c Client) GetSchedule(scheduleID string) (*model.Schedule, error)

GetSchedule retrieves a schedule entity by its id

func (Client) GetScheduledTransaction added in v1.4.0

func (c Client) GetScheduledTransaction(transactionID string) (*model.Response, error)

GetScheduledTransaction gets the Scheduled transaction of an executed transaction

func (Client) GetStateProof

func (c Client) GetStateProof(transactionID string) ([]byte, error)

func (Client) GetTransaction

func (c Client) GetTransaction(transactionID string) (*model.Response, error)

func (Client) TopicExists

func (c Client) TopicExists(topicID hedera.TopicID) bool

func (Client) WaitForScheduledTransaction added in v1.4.0

func (c Client) WaitForScheduledTransaction(txId string, onSuccess, onFailure func())

WaitForScheduledTransaction Polls the transaction at intervals. Depending on the result, the corresponding `onSuccess` and `onFailure` functions are called

func (Client) WaitForTransaction

func (c Client) WaitForTransaction(txId string, onSuccess, onFailure func())

WaitForTransaction Polls the transaction at intervals. Depending on the result, the corresponding `onSuccess` and `onFailure` functions are called

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL