Summary

The base wallet provider class

Since

0.2.0

Hierarchy (view full)

Constructors

Properties

isGrinderyWallet: boolean = true
methods: Partial<ProviderMethods> = ...

Summary

The list of supported provider methods.

rpc: Rpc
storage: SdkStorage = ...

Methods

  • Parameters

    • event: "accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message"

      Event name

    • Rest ...data: any[]

      Event data

    Returns Provider

    The instance of the class itself

    Summary

    Emits an event

  • Parameters

    • event: "accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message"

      Event name

    • callback: Function

      Callback function

    Returns Provider

    The instance of the class itself

    Summary

    Adds a listener to the event

  • Parameters

    • event: "accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message"

      Event name

    • callback: Function

      Callback function

    Returns Provider

    The instance of the class itself

    Summary

    Removes a listener from the event

  • Private

    Returns Promise<void>

    Summary

    Restores the pairing process if pairing token is stored in the local storage

  • Private

    Returns Promise<void>

    Summary

    Restores the session if session Id is stored in the local storage

  • Parameters

    Returns void

    void

    Summary

    Sends a request to the provider (legacy)

    Deprecated

    Use request method instead

    Since

    0.5.4

  • Parameters

    • chainId: any

      Chain id in hex format

    Returns Promise<null>

    Null on success

    Summary

    Switches the chain

    Since

    0.3.0