// Returns how many RAW is owned (balance) and how many
// have not yet been received by account (pending).
Returns how many RAW is owned (balance) and how many
have not yet been received by account (pending).
// Returns how many RAW is owned ( balance ) and how many // have not yet been received by account ( pending ) .
func AccountBalance(account string) (string, string, error) {
	payload := map[string]interface{}{
		"account": account,
	}
	r, err := client.fetchMap("account_balance", payload, "")
	if err != nil {
		return "", "", err
	}
	balance, ok := r["balance"]
	if !ok {
		return "", "", errors.New("Response of account_balance has no balance")
	}
	pending, ok := r["pending"]
	if !ok {
		return "", "", errors.New("Response of account_balance has no pending")
	}
	return balance, pending, nil
}
func AccountBalance ( account string ) ( string , string , error ) { payload := map [ string ] interface { } { " " : account , } r , err := client . fetchMap ( " " , payload , " " ) if err != nil { return " " , " " , err } balance , ok := r [ " " ] if ! ok { return " " , " " , errors . New ( " " ) } pending , ok := r [ " " ] if ! ok { return " " , " " , errors . New ( " " ) } return balance , pending , nil }
Returns how many RAW is owned (balance) and how many
have not yet been received by account (pending).
Returns how many RAW is owned ( balance ) and how many have not yet been received by account ( pending ) .