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.추가("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.그런 다음((결과) => console.log(result))21.catchcatch ((오류) => 콘솔.오류(오류));
1const myHeaders = new Headers();2myHeaders.추가("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.그런 다음((결과) => console.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, 헤더=헤더, data=페이로드)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, 헤더=헤더, data=페이로드)1718인쇄(응답.text)19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(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 = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(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