debug_getBadBlocks - Ethereum
The debug_getBadBlocks method is part of the Ethereum JSON RPC Core API and returns a list of invalid blocks observed by the Ethereum client.
Supported Networks
Parameters
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "debug_getBadBlocks",
"params": [],
"id": "getblock.io"
}'wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body
{"jsonrpc": "2.0",
"method": "debug_getBadBlocks",
"params": [],
"id": "getblock.io"}Response
Response Description
Use Case
Example Code
Last updated
Was this helpful?