New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image
zec

ZEC

POST

GET

chevron-right

Last updated on January 1, 1970

2 min read

Method getchaintips undefined ()
connect with JSON-RPC protocol

getchaintips

info-circle-fill

Return information about all known tips in the block tree, including themain chain as well as orphaned branches.

Parameters

-

Request

curl --location --request POST 'https://zec.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getchaintips",
"params": [],
"id": "getblock.io"}'

Response

{
    "error": null,
    "id": "getblock.io",
    "result": [
        {
            "branchlen": 0,
            "hash": "00000000019af1612080b8d6b3ce87c5b7569a114e6a77385260cf45a6419fe1",
            "height": 1384358,
            "status": "active"
        },
        {
            "branchlen": 1,
            "hash": "0000000000b0f1c14cb0cf0c2754c27de40a290e692fb20ebca2fae9f599969f",
            "height": 1383875,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "000000000246b6cf748b89ddab52cd1c86618a87e47a1d82bc34c23f8a294f63",
            "height": 1383503,
            "status": "valid-fork"
        }
    ]
}
banner icon

Start Building with GetBlock RPCs for Free