• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

MerkleRoot requires transaction hash to build a merkle tree.... Is that the "hash" key/value within the getblocktemplate response or the "data"?

Started by Bitcoin, Feb 12, 2022, 12:51 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

MerkleRoot requires transaction hash to build a merkle tree.... Is that the "hash" key/value within the getblocktemplate response or the "data"?

I've created a function for parsing Json Objects and values and just when I think nothing can stop me, just when I feel like I'm the king of the blockchain and I can finally join in on the mining race ..... I get a painful reminder/reality check...


The transactions within the getblocktemplate each have these as keys and thier values.




Question


Which Key value from the list of contents within each transaction array is my merkleroot function supposed to use to build a merklerot Hash.... Is it data or hash ? Or is it the txid?


Merkleroot needs transaction hash....so is it hash Json Key or is it the data Json Key ?




Thanks in advance


Source: MerkleRoot requires transaction hash to build a merkle tree.... Is that the "hash" key/value within the getblocktemplate response or the "data"?