code: func GetBalanceTotals() (fSaved, fAcknowledged, eSaved, eAcknowledged int64, err error) {
  	type multiBalanceResponse struct {
  		FactoidAccountBalances struct {
  			Ack   int64 `json:"ack"`
  			Saved int64 `json:"saved"`
  		} `json:"fctaccountbalances"`
  		EntryCreditAccountBalances struct {
  			Ack   int64 `json:"ack"`
  			Saved int64 `json:"saved"`
  		} `json:"ecaccountbalances"`
  	}
  
  	req := NewJSON2Request("wallet-balances", APICounter(), nil)
  	resp, err := walletRequest(req)
  	if err != nil {
  		return
  	} else if resp.Error != nil {
  		err = resp.Error
  		return
  	}
  
  	balances := new(multiBalanceResponse)
  	err = json.Unmarshal(resp.JSONResult(), balances)
  	if err != nil {
  		return
  	}
  
  	fSaved = balances.FactoidAccountBalances.Saved
  	fAcknowledged = balances.FactoidAccountBalances.Ack
  	eSaved = balances.EntryCreditAccountBalances.Saved
  	eAcknowledged = balances.EntryCreditAccountBalances.Ack
  
  	return
  }
docs: // GetBalanceTotals return the total value of Factoids and Entry Credits in the
  // wallet according to the the server acknowledgement and the value saved in the
  // blockchain.