In PHP I run
$bitcoin->listtransactions("count = 5, offset = 0");
In the hope of getting 5 transactions only, but I get the response
When I run $bitcoin->listtransactions(); alone, it works fine.
What am I doing wrong?
According to documentation, there are several optional parameters you can provide in order to retrieve list of transactions for account(s).
listtransactions [account] [count=10] [skip=0] [include_watch_only]
[account] (string) leave
"" for default account and
"*" for all accounts, default
[count] (int) number of recent tx to return, default is
[skip] (int) number of recent tx not to return, default is
[include_watch_only] (bool) include watch-only addresses, default is
I suggest to try the call with all 4 parameters:
$bitcoin->listtransactions("*", 10, 0, false);
I am not PHP expert but the output you get might be indication of missing parameters.