emulateTx method

Future<List<Map>> emulateTx(
  1. String address,
  2. Map txBody, {
  3. String block = "best",
  4. String? gasPayer,
})

Emulate the execution of a transaction.adress address of caller, txBody Tx body to be emulated, block Target at which block? by default "best",

Implementation

Future<List<Map>> emulateTx(String address, Map txBody,
    {String block = "best", String? gasPayer}) {
  Map emulateBody = calcEmulateTxBody(address, txBody, gaspayer: gasPayer);
  return emulate(emulateBody, block: block);
}