Polkadot Apps
    Preparing search index...

    Interface SignerProvider

    Interface that all signer providers must implement.

    Providers are responsible for discovering accounts and creating signers from a specific source (Host API, browser extensions, dev accounts).

    interface SignerProvider {
        type: ProviderType;
        connect(
            signal?: AbortSignal,
        ): Promise<Result<SignerAccount[], SignerError>>;
        disconnect(): void;
        onAccountsChange(
            callback: (accounts: SignerAccount[]) => void,
        ): Unsubscribe;
        onStatusChange(callback: (status: ConnectionStatus) => void): Unsubscribe;
    }

    Implemented by

    Index

    Properties

    Unique identifier for this provider type.

    Methods