Edited to make the question stand out:
The single transaction on the genesis block of testnet3 gives me an error upon getrawtransaction, all (?) the other blocks seem fine. What's up with this?
More detail below:
Hi there,
I can use bitcoind RPC to get the hash of the only transaction on the genesis block of testnet3:
tsp@cedrus:~/$ bitcoind getblock `bitcoind getblockhash 0`
"hash" : "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943",
"confirmations" : 279220,
"size" : 285,
"height" : 0,
"version" : 1,
"merkleroot" : "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
"tx" : [
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
],
"time" : 1296688602,
"nonce" : 414098458,
"bits" : "1d00ffff",
"difficulty" : 1.00000000,
"chainwork" : "0000000000000000000000000000000000000000000000000000000100010001",
"nextblockhash" : "00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206"
}
However, whenever I try to get transaction info from bitcoind about that transaction hash I get this error:
tsp@cedrus:~/$ bitcoind getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
error: {"code":-5,"message":"No information available about transaction"}
And asking for verbose, same error:
tsp@cedrus:~/$ bitcoind getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b 1
error: {"code":-5,"message":"No information available about transaction"}
However, if I ask about the block at height=1, no problems:
tsp@cedrus:~/$ bitcoind getblock `bitcoind getblockhash 1`{
"hash" : "00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206",
"confirmations" : 279219,
"size" : 190,
"height" : 1,
"version" : 1,
"merkleroot" : "f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba",
"tx" : [
"f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba"
],
"time" : 1296688928,
"nonce" : 1924588547,
"bits" : "1d00ffff",
"difficulty" : 1.00000000,
"chainwork" : "0000000000000000000000000000000000000000000000000000000200020002",
"previousblockhash" : "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943",
"nextblockhash" : "000000006c02c8ea6e4ff69651f7fcde348fb9d557a06e6957b65552002a7820"
}
No problem:
tsp@cedrus:~/src/$ bitcoind getrawtransaction f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba
01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0e0420e7494d017f062f503253482fffffffff0100f2052a010000002321021aeaf2f8638a129a3156fbe7e5ef635226b0bafd495ff03afe2c843d7e3a4b51ac00000000
And using verbose I get the json style reply:
tsp@cedrus:~/$ bitcoind getrawtransaction f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba 1
{
"hex" : "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0e0420e7494d017f062f503253482fffffffff0100f2052a010000002321021aeaf2f8638a129a3156fbe7e5ef635226b0bafd495ff03afe2c843d7e3a4b51ac00000000",
"txid" : "f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"coinbase" : "0420e7494d017f062f503253482f",
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 50.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "021aeaf2f8638a129a3156fbe7e5ef635226b0bafd495ff03afe2c843d7e3a4b51 OP_CHECKSIG",
"hex" : "21021aeaf2f8638a129a3156fbe7e5ef635226b0bafd495ff03afe2c843d7e3a4b51ac",
"reqSigs" : 1,
"type" : "pubkey",
"addresses" : [
"n3GNqMveyvaPvUbH469vDRadqpJMPc84JA"
]
}
}
],
"blockhash" : "00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206",
"confirmations" : 279219,
"time" : 1296688928,
"blocktime" : 1296688928
}
Is this expected? I'm running bitcoind with -txindex=1. Thanks for any tips!