btc

Bitcoin (BTC)

Method: POST getchaintips

dropdown

POST getchaintips

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

Parameters

-

Request

curl --location --request POST 'https://btc.getblock.io' 
--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": "000000000000000000073a1a473e9929e49cb7a5384703189902424805eeb1e9",
            "height": 678315,
            "status": "active"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000044dfef81ca818882c24cdfb3178dd183ec7f9817b3fa1",
            "height": 677102,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000013acb9bf5bec0d7cc1a1f697686b5895e539399c8e72b",
            "height": 676653,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "00000000000000000006e2aca3e49d3314782aac196548f8cfe12c34b98c8934",
            "height": 675407,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "0000000000000000000c64c3eb0e99f14024ca84ccdefc8d01aaf4aa5fadbafa",
            "height": 675392,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "00000000000000000002ebd581ecbbf98fe96290a9481254ef9fe0eeea569f7c",
            "height": 671759,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000040e2e14931819cd282023c46c4e19ecc2f9daa36f6eaa",
            "height": 671646,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000031dbcad41bafe1756aaeb7eddc243625d3627dba023ef",
            "height": 671511,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "0000000000000000000a2ae23d56ad7bdb31104e9b6b2cdc737db9a3fe325092",
            "height": 667881,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "00000000000000000005e086e9e74aae37139ba27c5ba8b50ba5c773e22c6b61",
            "height": 666833,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000044dfef81ca818882c24cdfb3178dd183ec7f9817b3fa1",
            "height": 677102,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000013acb9bf5bec0d7cc1a1f697686b5895e539399c8e72b",
            "height": 676653,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "00000000000000000006e2aca3e49d3314782aac196548f8cfe12c34b98c8934",
            "height": 675407,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "0000000000000000000c64c3eb0e99f14024ca84ccdefc8d01aaf4aa5fadbafa",
            "height": 675392,
            "status": "valid-fork"
        },
        {
            "branchlen": 1,
            "hash": "00000000000000000002ebd581ecbbf98fe96290a9481254ef9fe0eeea569f7c",
            "height": 671759,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000040e2e14931819cd282023c46c4e19ecc2f9daa36f6eaa",
            "height": 671646,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "000000000000000000031dbcad41bafe1756aaeb7eddc243625d3627dba023ef",
            "height": 671511,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "0000000000000000000a2ae23d56ad7bdb31104e9b6b2cdc737db9a3fe325092",
            "height": 667881,
            "status": "valid-headers"
        },
        {
            "branchlen": 1,
            "hash": "00000000000000000005e086e9e74aae37139ba27c5ba8b50ba5c773e22c6b61",
            "height": 666833,
            "status": "valid-headers"
        },
        {
            "branchlen": 18,
            "hash": "000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa",
            "height": 478576,
            "status": "headers-only"
        }
    ]
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

Products
For developers
Contact

Technical support:

support@getblock.io

General inquiries:

marketing@getblock.io

To contact Us:

Schedule a Сall

2019 - 2021 GetBlock