/blocks/{blockId}/header REST API Endpoint
パスパラメータ
blockId
文字列
必須
読み込み中...
返します
番号
文字列
読み込み中...
parentHash
文字列
読み込み中...
stateRoot
文字列
読み込み中...
extrinsicRoot
文字列
読み込み中...
digest
オブジェクト
読み込み中...
logs
配列
読み込み中...
preRuntime
配列
読み込み中...
seal
配列
読み込み中...
extrinsics
文字列
読み込み中...
リクエスト
1# AssetHub (default) - for block header from AssetHub parachain2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header' \3--header 'Accept: application/json'45# Polkadot Relaychain - for block header from Relaychain (requires /rc prefix)6curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header' \7--header 'Accept: application/json'
1# AssetHub (default) - for block header from AssetHub parachain2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header' \3--header 'Accept: application/json'45# Polkadot Relaychain - for block header from Relaychain (requires /rc prefix)6curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header' \7--header 'Accept: application/json'
1// For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)23const myHeaders = new Headers();4myHeaders.append("Accept", "application/json");56const requestOptions = {7メソッド: "GET",8ヘッダー: myHeaders,9リダイレクト: "follow"10};1112fetch("https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header", requestOptions)13.then((response) => response.text())14.then((result) => console.log(result))15.catch((error) => console.error(error));16
1// For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)23const myHeaders = new Headers();4myHeaders.append("Accept", "application/json");56const requestOptions = {7メソッド: "GET",8ヘッダー: myHeaders,9リダイレクト: "follow"10};1112fetch("https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header", requestOptions)13.then((response) => response.text())14.then((result) => console.log(result))15.catch((error) => console.error(error));16
1import リクエスト2# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)345url = "https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header"6ペイロード = {}7ヘッダー = {8「承諾」: 'application/json'9}1011回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)12印刷(レスポンス.text)13
1import リクエスト2# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)345url = "https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header"6ペイロード = {}7ヘッダー = {8「承諾」: 'application/json'9}1011回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)12印刷(レスポンス.text)13
1require "uri"2require "net/http"3# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)456url = URI("https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header")78https = ネット::HTTP.new(url.ホスト, url.ポート)9https.use_ssl = true1011リクエスト = ネット::HTTP::Get.new(url)1213回答 = https.リクエスト(リクエスト)14レスポンスを格納する.read_body15
1require "uri"2require "net/http"3# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)456url = URI("https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header")78https = ネット::HTTP.new(url.ホスト, url.ポート)9https.use_ssl = true1011リクエスト = ネット::HTTP::Get.new(url)1213回答 = https.リクエスト(リクエスト)14レスポンスを格納する.read_body15