// Returns how many RAW is owned and
// how many have not yet been received by accounts list.
Returns how many RAW is owned and
how many have not yet been received by accounts list.
// Returns how many RAW is owned and // how many have not yet been received by accounts list .
func AccountsBalances(accounts []string) (map[string]map[string]string, error) {
	payload := map[string]interface{}{
		"accounts": accounts,
	}
	raw, err := client.call("accounts_balances", payload)
	if err != nil {
		return nil, err
	}
	var r map[string]map[string]map[string]string
	if err = json.Unmarshal(raw, &r); err != nil {
		return nil, err
	}
	balances, ok := r["balances"]
	if !ok {
		return nil, errors.New("Response of accounts_balances is empty")
	}
	return balances, nil
}
func AccountsBalances ( accounts [ ] string ) ( map [ string ] map [ string ] string , error ) { payload := map [ string ] interface { } { " " : accounts , } raw , err := client . call ( " " , payload ) if err != nil { return nil , err } var r map [ string ] map [ string ] map [ string ] string if err = json . Unmarshal ( raw , & r ) ; err != nil { return nil , err } balances , ok := r [ " " ] if ! ok { return nil , errors . New ( " " ) } return balances , nil }
Returns how many RAW is owned and
how many have not yet been received by accounts list.
Returns how many RAW is owned and how many have not yet been received by accounts list .