Hierarchy

  • ExtendedProviderEngine
    • default

Constructors

Properties

bridge: string = 'https://bridge.walletconnect.org'
qrcode: boolean = true
qrcodeModal: {
    open: ((uri: string, cb: any, qrcodeModalOptions?: IQRCodeModalOptions) => void);
    close: (() => void);
} = QRCodeModal

Type declaration

  • open: ((uri: string, cb: any, qrcodeModalOptions?: IQRCodeModalOptions) => void)
      • (uri: string, cb: any, qrcodeModalOptions?: IQRCodeModalOptions): void
      • Parameters

        • uri: string
        • cb: any
        • Optional qrcodeModalOptions: IQRCodeModalOptions

        Returns void

  • close: (() => void)
      • (): void
      • Returns void

qrcodeModalOptions: undefined | IQRCodeModalOptions = undefined
rpc: null | IRPCMap = null
rpcWss: IRPCMap
http: null | HTTPConnection = null
wc: IConnector
isConnecting: boolean = false
connected: boolean = false
connectCallbacks: any[] = []
accounts: string[] = []
chainId: number
rpcUrl: string = ''
websocketProvider: TypedWebsocketProviderWithConstructor
networkId: number
infuraId?: string

Accessors

Methods

  • Parameters

    • payload: any
    • Optional callback: any

    Returns Promise<any>

  • Parameters

    • payload: any

    Returns Promise<{
        id: any;
        jsonrpc: any;
        result: any;
    }>

  • Parameters

    • payload: any

    Returns Promise<IJsonRpcResponseSuccess>

  • Parameters

    • payload: any

    Returns Promise<IJsonRpcResponseSuccess>

  • Parameters

    • payload: any
    • result: any

    Returns {
        id: any;
        jsonrpc: any;
        result: any;
    }

    • id: any
    • jsonrpc: any
    • result: any
  • Parameters

    • opts: {
          disableSessionCreation?: boolean;
      } = {}
      • Optional disableSessionCreation?: boolean

    Returns Promise<IConnector>

  • Parameters

    • chainId: number
    • rpcUrl: undefined | string = ''

    Returns void

  • Returns {
        getAccounts: ((cb: any) => Promise<void>);
        processMessage: ((msgParams: {
            from: string;
            data: string;
        }, cb: any) => Promise<void>);
        processPersonalMessage: ((msgParams: {
            from: string;
            data: string;
        }, cb: any) => Promise<void>);
        processSignTransaction: ((txParams: any, cb: any) => Promise<void>);
        processTransaction: ((txParams: any, cb: any) => Promise<void>);
        processTypedMessage: ((msgParams: {
            from: string;
            data: string;
        }, cb: any) => Promise<void>);
    }

    • getAccounts: ((cb: any) => Promise<void>)
        • (cb: any): Promise<void>
        • Parameters

          • cb: any

          Returns Promise<void>

    • processMessage: ((msgParams: {
          from: string;
          data: string;
      }, cb: any) => Promise<void>)
        • (msgParams: {
              from: string;
              data: string;
          }, cb: any): Promise<void>
        • Parameters

          • msgParams: {
                from: string;
                data: string;
            }
            • from: string
            • data: string
          • cb: any

          Returns Promise<void>

    • processPersonalMessage: ((msgParams: {
          from: string;
          data: string;
      }, cb: any) => Promise<void>)
        • (msgParams: {
              from: string;
              data: string;
          }, cb: any): Promise<void>
        • Parameters

          • msgParams: {
                from: string;
                data: string;
            }
            • from: string
            • data: string
          • cb: any

          Returns Promise<void>

    • processSignTransaction: ((txParams: any, cb: any) => Promise<void>)
        • (txParams: any, cb: any): Promise<void>
        • Parameters

          • txParams: any
          • cb: any

          Returns Promise<void>

    • processTransaction: ((txParams: any, cb: any) => Promise<void>)
        • (txParams: any, cb: any): Promise<void>
        • Parameters

          • txParams: any
          • cb: any

          Returns Promise<void>

    • processTypedMessage: ((msgParams: {
          from: string;
          data: string;
      }, cb: any) => Promise<void>)
        • (msgParams: {
              from: string;
              data: string;
          }, cb: any): Promise<void>
        • Parameters

          • msgParams: {
                from: string;
                data: string;
            }
            • from: string
            • data: string
          • cb: any

          Returns Promise<void>

  • Parameters

    • event: string
    • handler: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Parameters

    • payload: JSONRPCRequestPayload
    • callback: ((error: null | Error, response: JSONRPCResponsePayload) => void)
        • (error: null | Error, response: JSONRPCResponsePayload): void
        • Parameters

          • error: null | Error
          • response: JSONRPCResponsePayload

          Returns void

    Returns void

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • eventName: string
    • Rest ...args: any[]

    Returns void

Generated using TypeDoc