Documentation
¶
Overview ¶
Package services implements the APIs for the Rosetta Server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexConfig ¶
IndexConfig represents the options for the IndexBlocks method on Store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store aggregates the blockchain data for Rosetta API calls.
func (*Store) Close ¶
Close closes the store database. It must be called to ensure all pending writes are written to disk.
func (*Store) IndexBlocks ¶
func (s *Store) IndexBlocks(ctx context.Context, cfg IndexConfig)
IndexBlocks polls the node for new blocks and indexes the block data.
Click to show internal directories.
Click to hide internal directories.