Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client) AccountExists(accountID hedera.AccountID) bool
- func (c Client) GetAccount(accountID string) (*model.AccountsResponse, error)
- func (c Client) GetAccountCreditTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*model.Response, error)
- func (c Client) GetAccountCreditTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)
- func (c Client) GetAccountCreditTransactionsBetween(accountId hedera.AccountID, from, to int64) ([]model.Transaction, error)
- func (c Client) GetAccountDebitTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)
- func (c Client) GetAccountTokenBurnTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*model.Response, error)
- func (c Client) GetAccountTokenBurnTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)
- func (c Client) GetAccountTokenMintTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*model.Response, error)
- func (c Client) GetAccountTokenMintTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*model.Response, error)
- func (c *Client) GetHBARUsdPrice() (price decimal.Decimal, err error)
- func (c Client) GetMessagesAfterTimestamp(topicId hedera.TopicID, from int64) ([]model.Message, error)
- func (c Client) GetMessagesForTopicBetween(topicId hedera.TopicID, from, to int64) ([]model.Message, error)
- func (c Client) GetNft(tokenID string, serialNum int64) (*model.Nft, error)
- func (c Client) GetNftTransactions(tokenID string, serialNum int64) (model.NftTransactionsResponse, error)
- func (c Client) GetSchedule(scheduleID string) (*model.Schedule, error)
- func (c Client) GetScheduledTransaction(transactionID string) (*model.Response, error)
- func (c Client) GetStateProof(transactionID string) ([]byte, error)
- func (c Client) GetSuccessfulTransaction(transactionID string) (model.Transaction, error)
- func (c Client) GetToken(tokenID string) (*model.TokenResponse, error)
- func (c Client) GetTransaction(transactionID string) (*model.Response, error)
- func (c Client) TopicExists(topicID hedera.TopicID) bool
- func (c Client) WaitForScheduledTransaction(txId string, onSuccess, onFailure func())
- func (c Client) WaitForTransaction(txId string, onSuccess, onFailure func())
Constants ¶
This section is empty.
Variables ¶
var ( GetHbarPriceHeaders = map[string]string{"Accepts": "application/json"} TransactionsGetHBARUsdPrice = "transactions?account.id=0.0.57&transactiontype=fileupdate&limit=1" )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(mirrorNode config.MirrorNode) *Client
func (Client) AccountExists ¶
func (Client) GetAccount ¶ added in v1.4.0
func (c Client) GetAccount(accountID string) (*model.AccountsResponse, error)
GetAccount retrieves an account entity by its id
func (Client) GetAccountCreditTransactionsAfterTimestamp ¶
func (Client) GetAccountCreditTransactionsAfterTimestampString ¶ added in v1.4.0
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 (Client) GetAccountTokenBurnTransactionsAfterTimestamp ¶ added in v1.4.0
func (Client) GetAccountTokenBurnTransactionsAfterTimestampString ¶ added in v1.4.0
func (Client) GetAccountTokenMintTransactionsAfterTimestamp ¶ added in v1.4.0
func (Client) GetAccountTokenMintTransactionsAfterTimestampString ¶ added in v1.4.0
func (*Client) GetHBARUsdPrice ¶ added in v1.4.0
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) GetNftTransactions ¶ added in v1.4.0
func (c Client) GetNftTransactions(tokenID string, serialNum int64) (model.NftTransactionsResponse, error)
GetNftTransactions returns the nft transactions for tokenID and serialNum
func (Client) GetSchedule ¶ added in v1.4.0
GetSchedule retrieves a schedule entity by its id
func (Client) GetScheduledTransaction ¶ added in v1.4.0
GetScheduledTransaction gets the Scheduled transaction of an executed transaction
func (Client) GetSuccessfulTransaction ¶ added in v1.4.0
func (c Client) GetSuccessfulTransaction(transactionID string) (model.Transaction, error)
func (Client) GetToken ¶ added in v1.4.0
func (c Client) GetToken(tokenID string) (*model.TokenResponse, error)
GetToken retrieves a token entity by its id
func (Client) GetTransaction ¶
func (Client) TopicExists ¶
func (Client) WaitForScheduledTransaction ¶ added in v1.4.0
WaitForScheduledTransaction Polls the transaction at intervals. Depending on the result, the corresponding `onSuccess` and `onFailure` functions are called
func (Client) WaitForTransaction ¶
WaitForTransaction Polls the transaction at intervals. Depending on the result, the corresponding `onSuccess` and `onFailure` functions are called