getSigner
method.
Usage
Signer methods
signAllTransactions
: Sign multiple transactions using the specified wallet accountsignAndSendTransaction
: Sign and send a transaction using the specified wallet accountsignMessage
: Sign a message using the specified wallet accountsignTransaction
: Sign a transaction using the specified wallet account
Error Handling
-
If the specified wallet account is not a
SolanaWalletAccount
, it will throw anNotSolanaProviderError
error. -
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 an
WalletAccountNotSelectedError
error, stating what is the expected account address to be used, and the active account address in the wallet app (if available).