Cookie Finder helps detect potential malicious validators by analyzing sandwiched transactions. The end goal is to provide an ELO score for each validator based on their behavior every epoch and to provide a list of validators that are likely to be malicious when the ELO score is below a certain threshold.
- Collect transactions from the sandwicher
- Filter out transactions that don't have a Raydium trade
- Group transactions by slot
- Analyze the balances of the validators that signed the transactions
- Compare the balances with the leader schedule to find malicious validators
- Install Bun
- Install
direnv
- Run
direnv allow
to load the environment variables - Run
bun run src/index.ts
to start the analysis
RPC_URL
: The URL of the Solana RPC endpointSANDWICHER_ADDRESS
: The address of the sandwicherMAX_TRANSACTIONS
: The maximum number of transactions to collect (optional, defaults to 100)
This is a work in progress, and the original version followed the work of a-guard