From 1ae4c03116ce3a650af88f78a4b5d19581238c71 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Mar 2020 10:59:04 -0700 Subject: fee estimation --- payments.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'payments.js') diff --git a/payments.js b/payments.js index 10c3b541..c2d9d306 100644 --- a/payments.js +++ b/payments.js @@ -24,8 +24,10 @@ module.exports = async (app, auth, addresses, bc, db, emit, seen, payments) => { require("./sendPayment")(app, db, emit, seen, lnaraw, lnb) ); app.post("/payUser", auth, require("./payUser")(app, db, lna, lnb)); - app.post("/sendCoins", auth, require("./sendCoins")(app, bc, db, emit)); - app.post("/sendLiquid", auth, require("./sendLiquid")(app, db, emit)); + app.post("/sendCoins", auth, require("./sendCoins")(addresses, app, bc, db, emit)); + app.post("/estimateBitcoinFee", auth, require("./estimateBitcoinFee")(app, bc, db, emit)); + app.post("/sendLiquid", auth, require("./sendLiquid")(addresses, app, db, emit)); + app.post("/estimateLiquidFee", auth, require("./estimateLiquidFee")(app, db, emit)); app.post("/addInvoice", auth, require("./addInvoice")(app, db, lnb)); app.get("/payments", auth, async (req, res) => { const payments = await db.Payment.findAll({ -- cgit v1.2.3