code: func parseAccountBalanceNtfnParams(params []json.RawMessage) (account string,
  	balance btcutil.Amount, confirmed bool, err error) {
  
  	if len(params) != 3 {
  		return "", 0, false, wrongNumParams(len(params))
  	}
  
  	// Unmarshal first parameter as a string.
  	err = json.Unmarshal(params[0], &account)
  	if err != nil {
  		return "", 0, false, err
  	}
  
  	// Unmarshal second parameter as a floating point number.
  	var fbal float64
  	err = json.Unmarshal(params[1], &fbal)
  	if err != nil {
  		return "", 0, false, err
  	}
  
  	// Unmarshal third parameter as a boolean.
  	err = json.Unmarshal(params[2], &confirmed)
  	if err != nil {
  		return "", 0, false, err
  	}
  
  	// Bounds check amount.
  	bal, err := btcutil.NewAmount(fbal)
  	if err != nil {
  		return "", 0, false, err
  	}
  
  	return account, bal, confirmed, nil
  }
docs: // parseAccountBalanceNtfnParams parses out the account name, total balance,
  // and whether or not the balance is confirmed or unconfirmed from the
  // parameters of an accountbalance notification.