ledger

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MaxBlocksPerRequest = 2000

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockIndex

type BlockIndex uint64

type DataProvider

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

func NewDataProvider

func NewDataProvider() (*DataProvider, error)

func (DataProvider) GetArchiveIndex

func (d DataProvider) GetArchiveIndex() ([]*v1.ArchiveIndexEntry, error)

func (DataProvider) GetRawBlock

func (d DataProvider) GetRawBlock(height BlockIndex) (*v1.EncodedBlock, error)

func (DataProvider) GetRawBlocks

func (d DataProvider) GetRawBlocks(start, end BlockIndex) ([]*v1.EncodedBlock, error)

func (DataProvider) GetRawBlocksRange

func (d DataProvider) GetRawBlocksRange(canisterID principal.Principal, start, end BlockIndex) ([]*v1.EncodedBlock, error)

func (DataProvider) GetTipOfChain

func (d DataProvider) GetTipOfChain() (*BlockIndex, error)

Directories

Path Synopsis
proto
v1

Jump to

Keyboard shortcuts

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