I am using bitcoin-rpc
and every time I create an invoice for the client to pay, I create a new address. The payment is okay, I get the money after a cron.php
sees that the transaction has three or more confirmations, but then when I try to send my money back to my big wallet, I see 200—300 usd in fees.
bitcoin-cli sendtoaddress "MY_WALLET" 0.1 "" "" true
I see on blockchain that everything was sent from each and every address that I have created
ADDRESS1 ... 0.05
ADDRESS2 ... 0.08
ADDRESS2 ... 0.028
... and so on
How can I send everything from one big address and pay only 20$ usd fee?
I think I pay per vbyte for what I have read ... but I want to send internally with low or no fees or something. Can I send coins internally to one big wallet?
I mean don't think that big payment gateways that do the same thing and create an address for every invoice but pay such amounts of fees.
Thank you.
fee_rate
insendtoaddress
or useestimate_mode
andconf_target
? Do you have other UTXOs in wallet with more than 0.1 BTC?estimate_mode
and as imputs i have 30 40 50 100 ... a lot , explain more aboutUTXO
or a link ...