/// <summary> /// 获取区块的所有奖励,包含挖矿和手续费 /// </summary> /// <param name="blockHash"></param> /// <returns></returns> public IRpcMethodResult GetBlockReward(string blockHash) { try { BlockComponent block = new BlockComponent(); long reward = block.GetBlockReward(blockHash); return(Ok(reward)); } catch (CommonException ce) { return(Error(ce.ErrorCode, ce.Message, ce)); } catch (Exception ex) { return(Error(ErrorCode.UNKNOWN_ERROR, ex.Message, ex)); } }