level1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level1Client

type Level1Client interface {
	// RequestFunds requests some funds from the testnet Faucet
	RequestFunds(targetAddress *address.Address) error

	// GetConfirmedAccountOutputs fetches all confirmed outputs belonging to the given address
	GetConfirmedAccountOutputs(address *address.Address) (map[transaction.OutputID][]*balance.Balance, error)

	// PostTransaction posts a transaction to the ledger
	PostTransaction(tx *transaction.Transaction) error

	// PostAndWaitForConfirmation posts a transaction to the ledger and blocks until it is confirmed
	PostAndWaitForConfirmation(tx *transaction.Transaction) error

	// WaitForConfirmation blocks until a transaction is confirmed in the ledger
	WaitForConfirmation(txid transaction.ID) error
}

Level1Client is an interface to interact with the IOTA level 1 ledger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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