rpc

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 18 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(bcReader blockchain.Reader, syncReader sync.Reader, virtualMachine vm.VM, version string,
	logger log.Logger, network *networks.Network,
) *Handler

func (*Handler) MethodsV0_9 added in v0.15.0

func (h *Handler) MethodsV0_9() ([]jsonrpc.Method, string)

func (*Handler) MethodsV0_10 added in v0.15.11

func (h *Handler) MethodsV0_10() ([]jsonrpc.Method, string)

func (*Handler) Run added in v0.7.1

func (h *Handler) Run(ctx context.Context) error

func (*Handler) Version added in v0.4.0

func (h *Handler) Version() (string, *jsonrpc.Error)

func (*Handler) WithCallMaxGas added in v0.15.8

func (h *Handler) WithCallMaxGas(maxGas uint64) *Handler

func (*Handler) WithCallMaxSteps added in v0.9.3

func (h *Handler) WithCallMaxSteps(maxSteps uint64) *Handler

func (*Handler) WithCompiler added in v0.15.20

func (h *Handler) WithCompiler(compiler compiler.Compiler) *Handler

func (*Handler) WithFeeder added in v0.9.3

func (h *Handler) WithFeeder(feederClient feeder.Reader) *Handler

func (*Handler) WithFilterLimit added in v0.7.5

func (h *Handler) WithFilterLimit(limit uint) *Handler

WithFilterLimit sets the maximum number of blocks to scan in a single call for event filtering.

func (*Handler) WithGateway added in v0.9.3

func (h *Handler) WithGateway(gatewayClient rpccore.Gateway) *Handler

func (*Handler) WithL1Client added in v0.13.0

func (h *Handler) WithL1Client(l1Client rpccore.L1Client) *Handler

func (*Handler) WithMempool added in v0.14.4

func (h *Handler) WithMempool(memPool mempool.Pool) *Handler

func (*Handler) WithReceivedTransactionFeed added in v0.16.0

func (h *Handler) WithReceivedTransactionFeed(feed *feed.Feed[core.Transaction]) *Handler

func (*Handler) WithSubmittedTransactionsCache added in v0.15.0

func (h *Handler) WithSubmittedTransactionsCache(cache *rpccore.TransactionCache) *Handler

func (*Handler) WithSubscriptionMemoryLimiter added in v0.17.1

func (h *Handler) WithSubscriptionMemoryLimiter(
	limiter *rpccore.SubscriptionMemoryLimiter,
) *Handler

WithSubscriptionMemoryLimiter bounds subscription memory across versions; nil is unbounded

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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