Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RPC

RPC is responsible for calling JSON-RPC 2.0 methods supported by a remote node.

export
class

RPC

extends

{Namespace}

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected client

client: RPCClient

Methods

echo

  • echo(params?: any | null): Promise<any>
  • Test JSON-RPC 2.0 service by sending messages that are echoed back.

    export
    class

    RPC

    Parameters

    • Optional params: any | null

    Returns Promise<any>

methods

  • methods(): Promise<RpcMethod[]>
  • Get all JSON-RPC 2.0 methods supported by the service

    memberof

    RPC

    Returns Promise<RpcMethod[]>

stop

  • stop(): Promise<boolean>
  • Stop the JSON-RPC 2.0 service

    export
    class

    RPC

    Returns Promise<boolean>