hedera

package
v0.0.4-rc-1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 6 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(config 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) SubmitScheduledNftTransferTransaction added in v1.4.0

func (hc Node) SubmitScheduledNftTransferTransaction(
	nftID hedera.NftID,
	payerAccount hedera.AccountID,
	sender hedera.AccountID,
	receiving hedera.AccountID,
	memo string) (*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`

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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