getblock verbose

+2 votes
I am using getblock (verbose=4), and i don't seem to be getting any extra information on the tx eg:

getblock "71",(verbose=4)
{"method":"getblock","params":["71,(verbose=4)"],"id":1,"chain_name":"php"}
{
"hash" : "00a31537cdba41ad687e9f14111313c56734d11f80458e2440f3410341251089",
"miner" : "16YU9NqCaugEEXfdB65o65wM6eZnerERVp",
 "confirmations" : 1,
 "size" : 551,
"height" : 71,
"version" : 3,
 "merkleroot" : "d05b1f510319c9e764c84edf65743221b6bc8689d6a2ba971d4870afac9a40fb",
"tx" : [
"c7d95137bae38844529a211d35bd09071e18166f347d4077914ed639e6dbd73a",
"af31d8ae32fc6085e0c8ed1287160ec95268f8f596454dc23dec63c45ea4b1de"
],
"time" : 1508514758,
"nonce" : 169,
"bits" : "2000ffff",
 "difficulty" : 0.00000006,
"chainwork" : "0000000000000000000000000000000000000000000000000000000000004800",
"previousblockhash" : "009eff6b475a45accdd570e052036eaae40b904b76a1bc5779660183e7c0e55d"
}

you can see this online at http://php.tagcash.com/Philippine%20Pesos%20(PHP)/tx/af31d8ae32fc6085e0c8ed1287160ec95268f8f596454dc23dec63c45ea4b1de

I can get the data I need by doing a getrawtransaction followed by a decoderawtransaction, but just wanted to make sure this was they best way to do it before moving on.

I thought I would be getting the data i need for the transaction there - do I have to take other steps to get to the data i need?
asked Oct 20, 2017 by mark
edited Oct 20, 2017 by mark

1 Answer

0 votes

It looks like you're just passing the parameters wrong. Please try:

getblock 71 4

The notation verbose=4 was just intended to tell you to pass 4 for the verbose parameter.

answered Oct 20, 2017 by MultiChain
I thought I had gone through all the permutations of syntax...:-) On the TAG site we will probably put some guidance on syntax for people like me..lots of examples will help people in future I think.
...