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 specified wallet address. This function requires external server key shares and a valid session ID for authentication.Parameters
Required Parameters
senderAddress(string) - The wallet address to sign with (must include0xprefix)transaction(TransactionSerializable) - The transaction to sign (viem format)
Optional Parameters
password(string) - Wallet password (if wallet is password-protected)externalServerKeyShares(ServerKeyShare[]) - Array of external server key shares
Returns
Promise<string>- The signed transaction as a hex string
Example
Key Share Format
Error Handling
Security Considerations
- Transaction Validation: Always validate transaction parameters before signing
- Key Share Security: Keep external server key shares secure
- Session Management: Implement proper session management
- Network Verification: Ensure you’re signing transactions for the correct network
Related Functions
signMessage()- Sign a message instead of a transactioncreateWalletAccount()- Create a new wallet account