FeeAmount is a wrapper around a number that represents a fee amount in satoshis floating point.
The fee amount in floating point.
satoshis - Returns the fee amount in satoshis as a integer.
const fee = new FeeAmount(1.23456789);console.log(fee.value); // 1.23456789console.log(fee.satoshis); // 2 Copy
const fee = new FeeAmount(1.23456789);console.log(fee.value); // 1.23456789console.log(fee.satoshis); // 2
Readonly
FeeAmount is a wrapper around a number that represents a fee amount in satoshis floating point.
Param: value
The fee amount in floating point.
Method
satoshis - Returns the fee amount in satoshis as a integer.
Example