client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

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

func (*Batch) AddTxBroadcast

func (b *Batch) AddTxBroadcast(tx []byte) error

func (*Batch) Execute

func (b *Batch) Execute() ([]interface{}, error)

type Client added in v1.3.0

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

func NewHTTPClient

func NewHTTPClient(url string) (*Client, error)

NewHTTPClient creates a new instance of the HTTP client

func NewWSClient added in v1.3.0

func NewWSClient(url string) (*Client, error)

NewWSClient creates a new instance of the WS client

func (*Client) BroadcastTransaction added in v1.3.0

func (h *Client) BroadcastTransaction(tx *std.Tx) error

func (*Client) CreateBatch added in v1.3.0

func (h *Client) CreateBatch() common.Batch

func (*Client) ExecuteABCIQuery added in v1.3.0

func (h *Client) ExecuteABCIQuery(path string, data []byte) (*core_types.ResultABCIQuery, error)

func (*Client) GetAccount added in v1.3.0

func (h *Client) GetAccount(address string) (*gnoland.GnoAccount, error)

func (*Client) GetBlock added in v1.3.0

func (h *Client) GetBlock(height *int64) (*core_types.ResultBlock, error)

func (*Client) GetBlockGasLimit added in v1.3.0

func (h *Client) GetBlockGasLimit(height int64) (int64, error)

func (*Client) GetBlockGasUsed added in v1.3.0

func (h *Client) GetBlockGasUsed(height int64) (int64, error)

func (*Client) GetBlockResults added in v1.3.0

func (h *Client) GetBlockResults(height *int64) (*core_types.ResultBlockResults, error)

func (*Client) GetConsensusParams added in v1.3.0

func (h *Client) GetConsensusParams(height *int64) (*core_types.ResultConsensusParams, error)

func (*Client) GetLatestBlockHeight added in v1.3.0

func (h *Client) GetLatestBlockHeight() (int64, error)

Jump to

Keyboard shortcuts

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