This repository was archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 266
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
ValueError: {'code': -32601, 'message': 'the method trace_block does not exist/is not available'} #319
Copy link
Copy link
Open
Description
I am using an endpoint from pokt.network: https://eth-mainnet.gateway.pokt.network/v1/lb/xxxx
I have done all steps mentioned in the README, while got following error:
➜ mev-inspect-py git:(main) ./mev inspect 12914944
Inspecting block 12914944
Skipping virtualenv creation, as specified in config file.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/flashbot/.local/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "/home/flashbot/.local/lib/python3.9/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/home/flashbot/.local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/flashbot/.local/lib/python3.9/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/app/mev_inspect/concurrency.py", line 18, in wrapper
loop.run_until_complete(f(*args, **kwargs))
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/app/cli.py", line 45, in inspect_block_command
await inspector.inspect_single_block(
File "/app/mev_inspect/inspector.py", line 56, in inspect_single_block
return await inspect_block(
File "/app/mev_inspect/inspect_block.py", line 68, in inspect_block
await inspect_many_blocks(
File "/app/mev_inspect/inspect_block.py", line 105, in inspect_many_blocks
block = await create_from_block_number(
File "/app/mev_inspect/block.py", line 31, in create_from_block_number
block_timestamp, receipts, traces, base_fee_per_gas = await asyncio.gather(
File "/app/mev_inspect/block.py", line 86, in _find_or_fetch_block_traces
return await _fetch_block_traces(w3, block_number)
File "/app/mev_inspect/block.py", line 115, in _fetch_block_traces
traces_json = await w3.eth.trace_block(block_number)
File "/home/flashbot/.local/lib/python3.9/site-packages/web3/module.py", line 72, in caller
result = await w3.manager.coro_request(method_str,
File "/home/flashbot/.local/lib/python3.9/site-packages/web3/manager.py", line 203, in coro_request
return self.formatted_response(response,
File "/home/flashbot/.local/lib/python3.9/site-packages/web3/manager.py", line 168, in formatted_response
raise ValueError(response["error"])
ValueError: {'code': -32601, 'message': 'the method trace_block does not exist/is not available'}
command terminated with exit code 1
Metadata
Metadata
Assignees
Labels
No labels