runLocal function

Future<ExecutionOutput> runLocal({
  1. required String accountStuffBoc,
  2. required String contractAbi,
  3. required String method,
  4. required Map<String, dynamic> input,
  5. required bool responsible,
})

Run contract local. Return json-encoded ExecutionOutput or throws error.

input - is json-encoded AbiToken

Implementation

Future<ExecutionOutput> runLocal({
  required String accountStuffBoc,
  required String contractAbi,
  required String method,
  required Map<String, dynamic> input,
  required bool responsible,
}) async {
  final res = await createLib().runLocal(
    accountStuffBoc: accountStuffBoc,
    contractAbi: contractAbi,
    method: method,
    input: jsonEncode(input),
    responsible: responsible,
  );
  return ExecutionOutput.fromJson(jsonDecode(res));
}