/**<summary>Compute per block statistics for a given window. All amounts are in satoshis. * It won't work for some heights with pruning.</summary>**/ ///<param name="height">The Height of the target block.</param> ///<param name="filterBlockStats">Values to plot.</param> public async Task <string> GetBlockStats(int height, List <BlockStatsFilter> filterBlockStats = null) { GetBlockStats getBlockStats = new GetBlockStats { Height = height, BlockStatsFilter = filterBlockStats }; string response = await httpRequest.SendReq(MethodName.getblockstats, getBlockStats); return(response); }
/**<summary>Compute per block statistics for a given window. All amounts are in satoshis. * It won't work for some heights with pruning.</summary>**/ ///<param name="blockhash">The block hash of the target block.</param> ///<param name="filterBlockStats">Values to plot.</param> public async Task <string> GetBlockStats(string blockhash, List <BlockStatsFilter> filterBlockStats = null) { GetBlockStats getBlockStats = new GetBlockStats { BlockHash = blockhash, BlockStatsFilter = filterBlockStats }; string response = await httpRequest.SendReq(MethodName.getblockstats, getBlockStats); return(response); }