GET /api/v2/estimatefee/{blocks} - Blockbook REST API
Please note that this REST method requires the BTC Blockbook add-on enabled on your Quicknode endpoint.
路徑參數
區塊
整數
必填
載入中...
查詢參數
conservative
布林值
載入中...
退貨
結果
字串
載入中...
請求
1curl -X GET "https://docs-demo.btc.quiknode.pro/estimatefee/4?conservative=true" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1curl -X GET "https://docs-demo.btc.quiknode.pro/estimatefee/4?conservative=true" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1async function main() {2const response = await fetch('https://docs-demo.btc.quiknode.pro/estimatefee/4?conservative=true', {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/estimatefee/4?conservative=true', {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/estimatefee/4?conservative=True"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/estimatefee/4?conservative=True"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/estimatefee/4?conservative=true")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/estimatefee/4?conservative=true")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{2"result": "0.00005"3}
1{2"result": "0.00005"3}