Example #1
0
 /// <summary>
 /// 估算交易费用
 /// </summary>
 /// <returns></returns>
 public IRpcMethodResult EstimateSmartFee()
 {
     try
     {
         BlockComponent block = new BlockComponent();
         long           fee   = block.EstimateSmartFee();
         return(Ok(fee));
     }
     catch (CommonException ce)
     {
         return(Error(ce.ErrorCode, ce.Message, ce));
     }
     catch (Exception ex)
     {
         return(Error(ErrorCode.UNKNOWN_ERROR, ex.Message, ex));
     }
 }