Skip to content

Automated Builder Billing for MEV Blocker

License

Notifications You must be signed in to change notification settings

cowanator/mb-billing

Repository files navigation

Automated Builder Billing for MEV Blocker

On April 10, 2024, MEV Blocker Private RPC started charging a fee paid by the builders. The accounting processes are seeded through the MEVBlockerFeeTill contract deployed on Ethereum Mainnet at 0x08Cd77fEB3fB28CC1606A91E0Ea2f5e3EABa1A9a.

The billing process is achieved through calling the bill method on this contract (restricted to onlyBiller). The data supplied to the billing method is aggregated by the following:

Dune Queries:

Verified Contracts

Local Development: Install, Set ENV & Run

# Install
yarn
# Copy and fill environment variables
cp .env.sample .env

Some values are filled, but others require secrets (DUNE_API_KEY & BILLER_PRIVATE_KEY).

Run the Script:

yarn run main

Docker

Local build and run

docker build -t mb-billing .
docker run --rm --env-file .env mb-billing

Published image

docker run --rm --env-file .env ghcr.io/cowanator/mb-billing:main