{"uid":"cap_pvtcFFEF8aXHx54qErPNX","slug":"glassnode-block-height-metric-ea2f46d6","name":"Glassnode Block Height Metric","description":"Block Height — The total number of blocks ever created and included in the main chain, i.e. the current block height. Data by Glassnode.","url":"https://x402.glassnode.com/v1/metrics/blockchain/block_height","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["a"],"properties":{"a":{"enum":["BTC","ETH"],"type":"string","description":"Asset symbol, e.g. BTC, ETH"},"c":{"enum":["native"],"type":"string","description":"Currency for denominated values, e.g. usd, native"},"f":{"enum":["csv","json"],"type":"string","description":"Response format: json or csv"},"i":{"enum":["1month","1w","24h"],"type":"string","description":"Time interval / resolution, e.g. 24h, 1w, 1month"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number"},"v":{"type":"number"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_68sGNqJXjODSF2BLEVP6x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current block height (total number of blocks in the main chain) for BTC or ETH at a specified time resolution.","exampleAgentPrompt":"What's the current Bitcoin block height according to Glassnode? Give me the daily resolution data in JSON format.","exampleUseCases":null,"resultDescription":"Returns an array of time series data points, each with a Unix timestamp (t) and the block height value (v) representing the total number of blocks in the main chain at that point in time, for the specified asset and interval.","failureModes":["Missing required 'a' parameter returns a 400 error — asset symbol (BTC or ETH) is required","Invalid asset symbol outside BTC/ETH enum returns validation error","Invalid interval value outside allowed enum (24h, 1w, 1month) causes rejection","Payment not provided or insufficient USDC causes 402 Payment Required response","Rate limiting may occur with excessive requests"],"whenToPreferThis":"Use this endpoint when you need on-chain blockchain height data specifically curated and served by Glassnode with pay-per-call x402 micropayment pricing. Prefer this over free alternatives when you need reliable, professionally sourced on-chain metrics with no subscription commitment, or when integrating into an automated agent workflow that pays per query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:42:13.194Z","isFirstParty":false}