Contract Monitoring

We can monitor any contract that is deployed to a network and has a Truffle artifact file. Monitoring provides realtime data for a deployed contract including: transactions (both successful and failed), events, and the contract's balance. It also displays useful information such as the address and creation transaction hash.

To start monitoring, click the DATA link in the sidebar and then the UPLOAD ARTIFACT FILES button.

Truffle Teams DATA view

From there your operating system's file picker will open. Navigate to your project's contract build folder and select the artifacts you wish to upload. You can select more than one at at time.

Truffle Teams DATA view

Select the network where this contract is deployed--we'll attempt to fill in the address from the artifact file. If the address does not auto-fill, but you're sure the correct network is selected, you may need to manually add it. Click the NEXT >> button to once you've confirmed all the data is correct.

Truffle Teams DATA view

Truffle Teams will then verify that the contracts exist on the given network at the given addresses. If there are errors shown in this dialog the contracts either exist on a different network or incorrect addresses were given in the last step. Click the CONFIRM >> button to begin uploading the artifacts and hooking up monitoring.

Truffle Teams DATA view

Once the upload is successful and monitoring has begun, you'll be redirected to the DATA page. From there you can click and individual contract to see more details including successful transactions, failed transactions, and events live.

Note: Monitoring begins once the contract is added to Truffle Teams and does not currently include historical data from before that point.

Truffle Teams DATA view

Truffle Teams DATA view

Montoring detail page showing details, transactions, and evevents.