estimateGasUnitPrice method
Implementation
Future<BigInt> estimateGasUnitPrice(TransactionRequest transaction) async {
final txData = await simulateTransaction(transaction, estimateGasUnitPrice: true);
final txInfo = txData[0];
bool isSuccess = txInfo["success"];
if (!isSuccess) throw Exception({txInfo["vm_status"]});
final gasUnitPrice = txInfo["gas_unit_price"].toString();
return BigInt.parse(gasUnitPrice);
}