Documentation ¶
Index ¶
- type SubstrateEventHelper
- func (s *SubstrateEventHelper) DecodeEvents(blockHash types.Hash) ([]*parser.Event, error)
- func (s *SubstrateEventHelper) ListenForNewBlocks(callback func([]*parser.Event, uint64)) error
- func (s *SubstrateEventHelper) ListenForSpecificBlock(blockNumber uint64, callback func([]*parser.Event, uint64)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubstrateEventHelper ¶
type SubstrateEventHelper struct { API *gsrpc.SubstrateAPI // contains filtered or unexported fields }
func NewSubstrateEventHelper ¶
func NewSubstrateEventHelper(nodeURL string, logger *logrus.Entry) (*SubstrateEventHelper, error)
func (*SubstrateEventHelper) DecodeEvents ¶
func (*SubstrateEventHelper) ListenForNewBlocks ¶
func (s *SubstrateEventHelper) ListenForNewBlocks(callback func([]*parser.Event, uint64)) error
ListenForNewBlocks listens for new blocks and continuously decodes events.
func (*SubstrateEventHelper) ListenForSpecificBlock ¶
Click to show internal directories.
Click to hide internal directories.