Skip to content

Not able to find block data for all blocks in EVM/json-rpc call #2006

Open
@fijter

Description

@fijter

Reported by testing projects, if you request a block through json/rpc it sometimes returns:

curl https://testnet-rpc-endpoint  -X POST   -H "Content-Type: application/json"   --data '{"method":"eth_getBlockByHash","params":["0xec706529e510e75b068aa673f05f69c70a81152993dde0cec901de0cb0a52b82",false],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":null}

Even if it's a EVM generated block; While another block does give all the needed details:

curl https://testnet-rpc-endpoint   -X POST   -H "Content-Type: application/json"   --data '{"method":"eth_getBlockByHash","params":["0x937493ee79bfd7866ea1a7fa0664cc71d5e01e72008a706783c12133f7824ff9",false],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":{"difficulty":"0x0","extraData":"0x","gasLimit":"0x3b9aca00","gasUsed":"0x5208","hash":"0x937493ee79bfd7866ea1a7fa0664cc71d5e01e72008a706783c12133f7824ff9","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x0000000000000000000000000000000000000000","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","number":"0x8ba","parentHash":"0xff5c95f8c11deb4baafe3ba1b3b76472e13af3d6808d615ed6e1e324f30ac5d1","receiptsRoot":"0x0000000000000000000000000000000000000000000000000000000000000000","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x272","stateRoot":"0x0000000000000000000000000000000000000000000000000000000000000000","timestamp":"0x63f02927","transactions":["0x2d802ba8050007c532d16ab870c503d1132e6303cce0243f3f1d27ae8aa9b908"],"transactionsRoot":"0x0000000000000000000000000000000000000000000000000000000000000000","uncles":[]}}

This is likely breaking some indexers given they expect something more back from this endpoint.
Both blocks exist and are EVM blocks when looked up in the ISC dashboard.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions