Title: solved: how to send optional arguments in PHP with jsonRPC Post by: winnetou on July 17, 2011, 07:39:57 PM Hello!
This is the code to get the balance of a bitcoin account called user1 Code: echo $bitcoin->getreceivedbylabel("user1"); I would like to add the optional parameter minconf=2 but I can not figure out how to do this. Code: echo $bitcoin->getreceivedbylabel("user1 minconf=2"); Hope somebody can help me. Thanks Title: Re: pls help: how to send Optional arguments in PHP with jsonRPC Post by: BCEmporium on July 17, 2011, 11:58:53 PM The proper way is:
echo $bitcoin->getreceivedbylabel("user1",2); Title: Re: pls help: how to send Optional arguments in PHP with jsonRPC Post by: winnetou on July 18, 2011, 07:25:46 AM The proper way is: echo $bitcoin->getreceivedbylabel("user1",2); thank you! Title: Re: solved: how to send optional arguments in PHP with jsonRPC Post by: Clark on September 21, 2011, 05:32:24 PM I am working in php, and I would like to skip an optional parameter.
Say I want to get 5 transactions, but I don't care about which account was involved. I am using php with the jsonRPCClient.php module. All of the following DO NOT WORK: Code: listtransactions(array(null, 5)) Any help in this area would be awesome. Title: Re: solved: how to send optional arguments in PHP with jsonRPC Post by: Clark on January 21, 2012, 04:28:05 PM I think this will work to select the last 25 transactions, regardless of account:
Code: listtransactions('*',25) Title: Re: solved: how to send optional arguments in PHP with jsonRPC Post by: winnetou on January 21, 2012, 04:31:27 PM I think this will work to select the last 25 transactions, regardless of account: Code: listtransactions('*',25) perfect! thank you very much Title: Re: pls help: how to send Optional arguments in PHP with jsonRPC Post by: terrytibbs on January 23, 2012, 01:21:10 PM The proper way is: Why oh why would you use double-quotes there?!?!echo $bitcoin->getreceivedbylabel("user1",2); Title: Re: pls help: how to send Optional arguments in PHP with jsonRPC Post by: Remember remember the 5th of November on January 23, 2012, 03:07:24 PM The proper way is: Why oh why would you use double-quotes there?!?!echo $bitcoin->getreceivedbylabel("user1",2); |