# Functions
CheckTimeouts ensures that timeout values are meaningful.
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
DefaultHTTPEndpoint returns the HTTP endpoint used by default.
DefaultIPCEndpoint returns the IPC path used by default.
DefaultWSEndpoint returns the websocket endpoint used by default.
New creates a new P2P node, ready for protocol registration.
NewHTTPHandlerStack returns wrapped http-related handlers.
NewJWTAuth creates an rpc client authentication provider that uses JWT.
NewWSHandlerStack returns a wrapped ws-related handler.
ObtainJWTSecret loads the jwt-secret from the provided config.
RegisterApis checks the given modules' availability, generates an allowlist based on the allowed modules, and then registers all of the APIs exposed by the services.
StartHTTPEndpoint starts the HTTP RPC endpoint.
# Constants
Default host interface for the authenticated apis.
Default port for the authenticated apis.
Default host interface for the HTTP RPC server.
Default TCP port for the HTTP RPC server.
Default host interface for the websocket RPC server.
Default TCP port for the websocket RPC server.
# Variables
Default cors domain for the authenticated apis.
Default origins for the authenticated apis.
Default prefix for the authenticated apis.
Default virtual hosts for the authenticated apis.
DefaultConfig contains reasonable default settings.
# Interfaces
Lifecycle encompasses the behavior of services that can be started and stopped on the node.