Bitcoin Forum
July 26, 2024, 11:18:46 AM *
News: Help 1Dq create 15th anniversary forum artwork.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: help me!why are getrawtransaction command can't list all block vaule?  (Read 689 times)
huolongyema (OP)
Full Member
***
Offline Offline

Activity: 156
Merit: 100


View Profile
July 30, 2014, 09:28:42 AM
 #1

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?
Challisto
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
July 30, 2014, 01:21:39 PM
 #2

Add this:
Code:
txindex=1
to your conf file.
huolongyema (OP)
Full Member
***
Offline Offline

Activity: 156
Merit: 100


View Profile
July 31, 2014, 02:17:16 AM
 #3

Add this:
Code:
txindex=1
to your conf file.

hi,i do this,but it dosen't work,even  i add "reindex=1"
huolongyema (OP)
Full Member
***
Offline Offline

Activity: 156
Merit: 100


View Profile
July 31, 2014, 02:48:42 AM
 #4

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?
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!