:warning: DISCLAIMER: The Flashbots mev-share node is under active development. This code is in beta and may have performance issues or other vulnerabilities. While we welcome input in the form of pull requests or issues, Flashbots does not commit to particular SLAs around responding or maintaining this repository.
This repo is an implementation of the MEV-Share API. It handles tasks such as bundle simulation, matching, and hint extraction.
More detailed documentation can be found in the Flashbots documentation and the mev-share repository.
mev_sendBundle
This method is utilized for submitting bundles to the relay. It takes in a bundle and provides a bundle hash as a return value.
The detailed structure of bundles is explained in the Flashbots documentation.
Node processes the bundle in the following manner:
privacy.hint
of the bundle is set, relevant hints are extracted and added to the Redis channel. A separate service will then stream it over the SEE endpoint.privacy.builders
field of the bundle. By default, the Flashbots builder is assumed.mev_simBundle
This method has similar arguments to mev_sendBundle
,
but instead of submitting a bundle to the relay, it returns a simulation result.
Only fully matched bundles can be simulated.
The full list of configuration options can be found in cmd/node/main.go.
docker-compose up # start services: redis and postgres
# apply migration
for file in sql/*.sql; do psql "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable" -f $file; done
# get flashbots/builder, see /local-builder/devnet/README.md
cd ..
git clone https://github.com/flashbots/builder
cd builder
make
./local-builder/devnet/devnet run
# run node
make && ./build/node
Flashbots is a research and development collective working on mitigating the negative externalities of decentralized economies. We contribute with the larger free software community to illuminate the dark forest.
You are welcome here <3.
If you find a security vulnerability on this project or any other initiative related to Flashbots, please let us know sending an email to security@flashbots.net.
The code in this project is free software under the AGPL License version 3 or later.
Made with ☀️ by the ⚡🤖 collective.