flashbots / mev-inspect-rs

Discover historic Miner Extractable Value (MEV) opportunities
MIT License
547 stars 127 forks source link

Error: Invalid name: please ensure the contract and method you're calling exist! failed to decode empty bytes. if you're using jsonrpc this is likely due to jsonrpc returning `0x` in case contract or method don't exist #57

Open gankhe opened 3 years ago

gankhe commented 3 years ago

I have a problem: Execute the command
./target/release/mev-inspect -u http://x.x.x.x:8545

Error: Invalid name: please ensure the contract and method you're calling exist! failed to decode empty bytes. if you're using jsonrpc this is likely due to jsonrpc returning 0x in case contract or method don't exist

I need help.😢

gakonst commented 3 years ago

Hey - this does not look like a valid command to me...Can you give a specific block / tx example which fail to work?

riceluxs1t commented 3 years ago

Hi. I actually ran in to the same error message. Here is what I did

  1. setup a MEV-geth and run it locally via the following command

    ./build/bin/geth console --http --syncmode "light" --signer=/Users/namgun_kim/Library/Signer/clef.ipc
  2. ran the following mev-inspect-rs command to learn more about the particular block 12544939

    ./target/release/mev-inspect blocks -f 12544939 -t 12544939

I highly suspect that there is something wrong with my local setup.

gakonst commented 3 years ago

mev-inspect-rs works with Parity/Open Ethereum nodes, not Geth, due to usage of the tracing API!