createTransactionSignerFromWalletAccount
Creates a TransactionModifyingSigner from a UiWalletAccount.
This function provides a bridge between wallet-standard UiWalletAccount and the
TransactionModifyingSigner interface, allowing any wallet that implements the
solana:signTransaction feature to be used as a transaction signer.
Type Parameters
| Type Parameter |
|---|
TWalletAccount extends UiWalletAccount |
Parameters
| Parameter | Type | Description |
|---|---|---|
uiWalletAccount | TWalletAccount | The wallet account to create a signer from. |
chain | | "solana:mainnet" | "solana:devnet" | "solana:testnet" | "solana:localnet" | The Solana chain identifier (e.g., 'solana:devnet', 'solana:mainnet'). |
Returns
TransactionModifyingSigner<TWalletAccount["address"]>
A TransactionModifyingSigner that signs transactions using the wallet.
Throws
If the wallet account does not support the specified chain.
Example
See
- TransactionModifyingSigner
- createTransactionSendingSignerFromWalletAccount