Functions
assertIsTransactionMessageWithSingleSendingSigner
assertIsTransactionMessageWithSingleSendingSigner<
TTransactionMessage
>(transaction
):asserts transaction is TransactionMessageWithSingleSendingSigner & TTransactionMessage
Asserts that the provided transaction message has exactly one TransactionSendingSigner.
This can be useful when using the signAndSendTransactionMessageWithSigners function to ensure it will be able to select the correct signer to send the transaction.
Type Parameters
Type Parameter | Description |
---|---|
TTransactionMessage extends Readonly <{ instructions : readonly Instruction <string , readonly (AccountLookupMeta <string , string > | AccountMeta <string >)[]>[]; version : TransactionVersion ; }> & TransactionMessageWithFeePayer <string > | The inferred type of the transaction message provided. |
Parameters
Parameter | Type |
---|---|
transaction | TTransactionMessage |
Returns
asserts transaction is TransactionMessageWithSingleSendingSigner & TTransactionMessage