proof_transaction_data method
This function requests the corresponding block, checks block proofs, ensures that given
transaction exists in the proven block 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 transaction'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 transaction's BOC and/or block_id are not provided in the JSON, they will be queried from
TONOS API.
Please note, that joins (like account, in_message, out_messages, etc. in Transaction
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_transaction_data(
ParamsOfProofTransactionData params) async {
await _tonCore.request(
'proofs.proof_transaction_data', params.toString());
}