Title: Abe Block Explorer Help Post by: Intrepid One on April 19, 2015, 03:13:27 PM I am struggling trying to add a coin to abe block explorer
here is the bitcoin sample i am struggling to replicate # Main Bitcoin chain: if tx_hash_hex == "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b": return "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c 6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b7 3ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909 a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11 d5fac00000000" the if tx_hash_hex == "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b": is the merkle root, what i don't get is where this return "" number comes from ? this is the link to the GitHub https://github.com/bitcoin-abe/bitcoin-abe/blob/master/Abe/genesis_tx.py (https://github.com/bitcoin-abe/bitcoin-abe/blob/master/Abe/genesis_tx.py) Can someone shed some light on this please ? , i have googled the crap out of this and can't find much thanks Title: Re: Abe Block Explorer Help Post by: Amph on April 19, 2015, 04:24:11 PM it could be the block hash or the previous block hash
but i found this, it seems that is the raw transaction https://chrispacia.wordpress.com/2013/09/02/bitcoin-mining-explained-like-youre-five-part-2-mechanics/ not entirely sure Title: Re: Abe Block Explorer Help Post by: achow101_alt on April 20, 2015, 02:09:06 AM That is the raw transaction data in hex format of the first transaction in bitcoin.
Here is the breakdown from bitcoin.it Quote 01000000 - version 01 - input 0000000000000000000000000000000000000000000000000000000000000000FFFFFFFF - prev output 4D - script length 04FFFF001D0104455468652054696D65732030332F4A616E2F32303039204368616E63656C6C6F7 2206F6E206272696E6B206F66207365636F6E64206261696C6F757420666F722062616E6B73 - scriptsig FFFFFFFF - sequence 01 - outputs 00F2052A01000000 - 50 BTC 43 - pk_script length 4104678AFDB0FE5548271967F1A67130B7105CD6A828E03909A67962E0EA1F61DEB649F6BC3F4CE F38C4F35504E51EC112DE5C384DF7BA0B8D578A4C702B6BF11D5FAC - pk_script 00000000 - lock time Title: Re: Abe Block Explorer Help Post by: MadAlpha on February 17, 2016, 05:45:32 PM I am trying to figure out this same problem (trying to set up an explorer for an altcoin).
The problem is getting the raw transaction data for the genesis transaction from blk0001.dat. I can view the data in a hex editor, but I don't know how long the transaction is. It is not in a "standard" format since this coin has changed it. Title: Re: Abe Block Explorer Help Post by: riceberry on February 24, 2016, 06:14:58 PM Does anyone know the answer to the above question?
Title: Re: Abe Block Explorer Help Post by: YarkoL on February 24, 2016, 07:12:30 PM getblockhash 0 returns the hash, then getblock <hash> gives you the block in hex format. Title: Re: Abe Block Explorer Help Post by: StinkyLover on February 24, 2016, 07:36:56 PM Here's what I did. It involves clearing out your appdata\Roaming\<coinname> folder
Step 0 - BACKUP YOUR WALLET.DAT 1. Delete all contents of appdata\Roaming\<coinname> (or copy them elsewhere if you don't want to resync the entire blockchain again). You can even just rename the folder and recreate a new one for the data capture. 2. Restart the wallet until it starts to sync and then stop it The block data needed to build abe explorer is now all in the DEBUG.LOG. Been a long time since I built an abe explorer but the debug.log holds the info. I think that return number is the value for 'coinbase' in the debug.log |