Bitcoin Forum
May 27, 2024, 04:19:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Blockchain.info new feature or what?  (Read 319 times)
lady Royal (OP)
Hero Member
*****
Offline Offline

Activity: 720
Merit: 500


View Profile WWW
June 13, 2017, 02:13:50 PM
 #1

Hi,

Today I sent payment from my online wallet and I noticed that they have added one new feature in which we can set fees according to satoshis/byte format.
I want to know how Blockchain.info is detecting the size of the transaction?
It's not the predicted fee when I sent the transaction, it exactly showed the fee I have put before sending the transaction.
Really want to know how they measure the fee before sending the transaction.

Regards


███
███
███
███
███
███
███
███
███
███
███
■   .PRIVATE SALE is LIVE.   ■
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Whitepaper   ■   Bounty   ■   Bitcointalk

███
███
███
███
███
███
███
███
███
███
███
                        ███
                     ▄▄ ▀▀▀ ███
                     ██▀ ▄▄ ▀▀▀
                   ▄▄    █▀▀ ▄▄ ██
                   ▀▀ ▄█  ▄▄ ▀
                  ██  ▀ ▄ ▀
                  ▄▄ █▄ ▀▀
                  ▀▀  ▄ ▀
   ▄▄              ██ ▀ ▀
   ██▀               ▄ ▀
  ▄  ▄█         ▄ ▄   ▀
 ███  ▀ █▄ ▄▀ ▀▄  ▀  ▄ ██ ██
  ▀▀ █▄ ▄  ▄█ ▀ █▀  ▀ ▄ ▄▄  ▄█▄
███     ▀▀   ▄█▄       ▄ ▀ ▄ ▀ ▄
▀▀▀ ██ ██ ██  ▀         ▄▄ ▀▀ ▀██
                         ▀ ▄█  ▄▄
                        ▄█ ▀▀ ▀██
                        ▄ ▄█▄
                       ▀▀ ▀▀
                      ██
..Skynet..
███
███
███
███
███
███
███
███
███
███
███
Telegram   ■   Facebook   ■   Twitter   ■   Medium   ■   Reddit   ■   LinkedIn
.CREATING THE INTELLIGENT MACHINE ECONOMY.

███
███
███
███
███
███
███
███
███
███
███
brobbel
Sr. Member
****
Offline Offline

Activity: 966
Merit: 342


View Profile
June 13, 2017, 02:18:53 PM
 #2

Hi,

Today I sent payment from my online wallet and I noticed that they have added one new feature in which we can set fees according to satoshis/byte format.
I want to know how Blockchain.info is detecting the size of the transaction?
It's not the predicted fee when I sent the transaction, it exactly showed the fee I have put before sending the transaction.
Really want to know how they measure the fee before sending the transaction.

Regards

The size of a transaction depends on the number of inputs and the number of outputs (and some other stuff), so when you want to pay from your blockchain.info wallet it knows exactly how big this transaction will be.
lady Royal (OP)
Hero Member
*****
Offline Offline

Activity: 720
Merit: 500


View Profile WWW
June 13, 2017, 04:18:37 PM
 #3

Hi,

Today I sent payment from my online wallet and I noticed that they have added one new feature in which we can set fees according to satoshis/byte format.
I want to know how Blockchain.info is detecting the size of the transaction?
It's not the predicted fee when I sent the transaction, it exactly showed the fee I have put before sending the transaction.
Really want to know how they measure the fee before sending the transaction.

Regards

The size of a transaction depends on the number of inputs and the number of outputs (and some other stuff), so when you want to pay from your blockchain.info wallet it knows exactly how big this transaction will be.

No, What I have seen here on the forum and heard from everyone that the size of Bitcoin transaction cannot be predicted. You can only know the size of the transaction only if the transaction is processed, then how can you identify it before?


███
███
███
███
███
███
███
███
███
███
███
■   .PRIVATE SALE is LIVE.   ■
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Whitepaper   ■   Bounty   ■   Bitcointalk

███
███
███
███
███
███
███
███
███
███
███
                        ███
                     ▄▄ ▀▀▀ ███
                     ██▀ ▄▄ ▀▀▀
                   ▄▄    █▀▀ ▄▄ ██
                   ▀▀ ▄█  ▄▄ ▀
                  ██  ▀ ▄ ▀
                  ▄▄ █▄ ▀▀
                  ▀▀  ▄ ▀
   ▄▄              ██ ▀ ▀
   ██▀               ▄ ▀
  ▄  ▄█         ▄ ▄   ▀
 ███  ▀ █▄ ▄▀ ▀▄  ▀  ▄ ██ ██
  ▀▀ █▄ ▄  ▄█ ▀ █▀  ▀ ▄ ▄▄  ▄█▄
███     ▀▀   ▄█▄       ▄ ▀ ▄ ▀ ▄
▀▀▀ ██ ██ ██  ▀         ▄▄ ▀▀ ▀██
                         ▀ ▄█  ▄▄
                        ▄█ ▀▀ ▀██
                        ▄ ▄█▄
                       ▀▀ ▀▀
                      ██
