Bitcoin Forum
March 27, 2017, 10:32:10 PM *
News: Latest stable version of Bitcoin Core: 0.14.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: jsonRPCClient Empty String Problem  (Read 868 times)
infra172
Member
**
Offline Offline

Activity: 64


View Profile
April 19, 2011, 06:13:02 PM
 #1

I'm having a problem getting the balance of the default empty string account using jsonRPCClient.php. Other commands are working fine and I can retrieve the balance of labeled accounts. But, for some reason, I can't get the balance of the "" account.

Here is what the request data looks like encoded in JSON:

{"method":"getbalance","params":["\"\""],"id":1}

Anyone else run into this problem?

1490653930
Hero Member
*
Offline Offline

Posts: 1490653930

View Profile Personal Message (Offline)

Ignore
1490653930
Reply with quote  #2

1490653930
Report to moderator
1490653930
Hero Member
*
Offline Offline

Posts: 1490653930

View Profile Personal Message (Offline)

Ignore
1490653930
Reply with quote  #2

1490653930
Report to moderator
1490653930
Hero Member
*
Offline Offline

Posts: 1490653930

View Profile Personal Message (Offline)

Ignore
1490653930
Reply with quote  #2

1490653930
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin-Qt, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
infra172
Member
**
Offline Offline

Activity: 64


View Profile
April 19, 2011, 06:35:12 PM
 #2

Figured it out on my own.  Maybe someone else will have the same problem.

Should be

{"method":"getbalance","params":[""],"id":1}

Don't know why I didn't think of it before.


Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!