Function connectToDaemonRpc

  • Create a client connected to monerod.

    Examples:

    let daemon = await moneroTs.connectToDaemonRpc("http://localhost:38081");


    let daemon = await moneroTs.connectToDaemonRpc({
       uri: "http://localhost:38081",
       username: "superuser",
       password: "abctesting123"
    });


    // start monerod as an internal process
    let daemon = await moneroTs.connectToDaemonRpc({
       cmd: ["path/to/monerod", ...params...],
    });

    Parameters

    • uriOrConfig: string | string[] | Partial<MoneroRpcConnection> | Partial<MoneroDaemonConfig>

      uri or rpc connection or config or terminal parameters to connect to monerod

    • Optional username: string

      username to authenticate with monerod

    • Optional password: string

      password to authenticate with monerod

    Returns Promise<MoneroDaemonRpc>

    the daemon RPC client

Generated using TypeDoc