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
Parameters
| Parameter | Type |
|---|---|
...inputs | readonly Readonly<Omit<SolanaSignTransactionInput, "account" | "chain" | "options"> & object>[] |
Returns
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
Parameters
| Parameter | Type |
|---|---|
...inputs | readonly Readonly<Omit<SolanaSignTransactionInput, "account" | "chain" | "options"> & object>[] |
Returns
Promise<readonly SolanaSignTransactionOutput[]>