aboutsummaryrefslogtreecommitdiffstats
path: root/routes/liquid/send.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/liquid/send.js')
-rw-r--r--routes/liquid/send.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/routes/liquid/send.js b/routes/liquid/send.js
index ab28471e..a3bb7639 100644
--- a/routes/liquid/send.js
+++ b/routes/liquid/send.js
@@ -147,7 +147,12 @@ sendLiquid = async ({ user, address, memo, tx, limit }) => {
module.exports = ah(async (req, res) => {
let { user } = req;
- let { address, memo, tx } = req.body;
+ let { address, feeRate, memo, tx } = req.body;
+
+ if (!tx) {
+ ({ tx } = await liquidTx({ ...req.body, user }));
+ }
+
try {
res.send(await sendLiquid({ user, address, memo, tx }));
} catch (e) {