lmittmann / flashbots

Package flashbots implements RPC API bindings for the Flashbots relay and mev-geth for use with the w3 package.

Home Page:https://pkg.go.dev/github.com/lmittmann/flashbots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

400 Bad Request: {"error":"block param must be a hex int"}

mteam88 opened this issue · comments

panic: 400 Bad Request: {"error":"block param must be a hex int"}
On using callBundle

What is your value for BlockNumber? nil?

With a *Big.Int

You have to set the BlockNumber param in flashbots.CallBundleRequest. A block tag like "latest" is not allowed by the mev-geth API.