Skip to main content

Overview

Builds and signs a wallet login request without submitting it to Turnkey.
  • This function prepares a signed request for wallet authentication, which can later be used
to log in or sign up a user with Turnkey.
  • It initializes the wallet stamper, ensures a valid session public key (generating one if needed),
and signs the login intent with the connected wallet.
  • For Ethereum wallets, derives the public key from the stamped request header.
  • For Solana wallets, retrieves the public key directly from the connected wallet.
  • The signed request is not sent to Turnkey immediately; it is meant to be used in a subsequent flow
(e.g., loginOrSignupWithWallet) where sub-organization existence is verified or created first.

Package: core

Defined in: clients/core.ts:820

Parameters

params
BuildWalletLoginRequestParams
required

Response

A successful response returns the following fields:
returns
BuildWalletLoginRequestResult
required
A promise resolving to an object containing:
  • signedRequest: the signed wallet login request.
  • publicKey: the public key associated with the signed request.