Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InjectedProvider

Hierarchy

  • ProviderInterface
    • InjectedProvider

Index

Properties

Readonly hasSubscriptions

hasSubscriptions: boolean

Readonly isConnected

isConnected: boolean

listProviders

listProviders: () => Promise<ProviderList>

Type declaration

startProvider

startProvider: (key: string) => Promise<ProviderMeta>

Type declaration

Methods

clone

  • clone(): ProviderInterface
  • Returns ProviderInterface

connect

  • connect(): Promise<void>
  • Returns Promise<void>

disconnect

  • disconnect(): Promise<void>

on

  • on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void
  • Parameters

    • type: ProviderInterfaceEmitted
    • sub: ProviderInterfaceEmitCb

    Returns () => void

      • (): void
      • Returns void

send

  • send<T>(method: string, params: unknown[]): Promise<T>
  • Type parameters

    • T = any

    Parameters

    • method: string
    • params: unknown[]

    Returns Promise<T>

subscribe

  • subscribe(type: string, method: string, params: unknown[], cb: ProviderInterfaceCallback): Promise<number | string>
  • Parameters

    • type: string
    • method: string
    • params: unknown[]
    • cb: ProviderInterfaceCallback

    Returns Promise<number | string>

unsubscribe

  • unsubscribe(type: string, method: string, id: number | string): Promise<boolean>
  • Parameters

    • type: string
    • method: string
    • id: number | string

    Returns Promise<boolean>

Generated using TypeDoc