BitShares Forum

Main => Technical Support => Topic started by: wimaka on October 20, 2017, 07:58:50 pm

Title: WebSocket query format help
Post by: wimaka on October 20, 2017, 07:58:50 pm
I'm trying to retrieve the account balances for a few people and trying to get:

a) The amount of ETH in each account
b) The amount of ALL currencies in each account

I can't quite get these queries to work.  Can someone help?

Code: [Select]
// Query all
{"id":1, "method":"call", "params":[0,"get_account_balances", [["testuser-1",[]]]]}

// Query ETH
{"id":1, "method":"call", "params":[0,"get_account_balances", [["testuser-1",["ETH"]]]]}