Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BootstrapOptions

Setup discovery method used to bootstrap.

Only one method is used. default, peers, getPeers and enr options are mutually exclusive.

Hierarchy

  • BootstrapOptions

Index

Properties

default?: boolean

Use the default discovery method. Overrides all other options but maxPeers

The default discovery method is likely to change overtime as new discovery methods are implemented.

default

false

enrUrl?: string

An EIP-1459 ENR Tree URL. For example: "enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.nodes.vac.dev"

maxPeers?: number

The maximum of peers to connect to as part of the bootstrap process.

default

Bootstrap.DefaultMaxPeers

peers?: string[]

Multiaddrs of peers to connect to.

Methods

  • getPeers(): Promise<Multiaddr[] | string[]>

Generated using TypeDoc