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 SVM transaction using the wallet identified by the suppliedwalletMetadata. The SDK is stateless — every call requires walletMetadata. Accepts a Transaction, VersionedTransaction, or hex string. Optionally requests gas sponsorship from Dynamic before signing.
Parameters
Required Parameters
walletMetadata(WalletMetadata) - Non-sensitive wallet metadata persisted fromcreateWalletAccount()/importPrivateKey(). The signer address comes fromwalletMetadata.accountAddress.transaction(VersionedTransaction | Transaction | string) - The transaction to sign
Optional Parameters
password(string) - Required if the wallet was created withbackUpToDynamic: true.externalServerKeyShares(ServerKeyShare[]) - Caller-supplied plaintext shares.sponsor(boolean) - Iftrue, requests gas sponsorship from Dynamic before signing. Requires aTransactionorVersionedTransaction(not a hex string).
Returns
Promise<string>- The signed transaction encoded as base58
Example
Related
WalletMetadata- The metadata object passed to every operationsignMessage()- Sign a message instead of a transactioncreateWalletAccount()- Create a new wallet account