getFeeData method
Gets fee data for EIP-1559 transactions.
Implementation
Future<FeeData> getFeeData() async {
final gasPrice = await getGasPrice();
// Estimate priority fee (simplified)
final maxPriorityFeePerGas = gasPrice ~/ BigInt.from(10);
final maxFeePerGas = gasPrice * BigInt.two;
return FeeData(
gasPrice: gasPrice,
maxFeePerGas: maxFeePerGas,
maxPriorityFeePerGas: maxPriorityFeePerGas,
);
}