system_health RPC Method
パラメータ
このメソッドはパラメータを受け付けません
返品
結果
文字列
読み込み中...
仲間たち
整数
読み込み中...
isSyncing
ブール値
読み込み中...
shouldHavePeers
ブール値
読み込み中...
リクエスト
1curl https://docs-demo.dot-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"system_health","params":[],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.dot-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"system_health","params":[],"id":1,"jsonrpc":"2.0"}'
1const myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34const raw = JSON.stringify({5"method": "system_health",6"params": [],7"id": 1,8"jsonrpc": "2.0"9});1011const requestOptions = {12メソッド: "POST",13ヘッダー: myHeaders,14本文: raw,15リダイレクト: "follow"16};1718fetch("https://docs-demo.dot-mainnet.quiknode.pro/", requestOptions)19.その後((レスポンス) => レスポンス.text())20.その後((結果) => コンソール.log(result))21.catchcatch((エラー) => コンソール.エラー(エラー));
1const myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34const raw = JSON.stringify({5"method": "system_health",6"params": [],7"id": 1,8"jsonrpc": "2.0"9});1011const requestOptions = {12メソッド: "POST",13ヘッダー: myHeaders,14本文: raw,15リダイレクト: "follow"16};1718fetch("https://docs-demo.dot-mainnet.quiknode.pro/", requestOptions)19.その後((レスポンス) => レスポンス.text())20.その後((結果) => コンソール.log(result))21.catchcatch((エラー) => コンソール.エラー(エラー));
1import リクエスト2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/"56ペイロード = json.dumps({7"method": "system_health",8"params": [],9"id": 1,10"jsonrpc": "2.0"11})12ヘッダー = {13「Content-Type」: 'application/json'14}1516回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1718印刷(レスポンス.text)19
1import リクエスト2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/"56ペイロード = json.dumps({7"method": "system_health",8"params": [],9"id": 1,10"jsonrpc": "2.0"11})12ヘッダー = {13「Content-Type」: 'application/json'14}1516回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1718印刷(レスポンス.text)19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"method": "system_health",14"params": [],15"id": 1,16"jsonrpc": "2.0"17})1819回答 = https.リクエスト(リクエスト)20レスポンスを格納する.read_body21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"method": "system_health",14"params": [],15"id": 1,16"jsonrpc": "2.0"17})1819回答 = https.リクエスト(リクエスト)20レスポンスを格納する.read_body21