Functions
isTransactionMessageWithSingleSendingSigner
isTransactionMessageWithSingleSendingSigner<
TTransactionMessage
>(transaction
):transaction is TransactionMessageWithSingleSendingSigner & TTransactionMessage
Checks whether the provided transaction has exactly one TransactionSendingSigner.
This can be useful when using signAndSendTransactionMessageWithSigners to provide a fallback strategy in case the transaction message cannot be send using this function.
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
transaction is TransactionMessageWithSingleSendingSigner & TTransactionMessage