blockarchive

package
v0.33.0-rc.1 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

View Source
const DefaultURL = "https://block-archiver.analytics.production.platform.ethpandaops.io"

DefaultURL is the production block-archiver public endpoint.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// URL is the base URL of the block-archiver service. Defaults to the
	// production endpoint.
	URL string `yaml:"url,omitempty"`
}

Config holds the Block Archive module configuration. Block Archive is a public service and requires no credentials.

type Module

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

Module implements the module.Module interface for the Block Archive module.

func New

func New() *Module

New creates a new Block Archive module.

func (*Module) ApplyDefaults

func (m *Module) ApplyDefaults()

func (*Module) DatasourceInfo

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

DatasourceInfo returns empty since the block archive is a single hosted service, not a per-network datasource.

func (*Module) DefaultEnabled

func (m *Module) DefaultEnabled() bool

DefaultEnabled implements module.DefaultEnabled. Block Archive is enabled by default since it requires no configuration.

func (*Module) Examples

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

func (*Module) Init

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

func (*Module) Name

func (m *Module) Name() string

func (*Module) PythonAPIDocs

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

func (*Module) SandboxEnv

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

SandboxEnv returns environment variables for the sandbox. Returns ETHPANDAOPS_BLOCK_ARCHIVE_URL so the Python wrapper knows the archive base URL. Network discovery happens server-side at call time.

func (*Module) Start

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

func (*Module) Stop

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

func (*Module) URL

func (m *Module) URL() string

URL returns the configured block-archiver base URL.

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