Bitcoin Forum
May 01, 2024, 03:32:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What order should I follow when creating a transaction  (Read 161 times)
angelo1oc (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
November 24, 2022, 04:11:03 PM
 #1

What order should I follow when creating a transaction

Is there any standard or recommendation on how to join coins in order to send a particular amount?
Do you add base on oldest to newest? (or viceversa)
Do you add them based on amount, meaning lowest to highest (or viceversa)?
Do you randomly pick until you add-up enough for the total to send?

Thanks
angelo
1714577523
Hero Member
*
Offline Offline

Posts: 1714577523

View Profile Personal Message (Offline)

Ignore
1714577523
Reply with quote  #2

1714577523
Report to moderator
1714577523
Hero Member
*
Offline Offline

Posts: 1714577523

View Profile Personal Message (Offline)

Ignore
1714577523
Reply with quote  #2

1714577523
Report to moderator
1714577523
Hero Member
*
Offline Offline

Posts: 1714577523

View Profile Personal Message (Offline)

Ignore
1714577523
Reply with quote  #2

1714577523
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714577523
Hero Member
*
Offline Offline

Posts: 1714577523

View Profile Personal Message (Offline)

Ignore
1714577523
Reply with quote  #2

1714577523
Report to moderator
1714577523
Hero Member
*
Offline Offline

Posts: 1714577523

View Profile Personal Message (Offline)

Ignore
1714577523
Reply with quote  #2

1714577523
Report to moderator
joniboini
Legendary
*
Offline Offline

Activity: 2184
Merit: 1789



View Profile WWW
November 24, 2022, 05:21:46 PM
 #2

Most of the time people will recommend you consolidate your input so you can make your transaction cheaper. If privacy is your concern then you can learn and use coinjoin or a mixer (not a random mixer since they can just scam you). In my case, I always consolidate my inputs and then let Electrum decide how to split it when I make a TX.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
hosseinimr93
Legendary
*
Online Online

Activity: 2380
Merit: 5235



View Profile
November 24, 2022, 05:34:10 PM
Last edit: November 24, 2022, 05:49:30 PM by hosseinimr93
Merited by pooya87 (2)
 #3

If you want to pay lower transaction fee, consider consolidating your UTXOs when transactions can be made with the fee rate of only 1 sat/vbyte.
If you haven't consolidate your UTXOs before and now you want to make a transaction, select your UTXOs so that the number of inputs is as small as possible. The more inputs you add to your transaction, the more fee you have to pay.
It doesn't really matter which UTXO has been received earlier and which one has been received later.

Note that in the case you care about your privacy, it may be bad if you use multiple UTXOs in a single transaction.

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

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
November 24, 2022, 06:05:30 PM
 #4

If you can't get a 1 sat/byte fee to confirm or you care about privacy constantly then I'd prioritise spending the highest input just above how much you need to spend.

If you can get a low fee to confirm and you don't send too many transactions then the best practice is to consolidate them.
angelo1oc (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
November 24, 2022, 07:34:12 PM
 #5

Thanks
All of it make sense  Wink
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10521



View Profile
November 25, 2022, 07:56:06 AM
 #6

Apart from fees and privacy concerns if you are doing manual coin control you should try not to break down your outputs into too many small ones and focus on decreasing the number of "coins" you have instead.
For example if you want to pay 0.1BTC it is best to use two 0.05BTC inputs instead of using a 0.2BTC input and breaking it down into two new outputs.

You should also pay some attention to how much change you are being left with and avoid too small change.
For example if you want to make a 0.1BTC payment avoid using an input that is 0.10001000BTC and would leave you with 0.00001000BTC change.

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

Activity: 3290
Merit: 16581


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 29, 2022, 09:43:13 AM
 #7

Allow me to recommend my topic on how to Consolidate your small inputs. It explains how to save money on fees.
Depending on my needs at the moment, I either consolidate transactions before I need to make a transaction, or I select the inputs that best match the amount I need to pay. Years ago, using old coins got you a zero-fee transaction ("destroy coin days"), but that doesn't matter anymore. Now it's a balance between privacy and reducing fees.

Pmalek
Legendary
*
Offline Offline

Activity: 2744
Merit: 7124



View Profile
December 03, 2022, 10:31:19 AM
 #8

There are several things you need to consider. Always remember that Bitcoin uses a public ledger, and transaction data is available for the general public to look at.
The "age" of the transactions doesn't matter as long as they are confirmed or will soon be confirmed.

Let's say you have several different UTXOs.
- 3 BTC
- 1 BTC
- And a few small ones like 0.01 BTC, 0.005 BTC, etc.

If you are paying for something that costs 0.02 BTC, you can do as pooya87 said and spend 2x 0.01 UTXOs (actually a little bit more because you need to pay mining fees as well). Or you can spend the 1 or 3 BTC coin and pay with that.

Now consider the following points and decide what is more important for you:
- The more UTXOs you spend, the larger the transaction. That means more sats spent on transaction fees.
- If you spend a 3 BTC UTXO when paying for a low-cost item/service, do you really want the other party to be able to check that you have 3 BTC (at least) in your possession?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!