prepareOperation static method

Future<List<OperationModel>> prepareOperation(
  1. String server,
  2. List<OperationModel> operations
)

Implementation

static Future<List<OperationModel>> prepareOperation(
    String server, List<OperationModel> operations) async {
  var feeEstimation = FeeEstimation(server, operations);
  var estimate = await feeEstimation.estimateFees();
  operations[0].fee = estimate['estimatedFee'].toString();
  operations[0].gasLimit = estimate['gas'];
  operations[0].storageLimit = estimate['storageCost'];
  return operations;
}