rpc

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 15 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 added in v1.0.2

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) 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