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

Optional default

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

Optional enrUrl

enrUrl?: string

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

Optional maxPeers

maxPeers?: number

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

default

Bootstrap.DefaultMaxPeers

Optional peers

peers?: string[]

Multiaddrs of peers to connect to.

Methods

Optional getPeers

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

Generated using TypeDoc