header_by_hash REST API Endpoint
查詢參數
hash
字串
必填
載入中...
退貨
結果
物件
載入中...
頁首
物件
載入中...
版本
物件
載入中...
區塊
載入中...
app
載入中...
chain_id
載入中...
高度
載入中...
時間
載入中...
last_block_id
物件
載入中...
hash
載入中...
零件
載入中...
總計
載入中...
hash
載入中...
last_commit_hash
載入中...
data_hash
載入中...
validators_hash
載入中...
next_validators_hash
載入中...
consensus_hash
載入中...
app_hash
載入中...
last_results_hash
載入中...
evidence_hash
載入中...
提案者_地址
載入中...
請求
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134'
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134'
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/' \2--標頭 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"method": "header_by_hash",6"params": [7"0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134"8],9"id": 110}'
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/' \2--標頭 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"method": "header_by_hash",6"params": [7"0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134"8],9"id": 110}'
1const requestOptions = {2方法: "GET",3重定向: 「追蹤」4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134", requestOptions)7.接著((回應) => 回應.文字())8.接著((結果) => 控制台.log(結果))9.catch((錯誤) => 控制台.錯誤(錯誤));
1const requestOptions = {2方法: "GET",3重定向: 「追蹤」4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134", requestOptions)7.接著((回應) => 回應.文字())8.接著((結果) => 控制台.log(結果))9.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134"45有效載荷 = {}6標題 = {}78回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)910列印(回應.text)11
1匯入 請求23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134"45有效載荷 = {}6標題 = {}78回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)910列印(回應.text)11
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134")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.cosmos-mainnet.quiknode.pro/header_by_hash?hash=0x645507DC48B4EF4BFF51826A0A5B73FD8CF926036AA4F6697D748FFC0B56D134")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)1011回應 = https.請求(請求)12將回應。read_body13