eth_getTdByNumber
Returns the total difficulty for a given block number. This method is primarily used by Heimdall to query the total difficulty of a produced block when building a milestone.
Path parameters
apiKey
Request
This endpoint expects an object.
Block number
The block number for which to retrieve the total difficulty.
Response
An object containing the block number and its total difficulty, or null if the block is not found.
blockNumber
The block number as a hexadecimal string.
totalDifficulty
The total difficulty of the block as a hexadecimal string.