This repository contains scripts which output data compatible with MEV Explore. This is complementary to the tracing-based MEV inspectors.
- DyDx:
node scripts/getDydxLiqs.js
Set the URL
environment variable if you want to use a non-localhost node with the scripts.
Your script must outpout a CSV file with the following columns:
hash
: The transaction's hashstatus
:success
if theblock_number
: The transaction's block numbergas_price
: The transaction's gas pricerevenue
: The revenue made from the transactionprotocols
: The protocols involved in this transactionactions
: The action: arbitrage, liquidation, trade, sandwicheoa
: The sender of the transactioncontract
: The receiver of the transactionproxy_impl
: The proxy which was used by the contract. Typically arbitrageurs will have a main contract that they always use as their entrypoint, and they have multiple implementations for their various strategies
The output will then be directly inserted to the database of MEV Explore.
Alternatively, you could have the option to directly talk to a PostGres with this schema.