hedera

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

Node struct holding the hedera.Client. Used to interact with Hedera consensus nodes

func NewNodeClient

func NewNodeClient(cfg config.Hedera) *Node

NewNodeClient creates new instance of hedera.Client based on the provided client configuration

func (Node) GetClient

func (hc Node) GetClient() *hedera.Client

GetClient returns the hedera.Client

func (Node) SubmitScheduleSign added in v1.4.0

func (hc Node) SubmitScheduleSign(scheduleID hedera.ScheduleID) (*hedera.TransactionResponse, error)

SubmitScheduleSign submits a ScheduleSign transaction for a given ScheduleID

func (Node) SubmitScheduledHbarTransferTransaction added in v1.4.0

func (hc Node) SubmitScheduledHbarTransferTransaction(
	transfers []transfer.Hedera,
	payerAccountID hedera.AccountID,
	memo string) (*hedera.TransactionResponse, error)

SubmitScheduledHbarTransferTransaction creates an hbar transfer transaction and submits it as a scheduled transaction

func (Node) SubmitScheduledNftApproveTransaction added in v1.4.0

func (hc Node) SubmitScheduledNftApproveTransaction(
	payer hedera.AccountID,
	memo string,
	nftId hedera.NftID,
	owner hedera.AccountID,
	spender hedera.AccountID) (*hedera.TransactionResponse, error)

func (Node) SubmitScheduledNftTransferTransaction added in v1.4.0

func (hc Node) SubmitScheduledNftTransferTransaction(
	nftID hedera.NftID,
	payerAccount hedera.AccountID,
	sender hedera.AccountID,
	receiving hedera.AccountID,
	memo string, approved bool) (*hedera.TransactionResponse, error)

func (Node) SubmitScheduledTokenBurnTransaction added in v1.4.0

func (hc Node) SubmitScheduledTokenBurnTransaction(tokenID hedera.TokenID, amount int64, payerAccountID hedera.AccountID, memo string) (*hedera.TransactionResponse, error)

SubmitScheduledTokenBurnTransaction creates a token burn transaction and submits it as a scheduled burn transaction

func (Node) SubmitScheduledTokenMintTransaction added in v1.4.0

func (hc Node) SubmitScheduledTokenMintTransaction(tokenID hedera.TokenID, amount int64, payerAccountID hedera.AccountID, memo string) (*hedera.TransactionResponse, error)

SubmitScheduledTokenMintTransaction creates a token mint transaction and submits it as a scheduled mint transaction

func (Node) SubmitScheduledTokenTransferTransaction added in v1.4.0

func (hc Node) SubmitScheduledTokenTransferTransaction(
	tokenID hedera.TokenID,
	transfers []transfer.Hedera,
	payerAccountID hedera.AccountID,
	memo string) (*hedera.TransactionResponse, error)

SubmitScheduledTokenTransferTransaction creates a token transfer transaction and submits it as a scheduled transaction

func (Node) SubmitTopicConsensusMessage

func (hc Node) SubmitTopicConsensusMessage(topicId hedera.TopicID, message []byte) (*hedera.TransactionID, error)

SubmitTopicConsensusMessage submits the provided message bytes to the specified HCS `topicId`

func (Node) TransactionReceiptQuery added in v1.4.0

func (hc Node) TransactionReceiptQuery(transactionID hedera.TransactionID, nodeAccIds []hedera.AccountID) (hedera.TransactionReceipt, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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