These examples demonstrate the possible use cases of Forta Agents with little to no configuration.
To run these examples, you'll need to:
- Navigate to the directory of the example you'd like to run in your terminal
- Run
npm install
to install the required packages - Run
npm test
to run the unit tests - Run
npm start
to start the agent locally. If you get an error likeno jsonRpcUrl provided in config
, then you should create a file called forta.config.json in the example folder that looks like:
{
"jsonRpcUrl": "https://mainnet.infura.io/v3/YOUR_API_KEY"
}