Lux SDKGoPackages

indexer

Package indexer

import "github.com/luxfi/sdk/indexer"

Types

Client

func NewClient(uri string) *Client
func (c *Client) GetContainerByID(ctx context.Context, id ids.ID, options ...rpc.Option) (Container, uint64, error)
func (c *Client) GetContainerByIndex(ctx context.Context, index uint64, options ...rpc.Option) (Container, error)
func (c *Client) GetContainerRange(ctx context.Context, startIndex uint64, numToFetch int, options ...rpc.Option) ([]Container, error)
func (c *Client) GetIndex(ctx context.Context, id ids.ID, options ...rpc.Option) (uint64, error)
func (c *Client) GetLastAccepted(ctx context.Context, options ...rpc.Option) (Container, uint64, error)
func (c *Client) IsAccepted(ctx context.Context, id ids.ID, options ...rpc.Option) (bool, error)

Container

Container is something that gets accepted (a block, transaction or vertex).

FormattedContainer

GetContainerByIDArgs

GetContainerByIndexArgs

GetContainerRangeArgs

GetContainerRangeResponse

GetIndexArgs

GetIndexResponse

GetLastAcceptedArgs

IsAcceptedArgs

IsAcceptedResponse