using System.Numerics;
using System.Runtime.Serialization;
using Nethereum.Hex.HexTypes;
namespace Nethereum.RPC.Eth.DTOs
{
///
/// Fee history for the returned block range. This can be a subsection of the requested range if not all blocks are available.
///
[DataContract]
public class FeeHistoryResult
{
///
/// Lowest number block of the returned range.
///
[DataMember(Name = "oldestBlock")]
public HexBigInteger OldestBlock { get; set; }
///
/// An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks
///
[DataMember(Name = "baseFeePerGas")]
public HexBigInteger[] BaseFeePerGas { get; set; }
///
/// An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit. Floating point value between 0 and 1.
///
[DataMember(Name = "gasUsedRatio")]
public decimal[] GasUsedRatio { get; set; }
///
/// A two-dimensional array of effective priority fees per gas at the requested block percentiles.
/// A given percentile sample of effective priority fees per gas from a single block in ascending order, weighted by gas used. Zeroes are returned if the block is empty.
///
[DataMember(Name = "reward")]
public HexBigInteger[][] Reward { get; set; }
}
}