rest

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockByHeight

func GetBlockByHeight(host string, height uint64) (result tx.GetBlockByHeightResponse, err error)

GetBlockByHeight makes a request to the Cosmos REST API to get a block by height

func GetEndpoint

func GetEndpoint(key string) string

func GetLatestBlock

func GetLatestBlock(host string) (tx.GetLatestBlockResponse, error)

func GetTxsByBlockHeight

func GetTxsByBlockHeight(host string, height uint64) (tx.GetTxByBlockHeightResponse, error)

GetTxsByBlockHeight makes a request to the Cosmos REST API and returns all the transactions for a specific block

Types

This section is empty.

Jump to

Keyboard shortcuts

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