get_btc_block_tip
Get the current Bitcoin mainnet block tip: height, hash, timestamp, and optionally BIP-113 median time and difficulty. Verify indexer freshness and compute confirmation depths.
Instructions
READ-ONLY — current Bitcoin mainnet chain tip. Returns block height, 64-hex block hash, header timestamp (unix seconds), server-computed ageSeconds (now − timestamp), and — when the indexer exposes them — BIP-113 median time past + difficulty. Backed by the configured indexer (mempool.space default; BITCOIN_INDEXER_URL env var or bitcoinIndexerUrl user-config override for self-hosted Esplora). Useful for: latest-hash lookups, block-age UX context (Bitcoin block intervals are Poisson — a 40-min gap is normal but worth surfacing), indexer-freshness sanity checks before quoting balances, confirmation-depth math against get_btc_tx_history entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||