Bitcoin Forum
November 05, 2024, 11:03:31 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: solved: Skip optional parameter with php and jsonRPC  (Read 3484 times)
winnetou (OP)
Sr. Member
****
Offline Offline

Activity: 361
Merit: 250


View Profile
January 21, 2012, 02:18:59 PM
Last edit: January 21, 2012, 04:32:18 PM by winnetou
 #1

Hello,

I want to list ALL transactions of my bitcoin server but I can not figure out how to skip the optional "account" parameter in PHP.

I tried the following code snippets, unfortunately none of these is working:

$bitcoin->listtransactions("",5000,0);
$bitcoin->listtransactions(null,5000,0);
$bitcoin->listtransactions(5000,0)

Quote
listtransactions   [account] [count=10] [from=0]
Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts.

Hope somebody can help me!

Thanks!

SOLVED: "*" does it. e.g. listtransactions("*",5000,0)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!