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 = await response.json()7콘솔.log(데이터)8}910main()
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 = await response.json()7콘솔.log(데이터)8}910main()
1import 요청2import json34url = "https://docs-demo.btc.quiknode.pro/r/blockheight"56헤더 = {7'Content-Type': 'application/json',8'Accept': 'application/json'9}1011response = requests.request("GET", url, headers=headers)1213인쇄(응답.text)
1import 요청2import json34url = "https://docs-demo.btc.quiknode.pro/r/blockheight"56헤더 = {7'Content-Type': 'application/json',8'Accept': 'application/json'9}1011response = requests.request("GET", url, headers=headers)1213인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.btc.quiknode.pro/r/blockheight")67request = Net::HTTP::Get.new(uri)8요청["Content-Type"] = "application/json"9request["Accept"] = "application/json"1011답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|12http.요청(요청)13끝1415응답을 넣습니다.본문
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.btc.quiknode.pro/r/blockheight")67request = Net::HTTP::Get.new(uri)8요청["Content-Type"] = "application/json"9request["Accept"] = "application/json"1011답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|12http.요청(요청)13끝1415응답을 넣습니다.본문
답변
1954079
1954079