partiallySignTransactionMessageWithSigners
partiallySignTransactionMessageWithSigners<
TTransactionMessage
>(transactionMessage
,config?
):Promise
<TransactionFromTransactionMessage
<TTransactionMessage
>>
Extracts all TransactionSigners inside the provided transaction message and uses them to return a signed transaction.
It first uses all TransactionModifyingSigners sequentially before using all TransactionPartialSigners in parallel.
If a composite signer implements both interfaces, it will be used as a TransactionModifyingSigner if no other signer implements that interface. Otherwise, it will be used as a TransactionPartialSigner.
Type Parameters
Type Parameter | Description |
---|---|
TTransactionMessage extends Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> & TransactionMessageWithFeePayer<string> & TransactionMessageWithSigners | The inferred type of the transaction message provided. |
Parameters
Parameter | Type |
---|---|
transactionMessage | TTransactionMessage |
config? | BaseTransactionSignerConfig |
Returns
Promise
<TransactionFromTransactionMessage
<TTransactionMessage
>>
Example
It also accepts an optional AbortSignal that will be propagated to all signers.
Remarks
Finally, note that this function ignores TransactionSendingSigners as it does not send the transaction. Check out the signAndSendTransactionMessageWithSigners function for more details on how to use sending signers.