code: func parseTxAcceptedNtfnParams(params []json.RawMessage) (*chainhash.Hash,
  	btcutil.Amount, error) {
  
  	if len(params) != 2 {
  		return nil, 0, wrongNumParams(len(params))
  	}
  
  	// Unmarshal first parameter as a string.
  	var txHashStr string
  	err := json.Unmarshal(params[0], &txHashStr)
  	if err != nil {
  		return nil, 0, err
  	}
  
  	// Unmarshal second parameter as a floating point number.
  	var famt float64
  	err = json.Unmarshal(params[1], &famt)
  	if err != nil {
  		return nil, 0, err
  	}
  
  	// Bounds check amount.
  	amt, err := btcutil.NewAmount(famt)
  	if err != nil {
  		return nil, 0, err
  	}
  
  	// Decode string encoding of transaction sha.
  	txHash, err := chainhash.NewHashFromStr(txHashStr)
  	if err != nil {
  		return nil, 0, err
  	}
  
  	return txHash, amt, nil
  }
docs: // parseTxAcceptedNtfnParams parses out the transaction hash and total amount
  // from the parameters of a txaccepted notification.