cosmos

package
v0.0.0-...-de21b2d Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockRange

func BlockRange(ctx context.Context, client *http.HTTP, first, last int64) <-chan block.Block

block range queries tendermint node for blocks from [first,last] callers need to check if channel return by the function to know that it had finished working or some error occurred the function does not guarantee that all blocks will be fetched, so callers should also keep track of that

func GetBlock

func GetBlock(ctx context.Context, client *http.HTTP, N int64) (block.Block, error)

GetBlock queries tendermint rpc at provided height and formats block it does that by fetching the block itself and then querying each tx in the block

Types

This section is empty.

Jump to

Keyboard shortcuts

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