rpc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(cfg config.DataSource) API

func (*API) Block

func (api *API) Block(ctx context.Context, level pkgTypes.Level) (pkgTypes.ResultBlock, error)

func (*API) BlockData

func (api *API) BlockData(ctx context.Context, level pkgTypes.Level) (pkgTypes.BlockData, error)

func (*API) BlockDataGet

func (api *API) BlockDataGet(ctx context.Context, level pkgTypes.Level) (pkgTypes.BlockData, error)

func (*API) BlockResults

func (api *API) BlockResults(ctx context.Context, level pkgTypes.Level) (pkgTypes.ResultBlockResults, error)

func (*API) Genesis

func (api *API) Genesis(ctx context.Context) (types.Genesis, error)

func (*API) GetAssetInfo

func (api *API) GetAssetInfo(ctx context.Context, asset string) (types.DenomMetadataResponse, error)

func (*API) Head

func (api *API) Head(ctx context.Context) (types.ResultBlock, error)

func (*API) Status

func (api *API) Status(ctx context.Context) (types.Status, error)

type GenesisChunk

type GenesisChunk struct {
	Chunk int64  `json:"chunk,string"`
	Total int64  `json:"total,string"`
	Data  []byte `json:"data"`
}

Jump to

Keyboard shortcuts

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