Bitcoin Forum
May 01, 2024, 03:49:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: UTXO Consolidation using Segwit and Taproot  (Read 191 times)
Jegileman (OP)
Full Member
***
Offline Offline

Activity: 322
Merit: 168



View Profile
September 26, 2023, 11:09:30 AM
Merited by Ojima-ojo (1)
 #1

UTXO consolidation has a lot of benefits for bitcoin users. It gives them a decreased number of inputs during transactions after consolidating many transactions outputs into one, provides low transaction fees and more privacy. It also makes the user to manage their portfolio simply.

Between BTC segregated witness (segwit) starting with bc1q and BTC tap root that starts with bc1p; For instance, when sending transaction to many addresses at a time, segwit is the best to use for reduced transaction fees and when sending from many addresses to one address tap root is the best to use. My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?

1714578552
Hero Member
*
Offline Offline

Posts: 1714578552

View Profile Personal Message (Offline)

Ignore
1714578552
Reply with quote  #2

1714578552
Report to moderator
1714578552
Hero Member
*
Offline Offline

Posts: 1714578552

View Profile Personal Message (Offline)

Ignore
1714578552
Reply with quote  #2

1714578552
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714578552
Hero Member
*
Offline Offline

Posts: 1714578552

View Profile Personal Message (Offline)

Ignore
1714578552
Reply with quote  #2

1714578552
Report to moderator
Bitcoin Smith
Sr. Member
****
Offline Offline

Activity: 896
Merit: 283


Cashback 15%


View Profile WWW
September 26, 2023, 11:14:52 AM
 #2

My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?

You will achieve the less fee if the sender and receiver use Segwit address or P2TR.

But what matters most is number of inputs from which kind of address (higher if it's legacy, lesser of it's Segwit or Taproot) and number of outputs.

.
HUGE
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
hosseinimr93
Legendary
*
Offline Offline

Activity: 2380
Merit: 5235



View Profile
September 26, 2023, 11:16:55 AM
Last edit: September 26, 2023, 12:10:17 PM by hosseinimr93
 #3

It gives them a decreased number of inputs during transactions after consolidating many transactions outputs into one, provides low transaction fees and more privacy.
With consolidating your UTXOs when the fees are low, you can make your next transactions cheaper, but you don't increase your privacy and you may even decrease your privacy.
Take note that with using multiple UTXOs in the same transaction, everyone can conclude they are owned by the same person and that may harm your privacy.


Between BTC segregated witness (segwit) starting with bc1q and BTC tap root that starts with bc1p;
Note that taproot addresses are also segwit.
Bech32 addresses (those that start with bc1q) are segwit version 0 and taproot addresses (those that start with bc1p) are segwit version 1.


My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?
No.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Charles-Tim
Legendary
*
Offline Offline

Activity: 1526
Merit: 4833



View Profile
September 26, 2023, 11:24:19 AM
 #4

My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?
Do not bother about this, segwit version 0 and pay-to-taproot fees are cheap. If the transaction input will be more, use pay-to-taproot to send. If the outputs will be more, you can use segwit version 0 for sending.

If you want to compare the input and output, you can use this bitcoin transaction virtual size calculator: https://bitcoinops.org/en/tools/calc-size/

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5578


Self-proclaimed Genius


View Profile
September 26, 2023, 11:45:10 AM
 #5

My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?
It doesn't matter.
Each output will be counted as one UTXO whether you sent it through the same address or not;
And those UTXO will always count as one input when used to generate a transaction whether it's received through the same address.

Just take note that addresses are just a way for your wallet to show balances and receive Bitcoins.
In the blockchain, your transactions create/spend UTXOs that has their own locking/unlocking scripts and their respective amounts.
So, for example: for ten inbound transactions that your wallet shows that received by 'bc1pxxx', those will be spent as ten separate inputs when you consolidate.
You'll get the same result if you received those 10 transactions with ten different 'bc1p' addresses.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7434


Crypto Swap Exchange


View Profile
September 26, 2023, 12:11:18 PM
Merited by Jegileman (1)
 #6

My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?

Sending from Taproot (bc1p...) address to SegWit (bc1q....) address should achieve lowest possible transaction size which lead to lower total TX fee. But difference of each possible combination is negligible and IMO you better use your effort to check mempool condition before determining TX fee rate for transaction you're going to make.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Zaguru12
Hero Member
*****
Offline Offline

Activity: 672
Merit: 866



View Profile
September 26, 2023, 12:22:35 PM
 #7

My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?

Realistically since it is about consolidating you can’t change the sender address but the recipient address is where the fee reduction comes In for consolidation. Both the segwit versions 0 (bc1q) and version 1(bc1p) actually saves or reduce transaction fee by just moving the witness data or signature data separately there by reducing the the weight of the transaction and not the size. The reduction of fees then occurs since the fee rate is now calculated based on virtual size (weight).

But in general the saving of fees actually comes from the input address, because the outputs address (both old legacy and the segwit) have just 3vbytes difference while the inputs differs is around 80vbytes.


Sending from Taproot (bc1p...) address to SegWit (bc1q....) address should achieve lowest possible transaction size which lead to lower total TX fee. But difference of each possible combination is negligible and IMO you better use your effort to check mempool condition before determining TX fee rate for transaction you're going to make.

