Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: trustii on June 20, 2017, 09:28:46 AM



Title: Need Help Altcoin explorer
Post by: trustii on June 20, 2017, 09:28:46 AM
Hello All bitcointalk Members..

I Need Help.. I Made new Altcoin .. And working well .. Send , receive, Mining , Etc working fine ..

Now i Need explorer For My Altcoin .. So i choose Iquidus Explore ( https://github.com/iquidus/explorer (https://github.com/iquidus/explorer) ) for My Altcoin ..

So In settings.json I Need Help .. Can Anyone Tell me Where Can i get These Values from My Altcoin..

     "api": {

     blockindex": ,
    "blockhash": ",
    "txhash": "
    "address": "
}


And

 //genesis
  "genesis_tx": "",
  "genesis_block": "",


Thanks ..



Title: Re: Need Help Altcoin explorer
Post by: BitcoinHodler on June 20, 2017, 11:48:16 AM
i am mostly curious to know how you made an altcoin without knowing some pretty basic stuff first?

anyways i am not an expert but i try to point you in the right direction.
these "values" are from your blockchain. the genesis block is usually hard coded in the code as first thing. you can see how bitcoin's genesis block works and adapt it to your own block: https://en.bitcoin.it/wiki/Genesis_block

and for the rest they are your blocks, all blocks have a certain structure, again this is specific to your coin and how you coded it. blockindex is the block height like block 10, 1000, 472562,...
block hash is the SHA256 (maybe 2 times) of the whole block hex + its headers. again it may be different from coin to coin!
tx hash should be an array of transaction hexes that have been included in that block (including the coinbase transaction) again may be different since not all coins are minable i don't know if they all have coinbase!
i don't know what address means, maybe base58 addresses of those keys used in the transactions!

it is best to see the original code where you copied (forked) your altcoin from and see how they are doing it.

it is also safe assumption that these altcoins are based on bitcoin so these two links can be helpful in understanding how things work:
https://bitcoin.org/en/developer-guide#block-chain
https://bitcoin.org/en/developer-reference#block-chain


Title: Re: Need Help Altcoin explorer
Post by: trustii on June 21, 2017, 04:47:29 AM
Thanks dude..

Can Anyone tell me How to get genesis_tx ??