Post
Topic
Board Development & Technical Discussion
Re: Bitcoin Core (Qt) JSON - RPC listtransactions method problem
by
syslog
on 25/03/2014, 17:02:11 UTC
Thank you very much sir,

I wasted a lot of time mucking with the syntax as I'm a JSON newbie and thought the error with my syntax. Would help to document that tidbit Smiley

There are lots of 'optional' parameters in the API, how would I omit a numeric value? What about other string values or would they all be covered by the *?

Thx Smiley
The Vault

well it depends on rpc call.

you have to use brute force, here is the a good numbers for brute force.

..,-1000,-100,-10,-1, 0, 1, 10, 100, 1000, 10000, ...

for string values
"", "*"

Also if a parameter is optional and you don't want to use it. dont pass any variable(string, integer, float, ...). just let it blank. Let  rpc server handle that parameters.