GET /api/v2/estimatefee/{blocks} - Blockbook REST API
Please note that this REST method requires the Litecoin Blockbook enabled on your Quicknode endpoint.
路徑參數
區塊
整數
必填
載入中...
查詢參數
conservative
布林值
載入中...
退貨
結果
字串
載入中...
請求
1curl -X GET "https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=true" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1curl -X GET "https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=true" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1async 函式 main() {2const response = await fetch('https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=true', {3方法: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const 資料 = await response.json()7控制台.日誌(資料)8}910主頁()
1async 函式 main() {2const response = await fetch('https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=true', {3方法: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const 資料 = await response.json()7控制台.日誌(資料)8}910主頁()
1匯入 請求2匯入 json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=True"56標題 = {7「Content-Type」: 'application/json',8「接受」: 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers)1213列印(回應.text)
1匯入 請求2匯入 json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=True"56標題 = {7「Content-Type」: 'application/json',8「接受」: 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers)1213列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=true")67請求 = 淨額::HTTP::Get.new(uri)8請求["Content-Type"] = "application/json"9請求[「接受」] = "application/json"1011回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|12http.請求(請求)13結束1415puts 回應。正文
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.ltc-mainnet.quiknode.pro/estimatefee/4?conservative=true")67請求 = 淨額::HTTP::Get.new(uri)8請求["Content-Type"] = "application/json"9請求[「接受」] = "application/json"1011回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|12http.請求(請求)13結束1415puts 回應。正文
回應
1{2"result": "0.00000996"3}
1{2"result": "0.00000996"3}