Hi,
I want to poll the Bitcoin Core wallet for new transactions. These transactions can belong to various accounts, ie the addresses have labels. How do I pass appropriate JSON in to select all transactions from all accounts. The spec says that the "listtransactions" call takes [account] as an optional parameter. However, when I pass "", I get the base wallet address and none of the transactions for the labeled addresses. I cannot seem to omit this parameter and just set the [count] or [skip] parameters as I am constantly getting an error.
I'm doing this in c++ although I'm not sure that language makes any difference. What is the required string format for the command omitting the account parameter.
{ "method": "listtransactions", "params" : [ "", 10, 0 ] }
gives transactions for the base account only. I want all accounts.
{ "method": "listtransactions", "params" : [ 10, 0 ] }
omitting the first parameter causes a server error with a HTTP status code of 500 and an error message of...
{"result":null,"error":{"code":-1,"message":"value is type int, expected str"},"id":null}
So if listtransactions expects a string as the first parameter, and "" specifies the unnamed wallet account, how do I specify all accounts including the named ones.
Rgds
The Vault