useWalletAccountTransactionSigner
Call Signature
Use this to get a TransactionSigner capable of signing serialized transactions with the private key of a UiWalletAccount
Type Parameters
| Type Parameter |
|---|
TWalletAccount extends UiWalletAccount |
Parameters
| Parameter | Type |
|---|---|
uiWalletAccount | TWalletAccount |
chain | OnlySolanaChains<TWalletAccount["chains"]> |
Returns
TransactionModifyingSigner<TWalletAccount["address"]>
A TransactionModifyingSigner. This is a conservative assumption based on the fact that your application can not control whether or not the wallet will modify the transaction before signing it (eg. to add guard instructions, or a priority fee budget). Otherwise this method could more specifically return a TransactionSigner or a TransactionPartialSigner.
Example
Call Signature
Use this to get a TransactionSigner capable of signing serialized transactions with the private key of a UiWalletAccount
Type Parameters
| Type Parameter |
|---|
TWalletAccount extends UiWalletAccount |
Parameters
| Parameter | Type |
|---|---|
uiWalletAccount | TWalletAccount |
chain | `solana:${string}` |
Returns
TransactionModifyingSigner<TWalletAccount["address"]>
A TransactionModifyingSigner. This is a conservative assumption based on the fact that your application can not control whether or not the wallet will modify the transaction before signing it (eg. to add guard instructions, or a priority fee budget). Otherwise this method could more specifically return a TransactionSigner or a TransactionPartialSigner.