Interface Node<API, Options, Info, InitArgs, StartArgs, StopArgs, CleanupArgs>

interface Node<API, Options, Info, InitArgs, StartArgs, StopArgs, CleanupArgs> {
    api: API;
    options: Options;
    cleanup(args?): Promise<void>;
    info(): Promise<Info>;
    init(args?): Promise<void>;
    start(args?): Promise<void>;
    stop(args?): Promise<void>;
}

Type Parameters

  • API = unknown
  • Options = NodeOptions
  • Info extends Record<string, any> = Record<string, any>
  • InitArgs = unknown
  • StartArgs = unknown
  • StopArgs = unknown
  • CleanupArgs = unknown

Hierarchy (view full)

Properties

Methods

Properties

api: API
options: Options

Methods

  • Perform any pre-start tasks such as creating a repo, generating a peer id, etc

    Parameters

    Returns Promise<void>