block

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(storage Storage) *Handler

func (*Handler) GetBlockHandler

func (h *Handler) GetBlockHandler(
	_ *metadata.Metadata,
	params []any,
) (any, *spec.BaseJSONError)

type Storage

type Storage interface {
	// GetBlock returns specified block from permanent storage
	GetBlock(uint64) (*types.Block, error)
}

Jump to

Keyboard shortcuts

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