Bitcoin Forum
May 14, 2024, 02:50:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Abe Block Explorer Help  (Read 820 times)
Intrepid One (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
April 19, 2015, 03:13:27 PM
Last edit: April 19, 2015, 04:08:21 PM by Intrepid One
 #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
1715698249
Hero Member
*
Offline Offline

Posts: 1715698249

View Profile Personal Message (Offline)

Ignore
1715698249
Reply with quote  #2

1715698249
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715698249
Hero Member
*
Offline Offline

Posts: 1715698249

View Profile Personal Message (Offline)

Ignore
1715698249
Reply with quote  #2

1715698249
Report to moderator
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
April 19, 2015, 04:24:11 PM
 #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
achow101_alt
Sr. Member
****
Offline Offline

Activity: 268
Merit: 256


View Profile
April 20, 2015, 02:09:06 AM
 #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

Tip Me!: 1AQx99s7q1wVinbgXbA48BaZQVWpHe5gYM | My PGP Key: Fingerprint 0x17565732E08E5E41
MadAlpha
Member
**
Offline Offline

Activity: 100
Merit: 10



View Profile
February 17, 2016, 05: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.

Will do small programming tasks cheaply in exchange for BTC. Check out my thread or PM me!
riceberry
Hero Member
*****
Offline Offline

Activity: 491
Merit: 500



View Profile
February 24, 2016, 06:14:58 PM
 #5

Does anyone know the answer to the above question?
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
February 24, 2016, 07:12:30 PM
 #6


getblockhash 0
returns the hash, then getblock <hash>
gives you the block in hex format.

“God does not play dice"
StinkyLover
Sr. Member
****
Offline Offline

Activity: 454
Merit: 250


This industry is pure fiction


View Profile
February 24, 2016, 07:36:56 PM
 #7

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



Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!