getchaintips

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

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"getchaintips","params":[]}'

Response

{
  "result": [{
      "height": 597721,
      "hash": "000000000000000000056cfe0e84953b4e077b5b791386aad89a7400039abf5f",
      "branchlen": 0,
      "status": "active"
    },
    {
      "height": 594081,
      "hash": "000000000000000000130e274527b7170e5ed5b80ae7b4ed59cdceb5acf62263",
      "branchlen": 1,
      "status": "valid-headers"
    },
    {
      "height": 591848,
      "hash": "000000000000000000181b1a2354620f66868a723c0c4d5b24e4be8bdfc35a7f",
      "branchlen": 1,
      "status": "valid-fork"
    },
    {
      "height": 590044,
      "hash": "000000000000000000123d82514aa6cad9536b557c24fdf8bf796c1a0e70e708",
      "branchlen": 1,
      "status": "valid-headers"
    }
  ],
  "error": null,
  "id": 1
}