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 NominalType<"brand", "TransactionMessageWithSingleSendingSigner"> & Partial<Pick<TransactionMessageWithFeePayer<string> | TransactionMessageWithFeePayerSigner<string, TransactionSigner<string>>, "feePayer">> & Readonly<{ instructions: readonly (Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]> & InstructionWithSigners<TransactionSigner<string>, readonly AccountMetaWithSigner<TransactionSigner<string>>[]>)[] }> & TTransactionMessage