chain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, p Preset)

Register adds a new chain preset to the global registry.

Types

type Preset

type Preset struct {
	ChainID   string
	BlockTime time.Duration // Average block time (affects polling interval)
	ReorgSafe uint64        // Recommended safety confirmations
	BatchSize uint64        // Recommended scan batch size
	Endpoint  string        // (Optional) Default public RPC
}

Preset defines the default behavior parameters for a chain

func Get

func Get(name string) (Preset, bool)

Get retrieves a preset configuration from the registry by its name.

Jump to

Keyboard shortcuts

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