Closed bordalix closed 8 months ago
Fee calculation is always above (>50%) the minimum necessary.
One possible solution is to create the transaction twice:
Math.ceil((tx.virtualSize() + tx.ins.length) * satsPerByte);
Fee calculation is always above (>50%) the minimum necessary.
One possible solution is to create the transaction twice:
Math.ceil((tx.virtualSize() + tx.ins.length) * satsPerByte);