Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: huolongyema on July 30, 2014, 09:28:42 AM



Title: help me!why are getrawtransaction command can't list all block vaule?
Post by: huolongyema on July 30, 2014, 09:28:42 AM
hi,all,i had met a question,please hlep me~
i want to know each block coin value,
first,use  command   "getblockhash XX"           --->    hashXX
second,use command "getblock    hashXX"       ---->    txXXX
then,use  command  "getrawtransaction  txXXX  1"   --->block coin value
some blocks return coin value is ok, the other return  “No information available about transaction (code -5)”,
that why?

if iwant get all block value correct,how can i do?


Title: Re: help me!why are getrawtransaction command can't list all block vaule?
Post by: Challisto on July 30, 2014, 01:21:39 PM
Add this:
Code:
txindex=1
to your conf file.


Title: Re: help me!why are getrawtransaction command can't list all block vaule?
Post by: huolongyema on July 31, 2014, 02:17:16 AM
Add this:
Code:
txindex=1
to your conf file.

hi,i do this,but it dosen't work,even  i add "reindex=1"


Title: Re: help me!why are getrawtransaction command can't list all block vaule?
Post by: huolongyema on July 31, 2014, 02:48:42 AM
Add this:
Code:
txindex=1
to your conf file.

hi,i do this,but it dosen't work,even  i add "reindex=1"

Example of a transaction ID that doesn't work?

i build a altcoin, user X11,block height  is 2000 now,
i find some blocks can't use these command,if i want find one block coin value,does there have any other way?