The field totalDifficulty was removed from the official Ethereum JSON RPC Block schema in https://github.com/ethereum/execution-apis/pull/570.
It seems some clients did already remove it (Erigon), but others chose not to (Nethermind), leading to inconsistent answers between providers when calling the EVM RPC canister with eth_getBlockByNumber.
Example with a recent block:
Ankr when queried for the block 0x1312d00 returns a value containing the field totalDifficulty, while the same query for PublicNode does not:
The field
totalDifficulty
was removed from the official Ethereum JSON RPCBlock
schema in https://github.com/ethereum/execution-apis/pull/570. It seems some clients did already remove it (Erigon), but others chose not to (Nethermind), leading to inconsistent answers between providers when calling the EVM RPC canister witheth_getBlockByNumber
.Example with a recent block:
Ankr
when queried for the block0x1312d00
returns a value containing the fieldtotalDifficulty
, while the same query forPublicNode
does not:Example with an old block:
The field
totalDifficulty
is not only removed from blocks post-merge, but also pre-existing blocks are affected.Ankr
when queried for the block0x0
returns a value containing the fieldtotalDifficulty
, while the same query forPublicNode
does not: