Skip to content

AlchemySignerWebClient

Initializes a new instance with the given parameters, setting up the connection, iframe configuration, and WebAuthn stamper.

Import

import { AlchemySignerWebClient } from "@account-kit/signer";

Usage

import { AlchemySignerWebClient } from "@account-kit/signer";
 
const client = new AlchemySignerWebClient({
  connection: {
    apiKey: "your-api-key",
  },
  iframeConfig: {
    iframeContainerId: "signer-iframe-container",
  },
});

Parameters

params

AlchemySignerClientParams the parameters required to initialize the client

params.connection

ConnectionConfig The connection details needed to connect to the service

params.iframeConfig

{ iframeElementId?: string; iframeContainerId: string } The configuration details for setting up the iframe stamper

params.rpId

string The relying party ID, defaulting to the current hostname if not provided

params.rootOrgId

string The root organization ID