POST
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "verifychain",
  "params": [
    3
  ],
  "id": 1
}'
{
  "result": true,
  "error": {},
  "id": 123
}

The verifychain method checks the integrity of the blockchain database on the node.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • check level (optional): An integer between 0 and 4 that determines the thoroughness of the verification process. The default level is 3.

Response

  • result — a boolean indicating whether the blockchain is valid.
  • error — an object containing an error message if an error occurred, otherwise null.
  • id — an integer representing the ID of the request.

Use case

The verifychain method is useful for node operators and developers who want to ensure the integrity and consistency of their blockchain data. It can be used as a diagnostic tool to detect issues within the blockchain database.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:verifychain
params
integer[]

The check level (0-4, default: 3)

id
integer
default:1

Response

200 - application/json
The result of the blockchain verification
result
boolean

The result of the verification

error
object
id
integer