This PR exposes the eth_maxPriorityFeePerGas endpoint, which is introduced with EIP-1559. It also added a unit test that tests it. However, when such a unit test was introduced, it was realized that with the current implementation, it was impossible to send dynamic fee transactions, because of the following error returned from Geth: both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified. That is why transaction marshaling and unmarshalling logic needed to be changed, so gasPrice is not included for dynamic fee transactions anymore.
This PR exposes the
eth_maxPriorityFeePerGas
endpoint, which is introduced with EIP-1559. It also added a unit test that tests it. However, when such a unit test was introduced, it was realized that with the current implementation, it was impossible to send dynamic fee transactions, because of the following error returned from Geth:both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified
. That is why transaction marshaling and unmarshalling logic needed to be changed, sogasPrice
is not included for dynamic fee transactions anymore.Also, rename the
eth_feeHistory
parameters to be aligned with the specification and also provide therewardPercentiles
parameter (https://docs.alchemy.com/reference/eth-feehistory).