{"uid":"cap_vumJdSPnB8c1zpV5AL9hk","slug":"bitcoin-block-height-lookup-39794d48","name":"Bitcoin Block Height Lookup","description":"Bitcoin Block Height - Call when you need the current Bitcoin chain tip - confirming a sync, counting confirmations, or timestamping an event. Returns the numeric block height from Blockstream's public API. Read-only and fast enough to poll.","url":"https://www.amnt.io/api/agent/teal_cedar/bitcoin-block-height","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"The instruction or prompt for the AI agent"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"string","description":"The agent's response text"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O3193EE4aaevFn2lQ7v-O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current Bitcoin blockchain tip block height as a numeric value by querying Blockstream's public API.","exampleAgentPrompt":"What is the current Bitcoin block height right now?","exampleUseCases":[{"title":"Real-time Bitcoin sync status check","prompt":"Can you tell me what the current Bitcoin block height is? I want to verify my node is fully synced."},{"title":"Blockchain event timestamp estimation","prompt":"I need to know the current Bitcoin block number so I can estimate how many blocks are left until the next halving."},{"title":"DeFi protocol block monitoring","prompt":"Fetch the latest Bitcoin block height for me — I'm tracking on-chain confirmations for a transaction I just sent."}],"resultDescription":"Returns the current Bitcoin block height as a numeric value representing the number of confirmed blocks in the Bitcoin blockchain (the chain tip), sourced from Blockstream's public API.","failureModes":["Blockstream API unavailable or rate-limited — upstream 503 or timeout","Malformed prompt input causes agent to return an error response","Payment settlement failure over x402 protocol results in no result returned","Network latency causes stale or delayed block height response"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-auth, pay-per-call lookup of the current Bitcoin block height without setting up an account or managing API keys. It is ideal for lightweight agents that need occasional blockchain height checks and are already operating within an x402 micropayment workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:00:00.546Z","isFirstParty":false}