Documentation
¶
Index ¶
- Constants
- type BlockIndex
- type DataProvider
- func (d DataProvider) GetArchiveIndex() ([]*v1.ArchiveIndexEntry, error)
- func (d DataProvider) GetRawBlock(height BlockIndex) (*v1.EncodedBlock, error)
- func (d DataProvider) GetRawBlocks(start, end BlockIndex) ([]*v1.EncodedBlock, error)
- func (d DataProvider) GetRawBlocksRange(canisterID principal.Principal, start, end BlockIndex) ([]*v1.EncodedBlock, error)
- func (d DataProvider) GetTipOfChain() (*BlockIndex, error)
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)
Click to show internal directories.
Click to hide internal directories.