Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRpcClient

Handles invocation of JSONRPC requests and parses responses into observable streams.

Hierarchy

  • IRpcClient

Implemented by

Index

Methods

call

  • call<TRet, TParams>(method: string, params: TParams): Observable<TRet>
  • Invokes JSONRPC request and returns result.

    throws

    If JSONRPC responds with error.

    Type parameters

    • TRet

    • TParams = unknown

    Parameters

    • method: string

      The JSONRPC method name.

    • params: TParams

      The JSONRPC request parameters.

    Returns Observable<TRet>

    JSONRPC call result.

getEndPoint

  • getEndPoint(): string

setCredentials

  • setCredentials(credentials?: ICredentials): void

setEndPoint

  • setEndPoint(value: string): void

Generated using TypeDoc