run_tvm method

Future<ResultOfRunTvm> run_tvm(
  1. ParamsOfRunTvm params
)

Performs only a part of compute phase of transaction execution that is used to run get-methods of ABI-compatible contracts.

If you try to run get-methods with run_executor you will get an error, because it checks ACCEPT and exits if there is none, which is actually true for get-methods.

To get the account BOC (bag of cells) - use net.query method to download it from GraphQL API (field boc of account) or generate it with abi.encode_account method. To get the message BOC - use abi.encode_message or prepare it any other way, for instance, with FIFT script.

Attention! Updated account state is produces as well, but only account_state.storage.state.data part of the BOC is updated.

Implementation

Future<ResultOfRunTvm> run_tvm(ParamsOfRunTvm params) async {
  final res = await _tonCore.request('tvm.run_tvm', params.toString());
  return ResultOfRunTvm.fromMap(res);
}