legacyGasPrice function

Future<Map<String, dynamic>> legacyGasPrice(
  1. Web3Client client
)

Implementation

Future<Map<String, dynamic>> legacyGasPrice(Web3Client client) async {
  final gas = await client.getGasPrice();

  return {
    'maxFeePerGas': gas.getInWei,
    'maxPriorityFeePerGas': gas.getInWei,
  };
}