bitcoin icon indicating copy to clipboard operation
bitcoin copied to clipboard

Fails to parse *verbose* parameter: "JSON value is not an integer as expected"

Open runeksvendsen opened this issue 9 years ago • 1 comments

I'm running addrindex-0.12, and I can't use the skip or count parameter with searchrawtransactions because it fails to parse the verbose parameter (and this comes before the others):

rune@nuc:~$ bitcoin-cli searchrawtransactions 1Hp7AM3VAAj9XKkMhV7S3idTefxXnnWFYS 1
error code: -1
error message:
JSON value is not an integer as expected
    # testnet
rune@nuc:~$ bitcoin-cli --rpcport=8334 searchrawtransactions 2MwBaWuQkfVF2xArSeTca56JWyy956bFowA 0
error code: -1
error message:
JSON value is not an integer as expected

runeksvendsen avatar Aug 12 '16 13:08 runeksvendsen

Can reproduce v0.12.1-addrindex on windows 64 bit gui console. There are workarounds: use curl curl --user rpcuser:rpcpassword --data-binary "@in.txt" -H "content-type: text/plain;" http://127.0.0.1:8332/ where in.txt is a file that contains {"jsonrpc": "1.0", "method": "searchrawtransactions", "params": ["1Hp7AM3VAAj9XKkMhV7S3idTefxXnnWFYS", 1, 0, 100]} or equivalent tool that does the same. Or you may try to place quotes around address (it allowed only verbose param to be recognized properly for me).

johnjacksonbtc avatar Aug 23 '16 07:08 johnjacksonbtc