健康 REST API 端點
參數
此方法不接受任何參數
退貨
ok
布林值
載入中...
請求
1curl --location 'https://docs-demo.moca-testnet.quiknode.pro/health'
1curl --location 'https://docs-demo.moca-testnet.quiknode.pro/health'
1const requestOptions = {2方法: "GET",3重定向: 「追蹤」4};56fetch("https://docs-demo.moca-testnet.quiknode.pro/health", requestOptions)7.接著((回應) => 回應.文字())8.接著((結果) => 控制台.log(結果))9.catch((錯誤) => 控制台.錯誤(錯誤));
1const requestOptions = {2方法: "GET",3重定向: 「追蹤」4};56fetch("https://docs-demo.moca-testnet.quiknode.pro/health", requestOptions)7.接著((回應) => 回應.文字())8.接著((結果) => 控制台.log(結果))9.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求23url = "https://docs-demo.moca-testnet.quiknode.pro/health"45有效載荷 = {}6標題 = {}78回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)910列印(回應.text)11
1匯入 請求23url = "https://docs-demo.moca-testnet.quiknode.pro/health"45有效載荷 = {}6標題 = {}78回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)910列印(回應.text)11
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.moca-testnet.quiknode.pro/health")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)1011回應 = https.請求(請求)12將回應。read_body13
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.moca-testnet.quiknode.pro/health")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)1011回應 = https.請求(請求)12將回應。read_body13