getrawtransaction

0 votes

So what should I do in order to obtain the parameter BITCOINJ_MULTICHAIN_DEMO_RAWHEX=... ?

The output for getblock is the following:

{
    "hash" : "0000adedf05fa101480441ae9f778bffbdc08ab94e7094e02f57e7489fd42a3c",
    "miner" : "19xgXaukAb261ihYA2pJfWNmVrYCMNjEsCu26N",
    "confirmations" : 15,
    "size" : 221,
    "height" : 0,
    "version" : 1,
    "merkleroot" : "ca60040662883d81484f1f2b373ebf6b6f5a06bbdbda0a1c43ca8b96087aca24",
    "tx" : [
        "ca60040662883d81484f1f2b373ebf6b6f5a06bbdbda0a1c43ca8b96087aca24"
    ],
    "time" : 1457635407,
    "nonce" : 11036,
    "bits" : "1f00ffff",
    "difficulty" : 0.00001526,
    "chainwork" : "0000000000000000000000000000000000000000000000000000000000010001",
    "nextblockhash" : "00007105570f44f16c07c20478581f46670cfff1b157d2015951d363dd8da3e3"
}

 

related to an answer for: getrawtransaction
asked Mar 10, 2016 by anonymous

1 Answer

0 votes

Seems like you forgot the extra false parameter at the end of the getblock call? That gives the block in raw hexadecimal format, rather than picking apart its meaning.

answered Mar 10, 2016 by MultiChain
...