Skip to main content

Flashbox

Flashbox lets a searcher run a bot inside a trusted execution environment (TEE) and search on orderflow in more detail than any public stream gives. It is live on Ethereum mainnet.

What you get​

  • The MEV-Share transaction stream. Pending transactions whose senders allow sharing with TEE searchers, such as Flashbots Protect users in fast mode, with every field except the signature.
  • The bottom-of-block stream. The state changes of each block that BuilderNet is building, private orderflow included.
  • Bundle submission for both: backruns of the Protect transactions, and bundles for the bottom of the BuilderNet block.

Orderflow APIs has the endpoints and formats.

Why a TEE​

Orderflow this detailed can only be shared if it cannot be misused. Flashbox runs your bot in an Intel TDX confidential VM, and the VM image enforces two things:

  1. Your bot cannot leak the orderflow before it lands. We impose a delay, so that the only data that leaves the VM before the target transaction lands is bundles sent to our allowlisted builder endpoints. Logs come out with a 5 minute delay. You can backrun a transaction, but you cannot frontrun or sandwich it.
  2. Flashbots cannot read your code. TDX encrypts the memory of the VM, so neither Flashbots nor the cloud provider can look inside. Your disk is encrypted with a passphrase that only you know.

You do not have to trust us on either point. The image is open source and its build is reproducible. You build it, measure it, and check that the VM we give you runs exactly that image. Orderflow providers can check the same thing. See Verify the VM.

How it works​

Flashbots deploys a VM for you. Your bot and your execution client run in a container inside it. A consensus client (Lighthouse) runs next to the container and is managed for you.

The VM works in one of two modes, and the toggle command switches between them:

MaintenanceProduction
SSH into your containerYesNo
Internet access from the containerYesNo, and no DNS
MEV-Share transaction streamNoYes
Bottom-of-block stream and bundles to BuilderNetNoYes
Backrun bundles to FlashbotsYesYes
Control commands and delayed logsYesYes
Input channels (you push data in)YesYes

You set up and update your bot in maintenance mode, and you search in production mode. Going from production back to maintenance takes two toggle commands with 5 minutes between them. In between, the VM is in the stopped state. The streams are off, and SSH into the container is still off. A bot therefore cannot use a quick switch to carry data out.

In production mode you can still:

  • read your bot's logs, 5 minutes late,
  • push data into the container over two one-way input channels (UDP and TLS), for example configuration or signals.

Only the /persistent disk survives a reboot or an upgrade.

Cost​

You pay for the machine, monthly and up front, in stablecoins. There is no minimum term and you can stop at any time. Time in maintenance mode costs the same, because the VM runs either way.

VMs run on Google Cloud c3-standard machines in us-east4 (Northern Virginia), close to the builders. Prices are in USD per month with a standard (pd-balanced) disk. Network egress is not included.

MachinevCPURAM1 TB2 TB4 TB
c3-standard-8832 GB~$404~$514~$734
c3-standard-222288 GB~$920~$1,030~$1,250
c3-standard-4444176 GB~$1,729~$1,839~$2,059
c3-standard-8888352 GB~$3,349~$3,459~$3,679
  • We recommend at least c3-standard-22 with 4 TB if you run a full node. Smaller machines have run out of memory.
  • A disk can grow later without data loss, at about 110perTBpermonth.Faster‘pd−ssd‘diskscostabout110 per TB per month. Faster `pd-ssd` disks cost about 190 per TB per month.

Get access​

  1. Message the team in the BuilderNet Telegram group.
  2. Send us:
    • the machine and disk size you want,
    • an ed25519 SSH public key,
    • whether you want the input channels,
    • the addresses that sign your bundles.
  3. We deploy the VM and send you its IP address, usually within a day or two.
  4. You register your key, verify the VM and set up your bot.

Coming soon​

  • Middle-of-block search. Today a bundle from a Flashbox is only considered at the bottom of the block.
  • Bare metal machines, which should lower the cost.

Source code​