Functions
useWalletAccountTransactionSendingSigner
Call Signature
useWalletAccountTransactionSendingSigner<
TWalletAccount
>(uiWalletAccount
,chain
):TransactionSendingSigner
<TWalletAccount
["address"
]>
Use this to get a TransactionSendingSigner capable of signing a serialized transaction with the private key of a UiWalletAccount and sending it to the network for processing.
Type Parameters
Type Parameter |
---|
TWalletAccount extends UiWalletAccount |
Parameters
Parameter | Type | Description |
---|---|---|
uiWalletAccount | TWalletAccount | - |
chain | OnlySolanaChains <TWalletAccount ["chains" ]> | The identifier of the chain the transaction is destined for. Wallets may use this to simulate the transaction for the user. |
Returns
TransactionSendingSigner
<TWalletAccount
["address"
]>
Example
Call Signature
useWalletAccountTransactionSendingSigner<
TWalletAccount
>(uiWalletAccount
,chain
):TransactionSendingSigner
<TWalletAccount
["address"
]>
Use this to get a TransactionSendingSigner capable of signing a serialized transaction with the private key of a UiWalletAccount and sending it to the network for processing.
Type Parameters
Type Parameter |
---|
TWalletAccount extends UiWalletAccount |
Parameters
Parameter | Type | Description |
---|---|---|
uiWalletAccount | TWalletAccount | - |
chain | `solana:${string}` | The identifier of the chain the transaction is destined for. Wallets may use this to simulate the transaction for the user. |
Returns
TransactionSendingSigner
<TWalletAccount
["address"
]>