assertIsSendableTransaction
Asserts that a given transaction has all the required conditions to be sent to the network.
From time to time you might acquire a Transaction from an untrusted network API or user input and you are not sure that it has all the required conditions to be sent to the network — such as being fully signed and within the size limit. This function can be used to assert that such a transaction is in fact sendable.
Type Parameters
Type Parameter |
---|
TTransaction extends Readonly <{ messageBytes : TransactionMessageBytes ; signatures : SignaturesMap ; }> |
Parameters
Parameter | Type |
---|---|
transaction | TTransaction |
Returns
asserts transaction is FullySignedTransaction & TransactionWithinSizeLimit & TTransaction