Create Wallet

Enables the creation of a Smart Wallet using Alchemy Signer. It allows applications to authenticate users and facilitate signature operations on their behalf. A Smart Wallet is either an on-chain Modular Account with Alchemy Signer as the owner, a standalone EOA signer managed through Alchemy Signer, or a standalone Solana Wallet managed through the Alchemy Signer.

Headers

AuthorizationstringRequired

Request

This endpoint expects an object.
emailstringOptional
Used for user authentication when passkey is not provided. Specifies the user's email address.
passkeyobjectOptional

Used for authentication when email is not provided. Enables passkey-based authentication.

targetPublicKeystringOptional

Authentication of a client is done via an HPKE flow that allows the client and TEE to exchange an encrypted bundle without revealing it to a middleman (you, us, or Turnkey). The targetPublicKey is the public key that the client uses to decrypt the shared secret.

See more in the Turnkey Docs.

expirationSecondsstringOptional

Specifies the duration of the login session in seconds. After this period, the user has to re-login to refresh their session. The default value is 900 seconds (15 minutes).

redirectParamsstringOptional
Redirect parameters appended to the magic link.

Response

Wallet creation response.
orgIdstring
The organization ID associated with the user and application, enabling the management of Smart Wallets.
userIdstring or null
A unique identifier for the user.
addressstring or null
The EVM address of the signer.
solanaAddressstring or null
The Solana address of the signer.
otpIdstring or null
OTP request identifier