Pages:
Author

Topic: what is data size of a transaction? - page 2. (Read 510 times)

HCP
legendary
Activity: 2086
Merit: 4361
December 01, 2021, 10:43:34 PM
#9
What is small transaction and what is larger transaction?

If transaction with small bitcoin is small transaction and the transaction with big bitcoin is large transaction. Then statement 1 is wrong.
It's not small bitcoin or big bitcoin... it's the fee rate as mentioned above... that is to say, the number of sats per (v)byte that a given transaction is paying that will generally determine any given transactions priority.

They only have a finite amount of space in a block, so by including transactions paying the highest "rate" (not necessarily just a large total fee amount), they are more likely to receive the optimal payout for finding a block.

For arguments sake, if you only have 1,000,000 bytes of space... and you have 1 transaction that is 1,000,000 bytes and pays 0.01 BTC in fee... you think, that's a BIG fee... I'll use that one... well, the actual fee rate on that is 1,000,000 sats / 1,000,000 bytes = 1 sat/byte.

If you have 10 transactions of 100,000 bytes each paying 0.002 BTC in fees... then because their rate is 200,000 sats / 100,000 bytes = 2 sat/byte... you're better off taking the multiple "smaller" transactions with the larger rate. 10 X 0.002 = 0.02.


Outside of the logical choice being to maximise the amount of fees received, miners are essentially free to do whatever they like with regards to prioritising transactions... for instance, a miner could elect to ignore any transaction going to a specific address or group of addresses if they really wanted to... they'd be foolish to do so, because they'd be ignoring potential income, but they could do it.
legendary
Activity: 1148
Merit: 3117
November 30, 2021, 03:58:02 PM
#8
-snip-
It would be far better to make the default size of the boxes be based on the size of each transaction in vbytes, and perhaps make the color of the boxes vary depending on the fee rate each transaction pays in sats/vbyte. Then when a new block is mined, it would very obvious why each transaction was being included.
Thinking of it, I agree with your point of view. If we think of it, the actual information provided by the color of the boxes is very basic - Everyone is able to see that the sooner the transactions enters the mempool, the longer they'll stay in it and the more "greenish/blueyish" they'll get. Not only the default selection should be in vbytes, and the color grading based in the fee rate, but whenever the block is mined it could still keep the colors of the blocks instead of turning all orange (I think I do know why it turns orange though). That way most people could see - in a very visual way - that the miners will favor transactions with higher fees than the ones who don't carry them (but will still try to optimize the block whenever they can). He could even add a small analytical regarding the average fee per block (with both biggest and smallest fee just as an extra information).

On a brighter side, this color grading is already on the backlog of the developer according to this[1] tweet. I'll try to send him some other suggestions that we've mentioned and we'll see how it goes...

[1]https://twitter.com/superenrico/status/1464653485631279107
legendary
Activity: 2268
Merit: 18711
November 30, 2021, 06:19:08 AM
#7
(you can order by value or by (v)byte)
That's certainly a cool visualization, and I was also unfamiliar with that site, but I don't understand why its default setting is to vary the size of the boxes based on the value of the transaction. Indeed, that is the exact opposite of what is actually relevant when consider blocks/mining/the mempool, and would be very confusing for any newbies, OP included. I also think coloring the blocks based on how long they have been in the mempool is dumb as well, since that metric is also irrelevant to whether or not a transaction is included.

It would be far better to make the default size of the boxes be based on the size of each transaction in vbytes, and perhaps make the color of the boxes vary depending on the fee rate each transaction pays in sats/vbyte. Then when a new block is mined, it would very obvious why each transaction was being included.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
November 30, 2021, 12:11:22 AM
#6
I was doing research and I read this from blockchain support.
-snip-
That is quite the wrong place to do research.
You may need to go to somewhere else reputable, like the websites "The Bitcoin Wiki" and "Learn Me a Bitcoin".
Links:

For example: Bitcoin Wiki has an entry about 'fee rate' under "Miner Fees" article - https://en.bitcoin.it/wiki/Miner_fees#Feerates
legendary
Activity: 1148
Merit: 3117
November 29, 2021, 02:30:57 PM
#5
Quote
miners prefer to include smaller transactions.
This isn't accurate: miners prefer transactions with the highest fee per (v)byte. The size of the transaction and total fee aren't relevant: Bitcoin block space is scarce, miners try to fill it with the transactions from which they earn the most.

