Skip to content

constructor

To initialize a TurnkeySigner, you must provide a set of parameters detailed below.

Usage

ts
import { TurnkeySigner } from "@alchemy/aa-signers/turnkey";
import { WebauthnStamper } from "@turnkey/webauthn-stamper";

// instantiates using the API Key stamper
const turnkeySigner = new TurnkeySigner({
  apiUrl: "api.turnkey.com",
  stamper: new WebauthnStamper({
    rpId: "your.app.xyz",
  }),
});

Returns

TurnkeySigner

A new instance of a TurnkeySigner.

Parameters

params: TurnkeyClientParams | { inner: TurnkeyClient }

You can either pass in a constructed TurnkeyClient object, or directly pass into the TurnkeySigner the TurnkeyClientParams used to construct a TurnkeyClient object.

TurnkeyClientParams takes in the following parameters: