aboutsummaryrefslogtreecommitdiffstats
path: root/estimateBitcoinFee.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-03-10 15:11:47 -0700
committerAdam Soltys <[email protected]>2020-03-10 15:11:47 -0700
commitd7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01 (patch)
tree04f46e3a1b3f787c57a64241522044474a3c16d6 /estimateBitcoinFee.js
parent629701a87138e2fedb69e260bc3951cb567b322c (diff)
downloadcoinos-server-d7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01.tar.gz
coinos-server-d7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01.zip
parse tx with javascript
Diffstat (limited to 'estimateBitcoinFee.js')
-rw-r--r--estimateBitcoinFee.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/estimateBitcoinFee.js b/estimateBitcoinFee.js
index 215a180d..b32a0dc6 100644
--- a/estimateBitcoinFee.js
+++ b/estimateBitcoinFee.js
@@ -5,7 +5,7 @@ const SATS = 100000000;
module.exports = (app, bc, db, emit) => async (req, res) => {
let { user } = req;
- let { address, amount, confTarget, feeRate, mode } = req.body;
+ let { address, amount, feeRate } = req.body;
let tx, fee;
try {
@@ -20,8 +20,6 @@ module.exports = (app, bc, db, emit) => async (req, res) => {
}
if (feeRate) params["feeRate"] = (parseInt(feeRate) / SATS * 1000).toFixed(8);
- if (confTarget) params["conf_target"] = parseInt(confTarget);
- if (mode) params["estimate_mode"] = mode;
tx = await bc.fundRawTransaction(tx, params);
res.send({ tx });