/pallets/{palletId}/consts REST API Endpoint
パスパラメータ
palletId
文字列
必須
読み込み中...
クエリパラメータ
onlyIds
ブール値
読み込み中...
at
文字列
読み込み中...
返します
at
オブジェクト
読み込み中...
ハッシュ
文字列
読み込み中...
height
文字列
読み込み中...
pallet
文字列
読み込み中...
palletIndex
文字列
読み込み中...
項目
配列
読み込み中...
名前
文字列
読み込み中...
タイプ
文字列
読み込み中...
値
文字列
読み込み中...
docs
配列
読み込み中...
リクエスト
1# AssetHub (default) - for all pallet constants from AssetHub parachain2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/pallets/System/consts' \3--header 'Accept: application/json'45# Polkadot Relaychain - for all pallet constants from Relaychain (requires /rc prefix)6curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/pallets/System/consts' \7--header 'Accept: application/json'
1# AssetHub (default) - for all pallet constants from AssetHub parachain2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/pallets/System/consts' \3--header 'Accept: application/json'45# Polkadot Relaychain - for all pallet constants from Relaychain (requires /rc prefix)6curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/pallets/System/consts' \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/pallets/System/consts", 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/pallets/System/consts", 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/pallets/System/consts"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/pallets/System/consts"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/pallets/System/consts")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/pallets/System/consts")78https = ネット::HTTP.new(url.ホスト, url.ポート)9https.use_ssl = true1011リクエスト = ネット::HTTP::Get.new(url)1213回答 = https.リクエスト(リクエスト)14レスポンスを格納する.read_body15