Bitcoin Forum
May 11, 2024, 01:52:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: How to calculate bitcoin transaction size and fees  (Read 521 times)
bitmover
Legendary
*
Offline Offline

Activity: 2296
Merit: 5938


bitcoindata.science


View Profile WWW
May 08, 2019, 09:56:23 AM
 #21

I just remembered something which is related to the subject of having many inputs.

Electrum allows you to chose which input to use. There is an option "coins" which let's you see all your inputs and choose which one to spend. This is particularly interesting to do if you have many inputs, because you can consolidate as many as possible in a transaction of fees are low, or use the minimum as possible of they are high.

Remember that any additional BTC will become a new input that will go to a change address.

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

Posts: 1715392371

View Profile Personal Message (Offline)

Ignore
1715392371
Reply with quote  #2

1715392371
Report to moderator
1715392371
Hero Member
*
Offline Offline

Posts: 1715392371

View Profile Personal Message (Offline)

Ignore
1715392371
Reply with quote  #2

1715392371
Report to moderator
1715392371
Hero Member
*
Offline Offline

Posts: 1715392371

View Profile Personal Message (Offline)

Ignore
1715392371
Reply with quote  #2

1715392371
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715392371
Hero Member
*
Offline Offline

Posts: 1715392371

View Profile Personal Message (Offline)

Ignore
1715392371
Reply with quote  #2

1715392371
Report to moderator
naska21
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 635


View Profile
May 09, 2019, 08:27:09 AM
Last edit: May 09, 2019, 08:43:13 AM by naska21
 #22

Well, but one can combine various  inputs from both legacy and segwit (p2sh, bech32) addresses into one transaction. Does anyone know how to calculate the transaction fee in this case? Is there any formula to do that? I have asked this question in Russian section and they pointed me to https://coinb.in/#fees  site that could help in estimation. Regardless,  I would like to  have the reliable   mathematical formula to control the fee.
RapTarX (OP)
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 850



View Profile
May 09, 2019, 08:49:19 AM
 #23

Well, but one can combine various  inputs from both legacy and segwit (p2sh, bech32) addresses into one transaction. Does anyone know how to calculate the transaction fee in this case? Is there any formula to do that? I have asked this question in Russian section and they pointed me to https://coinb.in/#fees  site that could help in estimation. Regardless,  I would like to  have the reliable   mathematical formula to control the fee.
For controlling the fee, I guess, you don't need to know the mathematical formula. However, the formula is for calculation of transaction size, not for the fees. Fees can be found at your pointed web, you can pay less or more, it's your choice.

naska21
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 635


View Profile
May 09, 2019, 09:18:17 AM
Last edit: May 09, 2019, 09:32:50 AM by naska21
 #24

Well, but one can combine various  inputs from both legacy and segwit (p2sh, bech32) addresses into one transaction. Does anyone know how to calculate the transaction fee in this case? Is there any formula to do that? I have asked this question in Russian section and they pointed me to https://coinb.in/#fees  site that could help in estimation. Regardless,  I would like to  have the reliable   mathematical formula to control the fee.
For controlling the fee, I guess, you don't need to know the mathematical formula. However, the formula is for calculation of transaction size, not for the fees. Fees can be found at your pointed web, you can pay less or more, it's your choice.

To be clear: it seems to me that general formula is fee = size x (satoshies/byte) but  I wanna have formula for size when various inputs (legacy and segwit) are combined into single transaction.
Mehr Sher
Jr. Member
*
Offline Offline

Activity: 206
Merit: 2


View Profile
May 09, 2019, 01:57:35 PM
 #25

There are many ways on how we can calculate these things but the best way is to use Crypto Calculator, as this just simplifies everything for everyone.

It just ensures that we are able to work nicely and easily without any major trouble at all. With this we can easily do well and able to get the right calculation, especially if we are dealing and doing transaction is bigger numbers. It’s almost necessary for everyone to get this right.
Pages: « 1 [2]  All
  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!