client

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 3 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 interface {

	// GetAccount fetches the account if it has been initialized
	GetAccount(address crypto.Address) (std.Account, error)

	// SendTransactionSync sends the specified transaction to the network,
	// and does not wait for it to be committed to the chain
	SendTransactionSync(tx *std.Tx) (*coreTypes.ResultBroadcastTx, error)

	// SendTransactionCommit sends the specified transaction to the network,
	// and wait for it to be committed to the chain
	SendTransactionCommit(tx *std.Tx) (*coreTypes.ResultBroadcastTxCommit, error)
}

Client defines the TM2 client functionality

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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