I am using bitcoin-rpc
and everytime i create an invoice for the client to pay, i create a new address. Payment is ok, i get the money after a cron.php sees that all confirmations are above 3, 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 ...