getblock expects bolean. please look at this error when I execute getblock with verbose = 4

+1 vote

getblock('0000010b36c727389e9ef920b7b4a6f327d95f7a33caf8d9c2091b762fef7d2a',4)

response i get:

status="500" and error="value is type int, expected bool"

and if i use TRUE or FALSE works fine. 

so either documentation is misleading or this is a bug.

getblockhash|height
(verbose=1)
Returns information about the block with hash (retrievable from getblockhash) or at the given height in the active chain. Set verbose to 0 or false for the block in raw hexadecimal form. Set to 1 or true for a block summary including the miner address and a list of txids. Set to 2 to 3 to include more information about each transaction and its raw hexadecimal. Set to 4 to include a full description of each transaction, formatted like the output of decoderawtransaction.
asked Aug 30, 2017 by ofumbi

1 Answer

0 votes
This is probably because you are using an old alpha version of MultiChain – please upgrade to the latest release.
answered Aug 30, 2017 by MultiChain
...