OptionaladdressesAddresses for transport listening and to advertise to the network
OptionalconnectionConnection encrypters ensure that data sent over connections cannot be eavesdropped on, and that the remote peer possesses the private key that corresponds to the public key that it's Peer ID is derived from.
OptionalconnectionA connection gater can deny new connections based on user criteria
Optionalconnectionlibp2p Connection Manager configuration
Optionalconnectionlibp2p Connection Monitor configuration
OptionalcontentContent routers provide implementations for content routing queries
OptionaldatastoreAn optional datastore to persist peer information, DHT records, etc.
An in-memory datastore will be used if one is not provided.
OptionaldnsAn optional DNS resolver configuration. If omitted the default DNS resolver
for the platform will be used which means node:dns on Node.js and
DNS-JSON-over-HTTPS for browsers using Google and Cloudflare servers.
OptionalloggerAn optional logging implementation that can be used to write runtime logs.
Set the DEBUG env var or the debug key on LocalStorage to see logs.
OptionalnodeMetadata about the node - implementation name, version number, etc
OptionalpeerPeer discovery mechanisms allow finding peers on the network
OptionalpeerPeer routers provide implementations for peer routing queries
Optionalpeerlibp2p PeerStore configuration
OptionalprivateThe private key is used in cryptographic operations and the Peer ID derived from it's corresponding public key is used to identify the node to other peers on the network.
If this is not passed a new Ed25519 private key will be generated.
OptionalservicesArbitrary libp2p modules
OptionalstreamStream muxers allow the creation of many data streams over a single connection.
Optionaltransportlibp2p transport manager configuration
OptionaltransportsTransports are low-level communication channels
OptionalconnectionA ConnectionProtector can be used to create a secure overlay on top of the network using pre-shared keys
OptionalmetricsA Metrics implementation can be supplied to collect metrics on this node
For Libp2p configurations and modules details read the Configuration Document.