flashbots / mev-inspect-rs

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

please ensure the contract and method you're calling exist! failed to decode empty byte #65

Open xingyushu opened 2 years ago

xingyushu commented 2 years ago

Please post your question as a discussion in the Flashbots Discord

I met a error hint:

bob@bob-XPS-8940:~/search/code/bot/bot/mev-inspect-rs$ ./target/release/mev-inspect -u http://localhost:8549  blocks -f 7475414  -t 7475462
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

My command:

./target/release/openethereum --ws-port 8548 --jsonrpc-port=8549 --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis all --jsonrpc-hosts all

ws port: 8548 RPC port: 8549

Am I missing a method to open at runtime, such as debug, etc.

however, I set the specific apis like this:

./target/release/openethereum --ws-port 8548 --jsonrpc-port=8549 --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis safe,debug,web3,net,eth,pubsub,personal,signer,parity,parity_pubsub,parity_accounts,parity_set,traces,secretstore --jsonrpc-hosts all It met the same error.

Can you help me? Thanks