Skip to main content

Function

signTransactionWithEncryptedKey(params)
Signs an EVM or Solana transaction with a stored wrapped key. Optionally broadcasts when the Lit Action supports it.

Parameters

SessionSigsMap
required
LitClient
required
'evm' | 'solana'
required
string
required
object
required
Serialized transaction payload. For Solana include chain/serializedTransaction; for EVM include chain, chainId, and toAddress/value.
boolean
When true, the Lit Action attempts to submit the signed transaction to the configured RPC endpoint and returns the transaction hash.
boolean
Set to true when providing a Solana versioned transaction payload.
bigint
Optional price ceiling for the Lit Action.

Returns

string
Signed transaction (or hash when broadcasting is enabled).

Example