Type alias Provider

Provider: {
    request: ((request) => Promise<any>);
    sendAsync: ((request, callback) => void);
    send: ((request, callbackOrParams?, callback?) => void);
    on: ((event, listener) => void);
    removeListener: ((event, listener) => void);
    isOpenfort: boolean;
}

Type declaration

  • request: ((request) => Promise<any>)
      • (request): Promise<any>
      • Parameters

        • request: RequestArguments

        Returns Promise<any>

  • sendAsync: ((request, callback) => void)
      • (request, callback): void
      • Parameters

        • request: JsonRpcRequestPayload | JsonRpcRequestPayload[]
        • callback: JsonRpcRequestCallback

        Returns void

  • send: ((request, callbackOrParams?, callback?) => void)
      • (request, callbackOrParams?, callback?): void
      • Parameters

        • request: string | JsonRpcRequestPayload | JsonRpcRequestPayload[]
        • Optional callbackOrParams: JsonRpcRequestCallback | any[]
        • Optional callback: JsonRpcRequestCallback

        Returns void

  • on: ((event, listener) => void)
      • (event, listener): void
      • Parameters

        • event: string
        • listener: ((...args) => void)
            • (...args): void
            • Parameters

              • Rest ...args: any[]

              Returns void

        Returns void

  • removeListener: ((event, listener) => void)
      • (event, listener): void
      • Parameters

        • event: string
        • listener: ((...args) => void)
            • (...args): void
            • Parameters

              • Rest ...args: any[]

              Returns void

        Returns void

  • isOpenfort: boolean

Generated using TypeDoc