Validate reorged blocks

post/api/v2/{coin}/admin/reorgs/validateReorgs

Validates the IMS states of all blocks and transactions in a re-org. Currently, only eth-like coins are supported.

Path Parameters

  • coinstringRequired
    A cryptocurrency or token ticker symbol.
    Example: btc

Request Body

reorgedBlockHeight number
The height of the reorged block
blockHash string
The hash of the reorged block
depth number
The depth of the re-org (e.g. 2 for a 2-block re-org)
Minimum: >= 1

200 Response

Array of
blockHeight number
The height of the blocks
blockDepth number
The distance of the blocks from the furthest blocks in the reorg
Minimum: >= 1
reorgedBlock object
The state of the reorged block in the IMS
exists boolean
Whether the block exists in the IMS
validState boolean
Whether the block has the correct "reverted" state
txCount number
The total number of transactions found in the block
validTxCount number
The total number of valid transactions found in the block
invalidTxns array[object]
Invalid transactions found in the block
blockHash string
The block's hash
parentHash string
The hash of the block's parent
canonicalBlock object
The state of the canonical block in the IMS
exists boolean
Whether the block exists in the IMS
validState boolean
Whether the block has the correct "reverted" state
txCount number
The total number of transactions found in the block
validTxCount number
The total number of valid transactions found in the block
invalidTxns array[object]
Invalid transactions found in the block
blockHash string
The block's hash
parentHash string
The hash of the block's parent

400 Response

error string required
Human-readable error message
requestId string required
Client request id
context object
Properties that apply to a specific error name
name string required
Error code