Function Signature
Description
Signs an SVM transaction using the specified wallet address. This function requires a valid session ID for authentication and returns the signed transaction object.Parameters
Required Parameters
senderAddress
(string
) - The wallet address to sign withtransaction
(Transaction
) - The transaction to sign (Solana web3.js format)
Returns
Promise<VersionedTransaction | Transaction>
- The signed transaction object
Example
Error Handling
Security Considerations
- Transaction Validation: Always validate transaction parameters before signing
- Session Management: Implement proper session management
- Network Verification: Ensure you’re signing transactions for the correct Solana network
Related Functions
signMessage()
- Sign a message instead of a transactioncreateWalletAccount()
- Create a new wallet account