ethmempool

package
v1.27.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: LGPL-3.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mempool

type Mempool struct {
	// contains filtered or unexported fields
}

func NewMempool

func NewMempool(nodeWebsocketURL string, opts ...Options) (*Mempool, error)

func (*Mempool) IsRunning

func (m *Mempool) IsRunning() bool

func (*Mempool) Options

func (m *Mempool) Options() Options

func (*Mempool) Run added in v1.6.1

func (m *Mempool) Run(ctx context.Context) error

func (*Mempool) Stop

func (m *Mempool) Stop()

func (*Mempool) Subscribe

func (m *Mempool) Subscribe() Subscription

func (*Mempool) SubscribeWithFilter

func (m *Mempool) SubscribeWithFilter(notifyFilterFunc NotifyFilterFunc) Subscription

type NotifyFilterFunc

type NotifyFilterFunc func(pendingTxnHash string) bool

type Options

type Options struct {
	Logger logger.Logger
}

type Subscription

type Subscription interface {
	PendingTransactionHash() <-chan string
	Done() <-chan struct{}
	Unsubscribe()
}

Jump to

Keyboard shortcuts

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