I was trying to use eth_estimateGas
but It throws execution reverted
, The error doesn't indicate anything.
This is my code :
final gas = await _web3Client.estimateGas(
sender: sender,
to: toAddress,
data: data,
maxFeePerGas: maxFeePerGas,
maxPriorityFeePerGas: maxPriorityFeePerGas,
value: value,
);