GET /r/blockheight - Ordinals REST API
Please note that this REST method requires the Ordinals & Runes API add-on enabled on your Quicknode endpoint.
參數
此方法不接受任何參數
退貨
blockheight
整數
載入中...
請求
1curl -X GET "https://docs-demo.btc.quiknode.pro/r/blockheight" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1curl -X GET "https://docs-demo.btc.quiknode.pro/r/blockheight" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1async function main() {2const response = await fetch('https://docs-demo.btc.quiknode.pro/r/blockheight', {3method: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const data = 等待 response.json()7控制台.日誌(資料)8}910主頁()
1async function main() {2const response = await fetch('https://docs-demo.btc.quiknode.pro/r/blockheight', {3method: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const data = 等待 response.json()7控制台.日誌(資料)8}910主頁()
1匯入 請求2import json34url = "https://docs-demo.btc.quiknode.pro/r/blockheight"56標題 = {7「Content-Type」: 'application/json',8'Accept': 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers)1213列印(回應.text)
1匯入 請求2import json34url = "https://docs-demo.btc.quiknode.pro/r/blockheight"56標題 = {7「Content-Type」: 'application/json',8'Accept': 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers)1213列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.btc.quiknode.pro/r/blockheight")67request = Net::HTTP::Get.new(uri)8請求["Content-Type"] = "application/json"9請求[「接受」] = "application/json"1011回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|12http.請求(請求)13結束1415將回應。正文
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.btc.quiknode.pro/r/blockheight")67request = Net::HTTP::Get.new(uri)8請求["Content-Type"] = "application/json"9請求[「接受」] = "application/json"1011回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|12http.請求(請求)13結束1415將回應。正文
回應
1954079
1954079