I downloaded the block template where each transaction contains 'data', 'txid', 'hash'. I read in some articles that the Merkelroot is calculated using 'txid'. Is true? Why txid not hash, and what's the difference between them? Before today I always used hash to compute merkleroot and getting the error message "bad-txnmerkleroot". If should use txid, how do I figure out the txid for coinbase that I built?
↧