In PHP I run
$bitcoin->listtransactions("count = 5, offset = 0");
In the hope of getting 5 transactions only, but I get the response
bool(false)
When I run $bitcoin->listtransactions(); alone, it works fine.
What am I doing wrong?
In PHP I run
$bitcoin->listtransactions("count = 5, offset = 0");
In the hope of getting 5 transactions only, but I get the response
bool(false)
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).
Function:
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 10
[skip]
(int) number of recent tx not to return, default is 0
[include_watch_only]
(bool) include watch-only addresses, default is false
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.
count = 5, offset = 0
.
Feb 1, 2015 at 0:13