tx.assertvalidoutput
Home > @blaze-cardano/tx > assertValidOutput
assertValidOutput() function
Utility function to test the validity of a TransactionOutput.
Signature:
assertValidOutput: (output: TransactionOutput, coinsPerUtxoByte: number, maxValueSize: number) => void | never
Parameters
Parameter |
Type |
Description |
---|---|---|
output |
TransactionOutput |
The TransactionOutput to test. |
coinsPerUtxoByte |
number |
From the environment's protocol params. |
maxValueSize |
number |
From the environment's protocl params. |
Returns:
void | never
Exceptions
If the output does not satisfy the minAda required, or the output is larger than the maxValueSize, it will throw an error.