sambacha/mempool-shark

Documentation for install

sambacha opened this issue · 1 comments

  1. Sign up for mongodb's managed service Atlas.

  2. Create a cluster with at least 50gb memory (30 if ur just experimenting).

  3. Copy the .env file and enter your information under ATLAS

  4. Aquire the necessary amount of RPC API keys. Yes even pokt, however you might he able to get away sticking a different provider. This is more to spread out your chances of getting rate limited (lol)

  5. Buy premium Etherscan API. You will get rate limited otherwise and you might find it useful idk.

6a. configure RPCs under the .env file

6b. npm run init-db

In a separate shell instance (or tmux or nohup) start these processes:

  1. init-common

  2. init-mempool

  3. init-txs

  4. Visit Blocknative.com and then realize they have exactly this fucking mempool explore with much richer and pretty GUI and not shitty mongodb.

  5. Cry havoc and let slip the bots of war.

the link above filters

{ "status": "pending" } // pending state otherwise its not in the mempool
{ "baseFeePerGas": "<50", "_not": true } // baseFeePerGas no tx's under 50 plz
{ "type": { "gt": 0 } } // greater than 0, meaning non-legacy tx'