kaia_getBlockWithConsensusInfoByHash RPC Method
매개변수
blockHash
문자열
필수
로딩 중...
반품
객체
객체
로딩 중...
blockScore
문자열
로딩 중...
committee
배열
로딩 중...
committers
배열
로딩 중...
추가 데이터
문자열
로딩 중...
가스 사용량
문자열
로딩 중...
governanceData
문자열
로딩 중...
해시
문자열
로딩 중...
logsBloom
문자열
로딩 중...
숫자
문자열
로딩 중...
originProposer
문자열
로딩 중...
parentHash
문자열
로딩 중...
제안자
문자열
로딩 중...
영수증 루트
문자열
로딩 중...
reward
문자열
로딩 중...
sigHash
문자열
로딩 중...
크기
문자열
로딩 중...
stateRoot
문자열
로딩 중...
타임스탬프
문자열
로딩 중...
timestampFoS
문자열
로딩 중...
totalBlockScore
문자열
로딩 중...
거래
배열
로딩 중...
transactionsRoot
문자열
로딩 중...
voteData
문자열
로딩 중...
요청
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_getBlockWithConsensusInfoByHash",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"10]11}'
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_getBlockWithConsensusInfoByHash",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"10]11}'
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_getBlockWithConsensusInfoByHash",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"10]11});1213var requestOptions = {14메서드: 'POST',15헤더: myHeaders,16본문: raw,17리디렉션: 'follow'18};1920fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)21.그런 다음(응답 => response.text())22.그런 다음(결과 => console.log(result))23.catch(오류 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_getBlockWithConsensusInfoByHash",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"10]11});1213var requestOptions = {14메서드: 'POST',15헤더: myHeaders,16본문: raw,17리디렉션: 'follow'18};1920fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)21.그런 다음(응답 => response.text())22.그런 다음(결과 => console.log(result))23.catch(오류 => console.log('error', error));
1import 요청2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56페이로드 = json.dumps({7"method": "kaia_getBlockWithConsensusInfoByHash",8"id": 1,9"jsonrpc": "2.0",10"params": [11"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"12]13})14헤더 = {15'Content-Type': 'application/json'16}1718답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)1920인쇄(응답.text)21
1import 요청2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56페이로드 = json.dumps({7"method": "kaia_getBlockWithConsensusInfoByHash",8"id": 1,9"jsonrpc": "2.0",10"params": [11"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"12]13})14헤더 = {15'Content-Type': 'application/json'16}1718답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)1920인쇄(응답.text)21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.kaia-kairos.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": "kaia_getBlockWithConsensusInfoByHash",14"id": 1,15"jsonrpc": "2.0",16"params": [17"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"18]19})2021답변 = https.요청(요청)22응답을 넣습니다.read_body23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.kaia-kairos.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": "kaia_getBlockWithConsensusInfoByHash",14"id": 1,15"jsonrpc": "2.0",16"params": [17"0xcaad6b9b3fcf26c23159c169fd6ad289045cbc8f28c110acc52e9d18449b8745"18]19})2021답변 = https.요청(요청)22응답을 넣습니다.read_body23