ethnode

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module implements the module.Module interface for direct Ethereum node API access.

func New

func New() *Module

New creates a new ethnode module.

func (*Module) ApplyDefaults

func (m *Module) ApplyDefaults()

func (*Module) DatasourceInfo

func (m *Module) DatasourceInfo() []types.DatasourceInfo

DatasourceInfo returns the discovered ethnode datasource. Ethnode is a single type-level entry rather than a named list: the proxy relays to any {network}/{instance} host on demand and holds no enumerable instance list.

func (*Module) Examples

func (m *Module) Examples() map[string]types.ExampleCategory

Examples returns query examples for ethnode.

func (*Module) Init

func (m *Module) Init(_ []byte) error

func (*Module) InitFromDiscovery

func (m *Module) InitFromDiscovery(datasources []types.DatasourceInfo) error

InitFromDiscovery enables the module if an ethnode datasource exists. Safe to call repeatedly: it replaces the stored list so the proxy client's periodic refresh propagates without a restart.

func (*Module) Name

func (m *Module) Name() string

func (*Module) PythonAPIDocs

func (m *Module) PythonAPIDocs() map[string]types.ModuleDoc

PythonAPIDocs returns API documentation for the ethnode Python module.

func (*Module) SandboxEnv

func (m *Module) SandboxEnv() (map[string]string, error)

SandboxEnv returns environment variables for the sandbox.

func (*Module) Start

func (m *Module) Start(_ context.Context) error

func (*Module) Stop

func (m *Module) Stop(_ context.Context) error

func (*Module) Validate

func (m *Module) Validate() error

Jump to

Keyboard shortcuts

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