Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Signs an EVM transaction using the wallet identified by the suppliedwalletMetadata. The SDK is stateless — every call requires walletMetadata. If the wallet was created with backUpToDynamic: true, supply the password so the SDK can recover shares from backup when externalServerKeyShares is omitted.
Parameters
Required Parameters
walletMetadata(WalletMetadata) - Non-sensitive wallet metadata persisted fromcreateWalletAccount()/importPrivateKey(). The sender address comes fromwalletMetadata.accountAddress.transaction(TransactionSerializable) - The transaction to sign (viem format)
Optional Parameters
password(string) - Required if the wallet was created withbackUpToDynamic: true. Used for backup decryption whenexternalServerKeySharesis not provided.externalServerKeyShares(ServerKeyShare[]) - Caller-supplied plaintext shares. If omitted, the SDK recovers from backup usingpassword.
Returns
Promise<string>- The signed transaction as a hex string
Example
Error Handling
Related
WalletMetadata- The metadata object passed to every operationsignMessage()- Sign a message instead of a transactioncreateWalletAccount()- Create a new wallet account- Storage Best Practices - Where to cache metadata vs. vault shares