Skip to main content

Overview

Signs a transaction using the specified wallet account. Behavior differs depending on the type of wallet:
  • Connected wallets
  • Ethereum: does not support raw transaction signing. Calling this function will throw an error instructing you to use signAndSendTransaction instead.
  • Solana: supports raw transaction signing via the connected wallet provider.
  • Other chains: not supported; will throw an error.
  • Embedded wallets
  • Delegates signing to the Turnkey API, which returns the signed transaction.
  • Supports all Turnkey-supported transaction types (e.g., Ethereum, Solana, Tron).
  • Optionally allows stamping with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).

Package: core

Defined in: clients/core.ts:2323

Parameters

params
SignTransactionParams
required

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to the signed transaction string.
I