<p>You can do this with <code>sendmany</code>.</p>
<p>It accepts a <code>minconf</code> parameter (which defaults to 1, for 1 confirmation) - it will spend outputs that have at least <code>minconf</code> number of confirmations.</p>
<p>Setting <code>minconf=0</code> will allow you to spend unconfirmed coins, such as from the change output of a previous <code>sendmany</code> transaction.</p>

CC BY-SA 4.0
2020-08-12T21:43:55.313Z
Cool, i'll make some tests with sendmany, i was trying send using sendtoaddress. Thanks!
Timezoom
CC BY-SA 4.0
2020-08-12T14:49:10.030Z
2020-08-12T14:49:10.030Z
Raghav Sood
<p>I'm triyng send a mass btc payment, but using &quot;sendToAddress&quot; i'm limited send a new transaction only when the last was confirmed, if i try send when the last was pending of confirmation i'll not have balance on my wallet because the my founds was send to change addresses and is pending.</p>
<p>If i use sendMany i'll only had transaction to all payments and i need an transaction to each address and get controll for the fees for each.</p>
<p>If i wait for the last confirm to send a new my batch payment will spend a lot of time and  will stuck my payment list, i'll limitaded for some payments for day.</p>
<p>What's is the best approuch to this problem? Can someone help me? I tried found solution in older topics but i don't had success with this, maybe i cant express myself correctely or do not know the correct terms.</p>

CC BY-SA 4.0
2020-08-11T22:22:52.013Z
i can use any wallet, what you recommend?
Timezoom
CC BY-SA 4.0
2020-08-12T11:12:02.217Z
i'm programming an API to interact with btc core.
Timezoom
CC BY-SA 4.0
2020-08-12T21:37:30.980Z
@Prayank i'll search about, thanks!
Timezoom
<bitcoin-core><json-rpc><sendtoaddress><payment-batching>
What's the best strategy to send btc from one wallet to a address list with transaction id for each payment?
Timezoom
# What's the best strategy to send btc from one wallet to a address list with transaction id for each payment?

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

I'm triyng send a mass btc payment, but using "sendToAddress" i'm limited send a new transaction only when the last was confirmed, if i try send when the last was pending of confirmation i'll not have balance on my wallet because the my founds was send to change addresses and is pending.

If i use sendMany i'll only had transaction to all payments and i need an transaction to each address and get controll for the fees for each.

If i wait for the last confirm to send a new my batch payment will spend a lot of time and will stuck my payment list, i'll limitaded for some payments for day.

What's is the best approuch to this problem? Can someone help me? I tried found solution in older topics but i don't had success with this, maybe i cant express myself correctely or do not know the correct terms.

**Tags:** bitcoin-core, json-rpc, sendtoaddress, payment-batching

> **Comments:**
> **username_0**: i can use any wallet, what you recommend?  
> **username_0**: i'm programming an API to interact with btc core.  
> **username_0**: @Prayank i'll search about, thanks!  

---

## 1 answers

### Answer by username_1 on 2020-08-12. Score: 2

You can do this with `sendmany`.

It accepts a `minconf` parameter (which defaults to 1, for 1 confirmation) - it will spend outputs that have at least `minconf` number of confirmations.

Setting `minconf=0` will allow you to spend unconfirmed coins, such as from the change output of a previous `sendmany` transaction.

> **Comments:**
> **username_0**: Cool, i'll make some tests with sendmany, i was trying send using sendtoaddress. Thanks!  

---

