@@ -18,11 +18,19 @@ module Network.Ethereum.Api.Eth where
1818import Data.ByteArray.HexString (HexString )
1919import Data.Solidity.Prim.Address (Address )
2020import Data.Text (Text )
21- import Network.Ethereum.Api.Types (Block , BlockT , Call , Change ,
22- DefaultBlock , Filter , Quantity ,
23- SyncingState , Transaction ,
24- TxReceipt )
25- import Network.JsonRpc.TinyClient (JsonRpc (.. ))
21+ import Network.Ethereum.Api.Types
22+ ( Block
23+ , BlockT
24+ , Call
25+ , Change
26+ , DefaultBlock
27+ , Filter
28+ , Quantity
29+ , SyncingState
30+ , Transaction
31+ , TxReceipt
32+ )
33+ import Network.JsonRpc.TinyClient (JsonRpc (.. ))
2634
2735-- | Returns the current ethereum protocol version.
2836protocolVersion :: JsonRpc m => m Text
@@ -146,6 +154,10 @@ estimateGas :: JsonRpc m => Call -> m Quantity
146154{-# INLINE estimateGas #-}
147155estimateGas = remote " eth_estimateGas"
148156
157+ -- | Returns transaction base fee per gas and effective priority fee per gas for the requested/supported block range.
158+ feeHistory :: (JsonRpc m ) => Quantity -> DefaultBlock -> [Double ] -> m FeeHistory
159+ feeHistory = remote " eth_feeHistory"
160+
149161-- | Returns information about a block by hash with only hashes of the transactions in it.
150162getBlockByHashLite :: JsonRpc m => HexString -> m (Maybe (BlockT HexString ))
151163{-# INLINE getBlockByHashLite #-}
0 commit comments