txparser

package
v0.0.0-...-6802d5b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxParser

func NewTxParser(storage storage.IStorage) *txParser

Types

type ITxParser

type ITxParser interface {
	// last parsed block
	GetCurrentBlock() (uint64, error)
	// add address to observer
	Subscribe(address string) (bool, error)
	// remove address from observer
	Unsubscribe(address string) (bool, error)
	// list of inbound or outbound transactions for an address
	GetTransactions(address string) ([]*types.Transaction, error)
}

Jump to

Keyboard shortcuts

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