<p>What would be the exact command to prepare a transaction with multiple outputs, to a specific address?</p>
<p>I'm able to list all my outputs with <code>lightning-cli listfunds</code>, but I'm not sure how to include them all in a transaction with <code>txprepare</code>, so I can submit the transaction later.</p>
<p>If possible I would also like to set the fee as low as possible, i.e. 1 sat/b or lower.</p>

CC BY-SA 4.0
2020-11-15T00:23:27.410Z
Am I understanding right that you want to use multiple UTXOs in inputs and send to a single output?
Murch
CC BY-SA 4.0
2020-11-15T14:17:39.733Z
That's exactly right. The help of lightning-cli suggests `txprepare outputs [feerate] [minconf] [utxos]` but I'm not completely sure how to specify several outputs. Also, the feerate will be per b or kw?
Realistic_Attitude85
<lightning-network><core-lightning><cli>
Preparing a transaction with many outpts
Realistic_Attitude85
# Preparing a transaction with many outpts

(Asked by: username_0 on 2020-11-14)

What would be the exact command to prepare a transaction with multiple outputs, to a specific address?

I'm able to list all my outputs with `lightning-cli listfunds`, but I'm not sure how to include them all in a transaction with `txprepare`, so I can submit the transaction later.

If possible I would also like to set the fee as low as possible, i.e. 1 sat/b or lower.

**Tags:** lightning-network, core-lightning, cli

> **Comments:**
> **username_1**: Am I understanding right that you want to use multiple UTXOs in inputs and send to a single output?  
> **username_0**: That's exactly right. The help of lightning-cli suggests `txprepare outputs [feerate] [minconf] [utxos]` but I'm not completely sure how to specify several outputs. Also, the feerate will be per b or kw?  

---

## 0 answers

