aboutsummaryrefslogtreecommitdiffstats
path: root/sampledata/liquid/elements.conf
blob: a6778b25b53a9636f138ea89d216859b61582970 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
chain=liquidregtest
listen=1
txindex=1
fallbackfee=0.00000002

[liquidregtest]
rpcuser=admin1
rpcpassword=123
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0
rpcwallet=coinos
validatepegin=0
initialfreecoins=2100000000000000
wallet=coinos
wallet=external
wallet=raretoshi
walletnotify=/home/elements/.elements/transaction.sh %s %w
# con_blocksubsidy=5000000000
>res) => { let { amount, memo, tip } = req.body; if (!tip) tip = 0; let value = amount + tip; try { if (config.lna.clightning) { if (!memo) memo = "coinos"; const invoice = await lna.invoice( value ? `${value}sat` : "any", new Date(), memo, 360 ); res.send({ text: invoice.bolt11 }); } else { const invoice = await lnp.addInvoice({ value, memo }); res.send({ text: invoice.payment_request }); } } catch (e) { l.error("problem creating invoice", e.message, e.stack); res.status(500).send(e.message); } };