Linked Questions

4 votes
2 answers
5k views

How to use Bitcoin Core's submitblock method

I'm trying to understand how mining works. For learning purpose I'm using Bitcoin Core as solo mining pool. Getblocktemplate will return data that is enough to start mining witch is simple founding ...
Robert's user avatar
  • 171
4 votes
2 answers
1k views

When calculating the hash of transaction, why is the version used as "01000000" instead of "00000001"?

According to the protocol documentation for tx, the first field on the transaction data is a version number of size 4. Based on this, I am trying to format the array of bytes needed to calculate the ...
Pedro Martins Timóteo da Costa's user avatar
5 votes
1 answer
1k views

How to parse a raw transaction field by field?

I am trying to understand all the parts of a legacy transaction. If I wanted to translate each part of the transaction to something human-readable, how would I need to go about that?
Luciana Ferreira's user avatar
1 vote
1 answer
2k views

What are the parts of a Bitcoin transaction in segwit format?

I know that pre-segwit transactions looked like the following (This is the hash of the transaction in block 170 - the 10000 bitcoin pizza exchange): ...
Jamo's user avatar
  • 167
2 votes
1 answer
668 views

What are the components of the raw block shown in this image?

I'm wondering what the portion between the block header and the transaction data (the un-annotated section) is. I can't seem to find any information on it.
Jamo's user avatar
  • 167
2 votes
1 answer
789 views

How can I get the destination address from raw transaction data?

I am writing a program that reads Bitcoin transactions from .blk files and performs some analysis on them. I would like to get the transaction destination addresses (like in some transaction explorers:...
zigak's user avatar
  • 21
1 vote
2 answers
333 views

Are transactions included in a block or is only the Merkle-root hash included in a block

Before broadcasting block into bitcoin blockchain, Does a Block transactions are included in a block or only the hash of them are included in a block. While I am surfing through net, I came across two ...
Arjun Reddy's user avatar
4 votes
2 answers
210 views

Is it possible to retrieve input addresses and input values of bitcoin transactions from raw blk.dat files?

I'm developing a script that processes blk.dat files from bitcoin core. So far, I am able to retrieve the following attributes for transaction inputs: "vin", "index", "...
Andreas's user avatar
  • 89
1 vote
1 answer
290 views

Structure of a bitcoin transaction, in particular the link to the previous transaction

I'm reading 'Blockchain and distributed ledgers' by Alexander Lipton and Adrien Treccani. I'm trying to understand how individual transactions are linked together. On page 338, they give the 'details ...
Neil D's user avatar
  • 113
3 votes
1 answer
150 views

Why does a script length of 254 need three bytes?

I'm looking at some raw txs (P2SH in that case) for learning, and I have one question about a particular tx: tx hash 0aeae24fa55544da49ba06ec338c9beee592ab4bea71eb8085908f377dd46084, i use this tool ...
cc1cc1's user avatar
  • 31
0 votes
1 answer
191 views

Transaction Wallet-Address extraction

When taking a look at the blk.dat files I am confused about how I would go about getting sender(s) and receiver(s). It is clear to me that if I have multiple inputs / outputs that there might be ...
TheEyeOfAr3s's user avatar
0 votes
1 answer
96 views

What Serialization format is used in Bitcoin?

What serialization format is used in bitcoin network? I know in Ethereum, there is the RLP which has been replaced with SSZ. Polkadot has it's own serialization format called SCALE, but I have not ...
Finlay Weber's user avatar
0 votes
1 answer
91 views

Exploiting the use of signature?

I've just learned signatures and why they're used in blockchain. As I understand there is a key pair that consist of one public key and one private key: Private keys are used to sign a message(...
BooRuleDie's user avatar
-1 votes
1 answer
71 views

TX doesn't contain an equal number of transactions with bitcoin addresses

I'm researching bitcoin and noticed that when transactions come through my node I don't have an equal number of "amounts" (e.g everything between 88ac and 19) with addresses (e.g everything ...
bitcoinluvr6969's user avatar
1 vote
3 answers
90 views

How can clients know the destination address for this P2WPKH transaction?

This is the raw hex of a random transaction I picked up on the blockchain: ...
Pedro D.'s user avatar

15 30 50 per page