CCC Docs
    Preparing search index...

    Interface representing a provider for interacting with accounts and signing messages.

    interface Provider {
        request: ReiA.RequestMethod;
        on: ReiA.OnMethod;
        isConnected(): Promise<boolean>;
        off(eventName: string, listener: (...args: unknown[]) => unknown): void;
    }
    Index

    Properties

    Methods

    Properties

    Sends a request to the provider.

    Adds an event listener to the provider.

    Methods

    • Checks if rei wallet is connected.

      Returns Promise<boolean>

      A promise that resolves to true if connected, false otherwise.

    • Removes an event listener from the provider.

      Parameters

      • eventName: string

        The name of the event to remove the listener from.

      • listener: (...args: unknown[]) => unknown

        The listener function to remove.

      Returns void

      The provider instance.