Live monitoring
For an agent in monitoring you generally do not have to provide private keys. This is possible because in monitoring, the agents make no transactions, they just observe transactions being made in real time.
We therefore recommend that you keep your private keys private and instead inherit from the
ImpersonationAgent
.
Dojo can only monitor environments with
backend_type='live'
.
Calling monitor_run
will:
- Connect to the RCP node.
- Create a local database file that all data is written to.
- If requested, it launches a server that serves the data file over HTTP. Our dashboard app can connect to this.
- As new blocks come in, it asks all agents to make decisions on what actions they would execute.
- At this point the agent can also compute arbitary signals for later analysis.
- Agent actions are not actually executed in monitoring mode.
- Track metrics of all agents and protocol and writes them to the database file for analysis.