Skip to main content

Parameters

chainId
string
default:"43113"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"debug_getBadBlocks"
required
JSON-RPC method name.
This method does not require any parameters.

Returns

result
array
Array - List of “bad blocks” seen on the network.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43113 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "debug_getBadBlocks",
    "params": []
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "author": "0x0000000000000000000000000000000000000000",
      "difficulty": "0x0",
      "extraData": "0x",
      "gasLimit": "0x0",
      "gasUsed": "0x0",
      "hash": "0x27bfb37e507ce90da141307204b1c6ba24194380613590ac50ca4b1d7198ff65",
      "logsBloom": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...",
      "miner": "0x0000000000000000000000000000000000000000",
      "__truncated": true
    }
  ]
}