rpc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 10 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 struct {
	// contains filtered or unexported fields
}

Client is the TM2 RPC client

func NewHTTPClient

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

NewHTTPClient creates a new TM2 HTTP RPC client

func NewWSClient

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

NewWSClient creates a new TM2 WebSocket RPC client

func (*Client) GetBlocks

func (c *Client) GetBlocks(ctx context.Context, from, to uint64) ([]*client.Block, error)

func (*Client) GetLatestBlockNumber

func (c *Client) GetLatestBlockNumber() (uint64, error)

func (*Client) GetTxResults

func (c *Client) GetTxResults(block uint64) ([]*abci.ResponseDeliverTx, error)

Jump to

Keyboard shortcuts

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