process_message method
Creates ABI-compatible message, sends it to the network and monitors for the result transaction. Decodes the output messages' bodies.
If contract's ABI includes "expire" header, then SDK implements retries in case of unsuccessful message delivery within the expiration timeout: SDK recreates the message, sends it and processes it again.
The intermediate events, such as WillFetchFirstBlock, WillSend, DidSend,
WillFetchNextBlock, etc - are switched on/off by send_events flag
and logged into the supplied callback function.
The retry configuration parameters are defined in the client's NetworkConfig and AbiConfig.
If contract's ABI does not include "expire" header then, if no transaction is found within the network timeout (see config parameter ), exits with error.
Implementation
Future<ResultOfProcessMessage> process_message(
ParamsOfProcessMessage params) async {
final res =
await _tonCore.request('processing.process_message', params.toString());
return ResultOfProcessMessage.fromMap(res);
}