Hello.
I did my first raw transaction yesterday, however I would like to try to understand some of the details showed when I issued the command:
bitcoin-cli decoderawtransaction <hash string>
I'm using Debian Buster and Bitcoin Core RPC client version v0.18.1 (Debian repository version).
When I decoded the transaction to try to see the size per byte so that I could find a good fee value for my transaction according to the time I would be willing to wait for it, I find values that I cannot relate and/or compare to the values I got after the transaction was broadcast.
So I wanted to try to understand this.
The values I got for the dedocerawtransaction comman, were, before the transaction:
"version": 2,
"size": 82,
"vsize": 82,
"weight": 328,
"locktime": 0,
However, when I issued the command
sendrawtransaction and checkif it's txID in Blockchair, I got this:
And now, after the transaction has been proccessed (confirmed) by the blockchain, if I run the
decoderawtransaction command again, I get different values:
"version": 2,
"size": 214,
"vsize": 133,
"weight": 529,
"locktime": 0,
which already matches some of the values of the Blockchair explorer values.
So, what can be said about the values returned by the
decoderawtransaction before it has been confirmed by the blockchain? How can I find the real size of the transaction, so that I can choose a reasonable fee amount?
Thanks
Dark