bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/getchaintips
Blockchain

getchaintips

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

Returns

arrayArray of chain tip objects

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getchaintips","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

[
  {
    "height": 840000,
    "hash": "00000000000000000002...",
    "branchlen": 0,
    "status": "active"
  }
]
← Previous
getblockstats
Next →
getchaintxstats

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