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:
- Fee per block: https://dune.com/queries/3605385
- Payment Due: https://dune.com/queries/3630322
- Mainnet: https://etherscan.io/address/0x08Cd77fEB3fB28CC1606A91E0Ea2f5e3EABa1A9a
- Testnet: https://sepolia.etherscan.io/address/0xF1436859a0F04A827b79F8c92736F6331ebB64A1
# 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
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