Page cover

MEV Bids

Search docs on how to bid on MEVSwap pools.

MEV Bots can bid at each block to get the right to swap on MEVSwap pools. Bids are simple, do not require a signature or any custom hook data. Simply submit your arbitrage transaction to our relay. We will wrap your transaction with a unlock/lock transaction and ship it to block builders.

We make simulation easy, setting the from address to the zero address will bypass any nonce or signature requirements. Alternatively, one can call the unlock method on the hook contract when simulating.

Steps

  1. Make a swap that contains a MEVSwap pool.

  • Example ETHUSDC arbitrage with Universal Router

    const commands = "0x00";
    const inputs = [[
      ["SWAP_EXACT_IN_SINGLE", poolKey, true, "-1000000000000000000", "0", "0x"],
      ["SETTLE_ALL", "ETH", "1000000000000000000"],
      ["TAKE_ALL", "USDC", "0"]
    ]];
    await universalRouter.execute(commands, inputs, blockDeadline, { value: "1000000000000000000" });
  • Send via relay:

    POST https://api.mevswap.com/v1/rpc
    {
      "id": 1,
      "method": "eth_sendBundle",
      "params": ["0x..."] // signed arbitrage transaction
    }

That's it! If you have any questions, reach out.

Last updated

Was this helpful?