/accounts/{accountId}/staking-info REST API Endpoint
パスパラメータ
accountId
文字列
必須
読み込み中...
クエリパラメータ
at
文字列
読み込み中...
返品
at
オブジェクト
読み込み中...
ハッシュ
文字列
読み込み中...
高さ
文字列
読み込み中...
rewardDestination
オブジェクト
読み込み中...
アカウント
文字列
読み込み中...
controller
文字列
読み込み中...
numSlashingSpans
文字列
読み込み中...
nominations
オブジェクト
読み込み中...
targets
配列
読み込み中...
submittedIn
文字列
読み込み中...
suppressed
ブール値
読み込み中...
stakingLedger
オブジェクト
読み込み中...
stash
文字列
読み込み中...
合計
文字列
読み込み中...
active
文字列
読み込み中...
unlocking
文字列
読み込み中...
claimedRewards
配列
読み込み中...
リクエスト
1# AssetHub (default) - for AssetHub parachain staking info (limited staking features)2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info' \3--header 'Accept: application/json'45# Polkadot Relaychain - for Relaychain staking info (full DOT staking features)6curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info' \7--header 'Accept: application/json'
1# AssetHub (default) - for AssetHub parachain staking info (limited staking features)2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info' \3--header 'Accept: application/json'45# Polkadot Relaychain - for Relaychain staking info (full DOT staking features)6curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info' \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/...)2const myHeaders = new Headers();3myHeaders.append("Accept", "application/json");45const requestOptions = {6メソッド: "GET",7ヘッダー: myHeaders,8リダイレクト: "follow"9};1011fetch("https://docs-demo.dot-mainnet.quiknode.pro/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info", requestOptions)12.その後((レスポンス) => レスポンス.text())13.その後((結果) => コンソール.log(result))14.catch((error) => console.error(error));15
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/...)2const myHeaders = new Headers();3myHeaders.append("Accept", "application/json");45const requestOptions = {6メソッド: "GET",7ヘッダー: myHeaders,8リダイレクト: "follow"9};1011fetch("https://docs-demo.dot-mainnet.quiknode.pro/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info", requestOptions)12.その後((レスポンス) => レスポンス.text())13.その後((結果) => コンソール.log(result))14.catch((error) => console.error(error));15
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/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info"67ペイロード = {}8ヘッダー = {9'Accept': 'application/json'10}1112回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)13印刷(レスポンス.text)14
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/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info"67ペイロード = {}8ヘッダー = {9'Accept': 'application/json'10}1112回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)13印刷(レスポンス.text)14
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/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info")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/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info")78https = ネット::HTTP.new(url.ホスト, url.ポート)9https.use_ssl = true1011リクエスト = ネット::HTTP::Get.new(url)1213回答 = https.リクエスト(リクエスト)14レスポンスを格納する.read_body15