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?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
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.