Author

Topic: Abe Block Explorer Help (Read 837 times)

sr. member
Activity: 454
Merit: 250
This industry is pure fiction
February 24, 2016, 02:36:56 PM
#7
Here's what I did. It involves clearing out your appdata\Roaming\ folder

Step 0 - BACKUP YOUR WALLET.DAT

1. Delete all contents of appdata\Roaming\ (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



legendary
Activity: 996
Merit: 1013
February 24, 2016, 02:12:30 PM
#6

getblockhash 0
returns the hash, then getblock
gives you the block in hex format.
hero member
Activity: 491
Merit: 500
February 24, 2016, 01:14:58 PM
#5
Does anyone know the answer to the above question?
member
Activity: 100
Merit: 10
February 17, 2016, 12:45:32 PM
#4
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.
sr. member
Activity: 268
Merit: 258
April 19, 2015, 09:09:06 PM
#3
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
legendary
Activity: 3248
Merit: 1070
April 19, 2015, 11:24:11 AM
#2
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
newbie
Activity: 21
Merit: 0
April 19, 2015, 10:13:27 AM
#1
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

Can someone shed some light on this please ? , i have googled the crap out of this and can't find much

thanks
Jump to: