signAndSendTransaction: Sign and send a single transactionsignAndSendSponsoredTransaction: Sign and send a sponsored (gasless) transactionsignTransaction: Sign a transactionsignAllTransactions: Sign multiple transactions
Usage
Sponsored Transactions
signAndSendSponsoredTransaction sponsors the transaction via Dynamic’s gas sponsorship API before signing and sending. This is only available for embedded (WaaS) wallets and requires SVM Gas Sponsorship to be enabled in the dashboard. See SVM Gas Sponsorship for details.
Error Handling
-
If the specified wallet account is not a
SolanaWalletAccount, it will throw aNotSolanaProviderErrorerror. -
If the specified wallet account is not available for signing (e.g. wallet is an external wallet and the specific account is not the active one in the wallet app, or not connected to your app),
it will throw a
WalletAccountNotSelectedErrorerror, stating what is the expected account address to be used, and the active account address in the wallet app (if available). -
If
signAndSendSponsoredTransactionis called on a wallet that does not support sponsorship (e.g. an external wallet), it will throw aSponsorTransactionError.