Overview
Before you test your Mesh API implementation, we recommend that you disable balance tracking and reconciliation. Balance tracking checks that the balance for an address does not go below zero. Reconciliation ensures that the balance that you calculated matches the balance returned by the/account/balance endpoint.
Reminder: After you have completed testing your Mesh API implementation, you need to enable these complex checks again! Your Mesh API implementation is complete when these complex checks pass the mesh-cli tool testing.
You can manage balance tracking with the balance_tracking_disabled field. To manage reconciliation, edit the value of the reconciliation_disabled field. These fields are part of the data object of the Mesh API configuration file.
Disabling and Enabling Complex Checks
To disable and enable balance tracking and reconciliation, perform the following steps:- Disable balance tracking and reconciliation in your Mesh API implementation (the
configfile). Set the values for thereconciliation_disabledandbalance_tracking_disabledfields totrue. - Run the
check:dataandcheck:constructiontests with themesh-clitool. (Read our How to Test your Mesh API Implementation documentation.) - Enable balance tracking and reconciliation in your Mesh API implementation by setting the values of the
reconciliation_disabledandbalance_tracking_disabledfields tofalse. - Run the
check:dataandcheck:constructiontests again.