Hierarchy

Constructors

Properties

Methods

Constructors

  • Creates an instance of GridcoinRPC

    Memberof

    GridcoinRPC

    Parameters

    • config: IParameters
    • Optional rpc: IJsonRPC

      Dependency injection for the client class

    Returns RPCBase

Properties

client: IJsonRPC

Methods

  • Protected

    Send command to the rpc server, get response Transform response field to the camelcase

    Returns

    Throws

    Memberof

    RPCBase

    Type Parameters

    • T

    Parameters

    Returns Promise<T>

  • Protected

    Same as call(), for responses that use data (addresses, CPIDs, project names, hashes) as object keys. Keys of the objects at dataKeyPaths are returned verbatim; see camelCaseKeys for the path syntax.

    Returns

    Throws

    Memberof

    RPCBase

    Type Parameters

    • T

    Parameters

    • dataKeyPaths: readonly string[]
    • command: string
    • Rest ...parameters: callParameters[]

    Returns Promise<T>

  • Private

    Normalise undefined parameters for a positional JSON-RPC call

    Trailing undefined parameters are dropped. An undefined parameter followed by a defined one is sent as null, so the parameters after it keep their positions; the daemon treats null as "not provided" for optional arguments.

    Returns

    Memberof

    RPCBase

    Parameters

    Returns filteredCallParameters[]

Generated using TypeDoc