estimateGas method
Future<BigInt>
estimateGas({
- EthereumAddress? sender,
- EthereumAddress? to,
- EtherAmount? value,
- EtherAmount? gasPrice,
- EtherAmount? maxPriorityFeePerGas,
- EtherAmount? maxFeePerGas,
- Uint8List? data,
Implementation
Future<BigInt> estimateGas({
EthereumAddress? sender,
EthereumAddress? to,
EtherAmount? value,
EtherAmount? gasPrice,
EtherAmount? maxPriorityFeePerGas,
EtherAmount? maxFeePerGas,
Uint8List? data,
}) async {
return _client.estimateGas(
CallRequest(
from: sender?.hex,
to: to?.hex,
value: value?.inWei,
gasPrice: gasPrice?.inWei,
maxPriorityFeePerGas: maxPriorityFeePerGas?.inWei,
maxFeePerGas: maxFeePerGas?.inWei,
data: data,
),
);
}