..Skynet..
███
███
███
███
███
███
███
███
███
███
███
Telegram   ■   Facebook   ■   Twitter   ■   Medium   ■   Reddit   ■   LinkedIn
.CREATING THE INTELLIGENT MACHINE ECONOMY.

███
███
███
███
███
███
███
███
███
███
███
brobbel
Sr. Member
****
Offline Offline

Activity: 966
Merit: 342


View Profile
June 13, 2017, 05:43:32 PM
 #4



No, What I have seen here on the forum and heard from everyone that the size of Bitcoin transaction cannot be predicted. You can only know the size of the transaction only if the transaction is processed, then how can you identify it before?


I'm sorry, but that's wrong.

Quote
Assuming all the inputs you are spending are from regular "pay to address" transactions, each input will contribute 180 (plus or minus 1) bytes to the transaction. Each output adds 34 bytes to the transaction. And there's a fixed extra 10 bytes which are always present.

The "plus or minus 1" comes from the fact that each input needs a signature to be claimed. The signature contains two 32 byte values, but if either of the values has a first byte of 0x80 or more, it has a 0x00 byte prepended to it. So I'm assuming one of the two is high and the other is low. That way I'm off by at most one byte per input.

So if your transaction has in inputs and out outputs, the transaction size, in bytes will be:

in*180 + out*34 + 10 plus or minus 'in'
For example, this transaction has 40 inputs and 16 outputs. That gives us a transaction size of

40*180 + 16*34 + 10 +- 40
i.e. 7754 +- 40 bytes. The actual size is 7761 bytes.

If the inputs are from "pay to pubkey" transactions then the inputs are smaller than for "pay to address" transactions. And this will be different also for "pay to script hash" inputs too, depending on how/if that's implemented.

Edit: This transaction was made with bitcoins stolen in the Linode heist and shows a transaction size of 1337, possibly a deliberate use of leetspeak in the blockchain.

Edit2: Now that compressed public keys are commonplace, each input is 32 bytes shorter and so the transaction size is now:

in*148 + out*34 + 10 plus or minus 'in'

So it is predictable.
lady Royal (OP)
Hero Member
*****
Offline Offline

Activity: 720
Merit: 500


View Profile WWW
June 13, 2017, 07:06:34 PM
 #5

It is not, I have read the above quote, I agree with it someone did a really great search. Can you post the link to it?
Sometimes, We have very large transaction size, even the transaction has only one input and one output, So, how can you explain that?


███
███
███
███
███
███
███
███
███
███
███
■   .PRIVATE SALE is LIVE.   ■
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Whitepaper   ■   Bounty   ■   Bitcointalk

███
███
███
███
███
███
███
███
███
███
███
                        ███
                     ▄▄ ▀▀▀ ███
                     ██▀ ▄▄ ▀▀▀
                   ▄▄    █▀▀ ▄▄ ██
                   ▀▀ ▄█  ▄▄ ▀
                  ██  ▀ ▄ ▀
                  ▄▄ █▄ ▀▀
                  ▀▀  ▄ ▀
   ▄▄              ██ ▀ ▀
   ██▀               ▄ ▀
  ▄  ▄█         ▄ ▄   ▀
 ███  ▀ █▄ ▄▀ ▀▄  ▀  ▄ ██ ██
  ▀▀ █▄ ▄  ▄█ ▀ █▀  ▀ ▄ ▄▄  ▄█▄
███     ▀▀   ▄█▄       ▄ ▀ ▄ ▀ ▄
▀▀▀ ██ ██ ██  ▀         ▄▄ ▀▀ ▀██
                         ▀ ▄█  ▄▄
                        ▄█ ▀▀ ▀██
                        ▄ ▄█▄
                       ▀▀ ▀▀
                      ██
..Skynet..
███
███
███
███
███
███
███
███
███
███
███
Telegram   ■   Facebook   ■   Twitter   ■   Medium   ■   Reddit   ■   LinkedIn
.CREATING THE INTELLIGENT MACHINE ECONOMY.

███
███
███
███
███
███
███
███
███
███
███
brobbel
Sr. Member
****
Offline Offline

Activity: 966
Merit: 342


View Profile
June 14, 2017, 04:42:07 AM
 #6

It is not, I have read the above quote, I agree with it someone did a really great search. Can you post the link to it?
Sometimes, We have very large transaction size, even the transaction has only one input and one output, So, how can you explain that?

I shall quote the bitcointalk post with links to above quote. The first link is the link I quoted.

Assuming all the inputs you are spending are from regular "pay to address" transactions, each input will contribute 180 (plus or minus 1) bytes to the transaction. Each output adds 34 bytes to the transaction. And there's a fixed extra 10 bytes which are always present.

The "plus or minus 1" comes from the fact that each input needs a signature to be claimed. The signature contains two 32 byte values, but if either of the values has a first byte of 0x80 or more, it has a 0x00 byte prepended to it. So I'm assuming one of the two is high and the other is low. That way I'm off by at most one byte per input.

