tendermintrpc

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 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 a Tendermint RPC client.

func New

func New(addr string) Client

New creates a new Tendermint RPC client.

func (Client) GetGenesis

func (c Client) GetGenesis(ctx context.Context) (Genesis, error)

GetGenesis retrieves Genesis.

func (Client) GetNetInfo

func (c Client) GetNetInfo(ctx context.Context) (NetInfo, error)

GetNetInfo retrieves network info.

func (Client) Status

func (c Client) Status(ctx context.Context) (NodeInfo, error)

Status retrieves node Status.

type Genesis

type Genesis struct {
	ChainID string `json:"chain_id"`
}

Genesis represents Genesis.

type NetInfo

type NetInfo struct {
	ConnectedPeers int
}

NetInfo represents Network Info.

type NodeInfo

type NodeInfo struct {
	Network string
}

NodeInfo holds node info.

Jump to

Keyboard shortcuts

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