diff options
| author | Adam Soltys <[email protected]> | 2020-05-21 13:09:12 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-21 13:09:17 -0700 |
| commit | 388c1b518f0f237d777ec010f294ee580024c22d (patch) | |
| tree | 7b34fa75da606fb812f99b3db9064aba3469cb6c /routes/liquid/send.js | |
| parent | 52baac0211ef1bbf9a2c1a40f485e5f72c19e46d (diff) | |
| download | coinos-server-388c1b518f0f237d777ec010f294ee580024c22d.tar.gz coinos-server-388c1b518f0f237d777ec010f294ee580024c22d.zip | |
export psbt with no fee
Diffstat (limited to 'routes/liquid/send.js')
| -rw-r--r-- | routes/liquid/send.js | 5 |
1 files changed, 2 insertions, 3 deletions
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 = {}; |
