validateOutputAmount( amountSats:any, maxSats?:string|number, minSats?:string|number|BigNumber, ): |"" |"Total input amount must be positive." |"Invalid total input amount." |"Invalid output amount." |"Output amount must be positive." |"Output amount is too small." |"Output amount is too large."
Validate the given output amount (in Satoshis).
Must be a parseable as a number.
Cannot be negative (zero is OK).
Cannot be smaller than the limit set by DUST_LIMIT_SATS.
Cannot exceed the total input amount (this check is only run if
inputsTotalSats is passed.
TODO: minSats accepting a BigNumber is only to maintain some backward
compatibility. Ideally, the arg would not expose this lib's dependencies to
the caller. It should be made to only accept number or string.
Returns |"" |"Total input amount must be positive." |"Invalid total input amount." |"Invalid output amount." |"Output amount must be positive." |"Output amount is too small." |"Output amount is too large."
Validate the given output amount (in Satoshis).
Must be a parseable as a number.
Cannot be negative (zero is OK).
Cannot be smaller than the limit set by
DUST_LIMIT_SATS.Cannot exceed the total input amount (this check is only run if
inputsTotalSatsis passed.TODO: minSats accepting a BigNumber is only to maintain some backward compatibility. Ideally, the arg would not expose this lib's dependencies to the caller. It should be made to only accept number or string.