curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getchaintips",
"params": [],
"id": 1
}'
{
"result": [
"<any>"
],
"error": {},
"id": 123
}
curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getchaintips",
"params": [],
"id": 1
}'
{
"result": [
"<any>"
],
"error": {},
"id": 123
}
getchaintips
method provides information about the current chain tips, which are the endpoints of the active blockchains in the network.
result
— an array containing information about the current chain tips, including details such as block hash, block height, branch length, and whether the tip is valid.error
— an object containing an error message if an error occurred, otherwise null
.id
— an integer representing the ID of the request, used to match requests with responses.getchaintips
method is useful for understanding the current state of the blockchain network, including the various chain tips that may exist due to forks or reorganizations. This information can be valuable for monitoring the network’s health and stability.Information about the current chain tips
The response is of type object
.
Was this page helpful?