@silencelaboratories/walletprovider-sdk
    Preparing search index...

    Class WalletProviderServiceClient

    The Websocket client to the Wallet Provider backend service. All requests are relayed by this entity to the MPC network.

    Implements

    Index

    Constructors

    Properties

    apiVersion: ApiVersion = 'v1'
    walletProviderUrl: string

    Methods

    • Parameters

      • slug: Slug
      • payload: RequestPayloadV1
      • authModule: AuthModule

      Returns Promise<string>

    • Parameters

      • slug: Slug
      • payload: RequestPayloadV2
      • authModule: AuthModule

      Returns Promise<string>

    • Common function to transition to finished state and reject the promise. Also handles closing the connection if it's not already closed/closing.

      Parameters

      • connection: WebSocket

        The WebSocket connection to close.

      • state: ProtocolState

        The current protocol state.

      • error: any

        The error to reject with.

      • source: string

        Where the error originated (for logging/clarity).

      • reject: (error: Error) => void

        The promise reject function to use.

      Returns void

    • Parameters

      • __namedParameters: { authModule: AuthModule; payload: KeyRefreshRequest }

      Returns Promise<KeygenResponse>

    • Parameters

      • __namedParameters: { authModule: AuthModule; setup: SignSetupOpts }

      Returns Promise<SignResponse[]>