Skip to content

Rjected/mempool-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mempool-history

MIT License Test and Lint

This tool uses ethereum pending transaction RPCs to listen for mempool transactions and timestamp them.

The purpose of this tool is to gather data that roughly matches the "true" mempool history so it can be easily replayed while testing other applications.

Requirements

  • Rust
  • A websocket RPC endpoint with a working eth_subscribe and eth_getTransactionByHash endpoint

Usage

For now, this is how you run the tool:

cargo run -- --rpc-url <YOUR_WEBSOCKET_URL>

TODO

  • Persist timestamped transactions
    • Figure out how to gracefully recover after a crash. Make sure the tool does not overwrite timestamps of a transaction that already exists. (stretch goal)
  • Simplify if on alchemy by using alchemy_pendingTransactions
  • Prettier or more useful output (JSON? frontend?) (stretch goal)
    • Prioritize showing Transactions that are not yet included in a block
    • Relate unconfirmed transactions with consecutive account nonces
    • mempool.space but for ethereum? (extreme stretch goal)
  • Name the tool
  • Add tests
  • Turn these bullet points into github issues

About

Eth mempool history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages