rpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryBlock

func QueryBlock(ctx context.Context, rpcladdr string, height int64, logger *types.SyncLogger) (*tm_coretypes.ResultBlock, error)

QueryBlock gets the block for the specified height.

Types

type BlockResult

type BlockResult struct {
	Result *tm_coretypes.ResultBlock `json:"result"`
	// contains filtered or unexported fields
}

BlockResult defines the JSONRPC 2.0 response structure for Tendermint's /block endpoint.

Jump to

Keyboard shortcuts

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