code: func handleNewTransaction(params []byte) (interface{}, *factom.JSONError) {
  	req := new(transactionRequest)
  	if err := json.Unmarshal(params, req); err != nil {
  		return nil, newInvalidParamsError()
  	}
  
  	if err := fctWallet.NewTransaction(req.Name); err != nil {
  		return nil, newCustomInternalError(err.Error())
  	}
  
  	tx := fctWallet.GetTransactions()[req.Name]
  	resp, err := factoidTxToTransaction(tx)
  	if err != nil {
  		return nil, newCustomInternalError(err.Error())
  	}
  	resp.Name = req.Name
  	resp.FeesRequired = feesRequired(tx)
  
  	return resp, nil
  }
docs: // transaction handlers