useSignTransactions
Call Signature
Use this to get a function capable of signing one or more serialized transactions with the private key of a UiWalletAccount. This supports batching multiple transactions in a single wallet prompt when the wallet implementation allows it.
Type Parameters
| Type Parameter |
|---|
TWalletAccount extends UiWalletAccount |
Parameters
| Parameter | Type |
|---|---|
uiWalletAccount | TWalletAccount |
chain | OnlySolanaChains<TWalletAccount["chains"]> |
Returns
(...inputs) => Promise<readonly SolanaSignTransactionOutput[]>
Example
Call Signature
Use this to get a function capable of signing one or more serialized transactions with the private key of a UiWalletAccount. This supports batching multiple transactions in a single wallet prompt when the wallet implementation allows it.
Type Parameters
| Type Parameter |
|---|
TWalletAccount extends UiWalletAccount |
Parameters
| Parameter | Type |
|---|---|
uiWalletAccount | TWalletAccount |
chain | `solana:${string}` |
Returns
(...inputs) => Promise<readonly SolanaSignTransactionOutput[]>