client

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 HTTPClient

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

func NewHTTPClient

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

NewHTTPClient creates a new instance of the HTTP client

func (*HTTPClient) BroadcastTransaction

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

func (*HTTPClient) CreateBatch

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

func (*HTTPClient) ExecuteABCIQuery

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

func (*HTTPClient) GetAccount

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

func (*HTTPClient) GetBlock

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

func (*HTTPClient) GetBlockGasLimit

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

func (*HTTPClient) GetBlockGasUsed

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

func (*HTTPClient) GetBlockResults

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

func (*HTTPClient) GetConsensusParams

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

func (*HTTPClient) GetLatestBlockHeight

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

Jump to

Keyboard shortcuts

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