Agreed, taproot inputs are much smaller than SegWit inputs but the as for the outputs then Segwit is better, if is even a case of 1-input and many outputs then SegWit version 0 edges the version 1

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Jegileman (OP)
Full Member
***
Offline Offline

Activity: 322
Merit: 168



View Profile
September 27, 2023, 12:05:53 PM
 #8

Thank you all for your responses!

But difference of each possible combination is negligible and IMO you better use your effort to check mempool condition before determining TX fee rate for transaction you're going to make.

After consolidating and one still wants to have a reduced or higher transaction fee for the transaction, is it still permissible or possible to modify the transaction fee before sending?



NotATether
Legendary
*
Online Online

Activity: 1582
Merit: 6718


bitcoincleanup.com / bitmixlist.org


View Profile WWW
September 27, 2023, 12:07:39 PM
Merited by ABCbits (1), Jegileman (1)
 #9

But difference of each possible combination is negligible and IMO you better use your effort to check mempool condition before determining TX fee rate for transaction you're going to make.

After consolidating and one still wants to have a reduced or higher transaction fee for the transaction, is it still permissible or possible to modify the transaction fee before sending?

Yes that is possible.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5578


Self-proclaimed Genius


View Profile
September 27, 2023, 04:08:09 PM
 #10

Thank you all for your responses!
-snip-
After consolidating and one still wants to have a reduced or higher transaction fee for the transaction, is it still permissible or possible to modify the transaction fee before sending?
The process depends on the wallet, some have back button to return to the step where the fee is selected, some haven't.
But in any case, you can just cancel the transaction with undesirable fee that you're creating (haven't broadcasted yet) and you can make another with the preferred fee.

Anyways, the phrases "after consolidating" and "before sending" made me read your question twice.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
albert0bsd
Hero Member
*****
Offline Offline

Activity: 850
Merit: 660



View Profile WWW
September 27, 2023, 04:19:24 PM
 #11

One tool that i like to calcualte the stimate fee:



It have only few options but they explain the size of the headers and each input and output

Page:  https://bitcoinops.org/en/tools/calc-size/

un_rank
Hero Member
*****
Offline Offline

Activity: 714
Merit: 680


- Jay -


View Profile WWW
September 27, 2023, 04:32:56 PM
 #12

After consolidating and one still wants to have a reduced or higher transaction fee for the transaction, is it still permissible or possible to modify the transaction fee before sending?
You can edit the fee of the transaction before signing, depending on what wallet you are using. You can edit it after sending too but only to "bump" up the fee, not to reduce it.

Since you are consolidating, you should be looking to reduce the fee and not to increase it. You are sending to yourself, so just border around the minimum feerate at the time.

- Jay -

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
hosseinimr93
Legendary
*
Offline Offline

Activity: 2380
Merit: 5235



View Profile
September 27, 2023, 04:40:16 PM
 #13

After consolidating and one still wants to have a reduced or higher transaction fee for the transaction, is it still permissible or possible to modify the transaction fee before sending?
Yes. Why not?
Consolidation your UTXOs is like any other bitcoin transaction and you can set the fee rate by yourself. After consolidation your UTXOs, you will have a single UTXO and whenever you want to spend that, you must make a new transaction and again you can set the fee rate by yourself.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Zaguru12
Hero Member
*****
Offline Offline

Activity: 672
Merit: 866



View Profile
September 27, 2023, 04:53:34 PM
 #14

After consolidating and one still wants to have a reduced or higher transaction fee for the transaction, is it still permissible or possible to modify the transaction fee before sending?

If I get your question right you are asking if after consolidating all the transactions and the wallet suggests a transaction fee for you, you wish to customize that fee?

Yes it is possible but it depends on the wallet you’re using, my guess is currently almost all HD wallets allow customization of transactions fee and as such you can edit it. But before doing that you need to check the mempool for fees and if the transaction fee is quite high I.e the pool is congested then it is best to leave the consolidation till it goes down. Just as un_rank said you can set the fee low and wait but if you grow impatient then you can bump it using either RBF method or CPFP.

Check for transactions fee from;

https://mempool.space/

https://jochen-hoenicke.de/queue/#BTC%20(default%20mempool),24h,weight

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
SquirrelJulietGarden
Hero Member
*****
Offline Offline

Activity: 1302
Merit: 726



View Profile
September 28, 2023, 11:29:11 AM
 #15

My question now is, when sending does the sender and the receiver have to use the same address in order to achieve the reduced transaction fee?
Consolidating your inputs first if you have many inputs in your wallets when mempools are clear and give your perfect fee rate like 1 satoshi/vbyte or 2 satoshi/vbyte for consolidation with cheap transaction fee.

Do it first as consolidation is your preparation for future on-chain transactions when mempools are no longer clear.

I have two topics about Bitcoin Taproot but I have to update those image links.
Bitcoin Taproot (Bech32m - bc1p) adoption
Create Taproot address for your Bitcoin

Bitcoin transaction size calculator
https://jlopp.github.io/bitcoin-transaction-size-calculator/
https://bitcoindata.science/plot-your-transaction-in-mempool.html
https://bitcoinops.org/en/tools/calc-size/

Usually you can not control what receivers do so don't mind about it too much.

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!