proof_message_data method

Future<void> proof_message_data(
  1. ParamsOfProofMessageData params
)

This function first proves the corresponding transaction, ensures that the proven transaction refers to the given message and compares given data with the proven. If the given data differs from the proven, the exception will be thrown. The input parameter is a single message's JSON object (see params description), which was queried from TONOS API using functions such as net.query, net.query_collection or net.wait_for_collection.

If message's BOC and/or non-null src_transaction.id or dst_transaction.id are not provided in the JSON, they will be queried from TONOS API.

Please note, that joins (like block, dst_account, dst_transaction, src_account, src_transaction, etc. in Message entity) are separated entities and not supported, so function will throw an exception in a case if JSON being checked has such entities in it.

For more information about proofs checking, see description of proof_block_data function.

Implementation

Future<void> proof_message_data(ParamsOfProofMessageData params) async {
  await _tonCore.request(
      'proofs.proof_message_data', params.toString());
}