So if your transaction has in inputs and out outputs, the transaction size, in bytes will be:

in*180 + out*34 + 10 plus or minus 'in'

Recommended fee is 0.0001BTC/1000 bytes. All popular wallets calculate fees automatically.

Read

http://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending
http://bitcoin.stackexchange.com/questions/7537/calculator-for-estimated-tx-fees
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
June 14, 2017, 05:51:01 AM
Last edit: November 15, 2023, 09:05:23 AM by HCP
 #7

It is not, I have read the above quote, I agree with it someone did a really great search. Can you post the link to it?
Sometimes, We have very large transaction size, even the transaction has only one input and one output, So, how can you explain that?
Then you are misunderstanding either the terms, or what is counted as an input or an output.

An input is NOT an address... so if you see something like this:


Which looks like 1 input... but has a MASSIVE transaction size... click the "Show scripts & coinbase" link... then you'll see the ACTUAL inputs to the transaction... like this:



Check this transaction for an example: https://blockchain.info/tx/271f6489c2d5562046be3965dd2d1a2f7bf6f200d967c0c70dfef6cfb987eb12

Every single one of those inputs adds at least 148 bytes to the transaction. This is why you shouldn't collect dust inputs to your wallet... if you're collecting faucets or doing captcha's or cloud mining or whatever... set your MINIMUM payout to at least 0.001 if not 0.01... otherwise you are generating dust inputs which end up costing you a lot to include in a transaction... each input = 148 bytes... recommended fees of 300+ sats/byte = 148 * 300 = 44,400 sats to include an input in a transaction... if your input was only 100,000 sats to start with, you need to spend 44% of it just to put it in the transaction!!?! Shocked


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
lady Royal (OP)
Hero Member
*****
Offline Offline

Activity: 720
Merit: 500


View Profile WWW
June 14, 2017, 04:52:01 PM
 #8

It is not, I have read the above quote, I agree with it someone did a really great search. Can you post the link to it?
Sometimes, We have very large transaction size, even the transaction has only one input and one output, So, how can you explain that?
Then you are misunderstanding either the terms, or what is counted as an input or an output.

An input is NOT an address... so if you see something like this:


Which looks like 1 input... but has a MASSIVE transaction size... click the "Show scripts & coinbase" link... then you'll see the ACTUAL inputs to the transaction... like this:



Check this transaction for an example: https://blockchain.info/tx/271f6489c2d5562046be3965dd2d1a2f7bf6f200d967c0c70dfef6cfb987eb12

Every single one of those inputs adds at least 148 bytes to the transaction. This is why you shouldn't collect dust inputs to your wallet... if you're collecting faucets or doing captcha's or cloud mining or whatever... set your MINIMUM payout to at least 0.001 if not 0.01... otherwise you are generating dust inputs which end up costing you a lot to include in a transaction... each input = 148 bytes... recommended fees of 300+ sats/byte = 148 * 300 = 44,400 sats to include an input in a transaction... if your input was only 100,000 sats to start with, you need to spend 44% of it just to put it in the transaction!!?! Shocked


Thanks for your replies guys, So, It means it's predictable. I will post again if I find something. I already know about the script and bases option by Blockchain.info that it shows the number of outputs and inputs.
Thanks again.


███
███
███
███
███
███
███
███
███
███
███
■   .PRIVATE SALE is LIVE.   ■
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Whitepaper   ■   Bounty   ■   Bitcointalk

███
███
███
███
███
███
███
███
███
███
███
                        ███
                     ▄▄ ▀▀▀ ███
                     ██▀ ▄▄ ▀▀▀
                   ▄▄    █▀▀ ▄▄ ██
                   ▀▀ ▄█  ▄▄ ▀
                  ██  ▀ ▄ ▀
                  ▄▄ █▄ ▀▀
                  ▀▀  ▄ ▀
   ▄▄              ██ ▀ ▀
   ██▀               ▄ ▀
  ▄  ▄█         ▄ ▄   ▀
 ███  ▀ █▄ ▄▀ ▀▄  ▀  ▄ ██ ██
  ▀▀ █▄ ▄  ▄█ ▀ █▀  ▀ ▄ ▄▄  ▄█▄
███     ▀▀   ▄█▄       ▄ ▀ ▄ ▀ ▄
▀▀▀ ██ ██ ██  ▀         ▄▄ ▀▀ ▀██
                         ▀ ▄█  ▄▄
                        ▄█ ▀▀ ▀██
                        ▄ ▄█▄
                       ▀▀ ▀▀
                      ██
..Skynet..
███
███
███
███
███
███
███
███
███
███
███
Telegram   ■   Facebook   ■   Twitter   ■   Medium   ■   Reddit   ■   LinkedIn
.CREATING THE INTELLIGENT MACHINE ECONOMY.

███
███
███
███
███
███
███
███
███
███
███
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!