From 388c1b518f0f237d777ec010f294ee580024c22d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 21 May 2020 13:09:12 -0700 Subject: export psbt with no fee --- routes/liquid/send.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'routes/liquid/send.js') diff --git a/routes/liquid/send.js b/routes/liquid/send.js index 5bfea060..aa2763d1 100644 --- a/routes/liquid/send.js +++ b/routes/liquid/send.js @@ -4,15 +4,14 @@ module.exports = async (req, res) => { let { user } = req; let { address, - tx: { hex } + tx: { psbt } } = req.body; const isChange = async address => (await lq.getAddressInfo(address)).ismine && (!Object.keys(addresses).includes(address) || address === user.liquid); - const unblinded = await lq.unblindRawTransaction(hex); - tx = await lq.decodeRawTransaction(unblinded.hex); + tx = await lq.decodePsbt(psbt); let totals = {}; let change = {}; -- cgit v1.2.3