They will try to make blocks as efficient as possible thought by including smaller transactions that don't pay as much per byte if they're only a few bytes in size and have a small amount of space to fill (in my experience this seems to happen anyway) - at most it'll only be a few per block.

OP, to see this "tetris" in action that jackg mentions, and especially to see how a block is composed, I highly advise you to look to this[1]website (All credits should go to TryNinja, I saw his post here[2]). In that website you see two very important pieces of information : How "full" is the Mempool - all the transactions that are bound to be processed and their size (you can order by value or by (v)byte) - and how the "inner" configuration of the last mined block looks like (blocks of different sizes). If you wait around until the block is mined you'll even see a cool animation of the new block being mined!

[1]https://bits.monospace.live/
[2]https://bitcointalksearch.org/topic/mempool-do-bitcoin-e-o-que-faz-um-bloco-5373221
legendary
Activity: 2268
Merit: 18711
November 29, 2021, 01:54:33 PM
#4
Quote
While the fee does not depend on the amount you’re sendingstatement 1
This is correct. The amount of bitcoin you are sending is largely irrelevant to how much fee you need to pay. A transaction sending 0.01 BTC might be larger and require a larger fee than a transaction sending 100 BTC, and vice versa.

Quote
it does depend on network conditions at the timestatement 2
This is referring to the mempool. You can get a visual representation of the mempool at these two sites: https://jochen-hoenicke.de/queue/#1,8h and https://mempool.space/. If there are lots of other transactions sitting in the mempool waiting to be mined, then you will have to pay a larger fee to be at the top of the waiting list. If, on the other hand, the mempool is empty, then you will be able to get away with a much lower fee.

Quote
and the data size of your transaction.statement 3
The size or weight of the transaction depends on the number of inputs in your transaction, the number of outputs in your transaction, the type of addresses you are sending to and from, and the exact script requirements (such as a standard transaction, a multi-sig transaction, etc.) This is what is meant by the data size. The actual amount of bitcoin contained within that data is largely irrelevant.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
November 29, 2021, 09:45:27 AM
#3
Quote
miners prefer to include smaller transactions.
This isn't accurate: miners prefer transactions with the highest fee per (v)byte. The size of the transaction and total fee aren't relevant: Bitcoin block space is scarce, miners try to fill it with the transactions from which they earn the most.

They will try to make blocks as efficient as possible thought by including smaller transactions that don't pay as much per byte if they're only a few bytes in size and have a small amount of space to fill (in my experience this seems to happen anyway) - at most it'll only be a few per block.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 29, 2021, 09:35:49 AM
#2
Quote
miners prefer to include smaller transactions.
This isn't accurate: miners prefer transactions with the highest fee per (v)byte. The size of the transaction and total fee aren't relevant: Bitcoin block space is scarce, miners try to fill it with the transactions from which they earn the most.

Quote
What is small transaction and what is larger transaction?
Transaction sizes are measured in (v)bytes, not in Bitcoins.

Quote
If transaction with small bitcoin is small transaction and the transaction with big bitcoin is large transaction. Then statement 1 is wrong.
Statement 1 is correct. Statement 2 and 3 are also correct.

Suggestion: play around with CoinB.in's Bitcoin Fee Calculator.
hero member
Activity: 1134
Merit: 643
BTC, a coin of today and tomorrow.
November 29, 2021, 09:07:30 AM
#1
I was doing research and I read this from blockchain support.
Quote from: Blockchain Support
While the fee does not depend on the amount you’re sending,statement 1it does depend on network conditions at the timestatement 2and the data size of your transaction.statement 3

I separate the statements into 3 to be clear for my explanation.
If you check below you will see blockchain support how they explain data size of transaction.
Quote
Again due to the fact that a block on the bitcoin blockchain can contain no more than 1 MB of information, transaction size is an important consideration for miners. Smaller transactions are easier to validate; larger transactions take more work, and take up more space in the block. For this reason, miners prefer to include smaller transactions. A larger transaction will require a larger fee to be included in the next block[/green]

What is small transaction and what is larger transaction?
If transaction with small bitcoin is small transaction and the transaction with big bitcoin is large transaction. Then statement 1 is wrong.
Read more from Blockchain support...
Pages:
Jump to: