Skip to content

Files

Latest commit

849bf90 · Apr 24, 2023

History

History

sandwich

Sandwich Attack

Description

This agent detects transactions with a possibility of MEV attacks.

Supported Chains

  • Ethereum

Overview

This agent detects an openzeppelin timelock event call.

Installation

npm install

Run

Before run the agent to see how it works with real data, specify the JSON-RPC provider in the forta.config.json file. Uncomment the jsonRpcUrl property and set it to a websocket provider (e.g. wss://mainnet.infura.io/ws/v3/) if deploying in production, else use HTTP provider if testing with jest. Then ready to run the agent.

npm start

Test

npm test