Skip to main content

Overview

Signs and broadcasts a transaction using the specified wallet account. Behavior differs depending on the type of wallet:
  • Connected wallets
  • Ethereum: delegates to the wallet’s native signAndSendTransaction method.
  • Does not require an rpcUrl (the wallet handles broadcasting).
  • Solana: signs the transaction locally with the connected wallet, but requires an rpcUrl to broadcast it.
  • Other chains: not supported; will throw an error.
  • Embedded wallets
  • Signs the transaction using the Turnkey API.
  • Requires an rpcUrl to broadcast the signed transaction, since Turnkey does not broadcast directly.
  • Broadcasts the transaction using a JSON-RPC client and returns the resulting transaction hash/signature.
  • Optionally allows stamping with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).

Package: core

Defined in: clients/core.ts:2404

Parameters

params
SignAndSendTransactionParams
required

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to a transaction signature or hash.
I