isTransactionMessageWithSingleSendingSigner
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 TransactionMessage & TransactionMessageWithFeePayer<string> | The inferred type of the transaction message provided. |
Parameters
| Parameter | Type |
|---|---|
transaction | TTransactionMessage |
Returns
transaction is TransactionMessageWithSingleSendingSigner & TTransactionMessage