diff options
| author | Adam Soltys <[email protected]> | 2020-03-09 10:59:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-09 10:59:10 -0700 |
| commit | 1ae4c03116ce3a650af88f78a4b5d19581238c71 (patch) | |
| tree | 10fce06803f0a13c5ba990f08d687c4deced6186 /payments.js | |
| parent | ddb61fe99e4103c1ba8a5d29e3aa66a580c63bf6 (diff) | |
| download | coinos-server-1ae4c03116ce3a650af88f78a4b5d19581238c71.tar.gz coinos-server-1ae4c03116ce3a650af88f78a4b5d19581238c71.zip | |
fee estimation
Diffstat (limited to 'payments.js')
| -rw-r--r-- | payments.js | 6 |
1 files changed, 4 insertions, 2 deletions
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({ |
