eip1559 library

EIP-1559 Ethereum and Web3 market fee and gas estimation for Dart.

Classes

Block
Simple block information.
Fee
EIP-1559 fees.
FeeHistory
Fee history.

Functions

getBlockByNumber(String url, String blockNumber, {bool containFullObject = true, Client? client}) Future<Block>
Gets a block from the Web3 endpoint.
getFeeHistory(String url, int blockCount, String block, {List<double>? rewardPercentiles, Client? client}) Future<FeeHistory>
Returns fee history of some blocks
getGasInEIP1559(String url, {List<double> rewardPercentiles = const [25, 50, 75], int historicalBlocks = 10, String block = 'pending'}) Future<List<Fee>>
Calculates gas and market fees according to EIP-1559.