/accounts/{accountId}/staking-info REST API Endpoint
路徑參數
accountId
字串
必填
載入中...
查詢參數
在
字串
載入中...
退貨
在
物件
載入中...
hash
字串
載入中...
高度
字串
載入中...
rewardDestination
物件
載入中...
帳戶
字串
載入中...
controller
字串
載入中...
numSlashingSpans
字串
載入中...
nominations
物件
載入中...
目標
陣列
載入中...
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.追加("Accept", "application/json");45const requestOptions = {6方法: "GET",7標題: myHeaders,8重定向: 「追蹤」9};1011fetch("https://docs-demo.dot-mainnet.quiknode.pro/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info", requestOptions)12.then((response) => response.text())13.then((result) => console.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.追加("Accept", "application/json");45const requestOptions = {6方法: "GET",7標題: myHeaders,8重定向: 「追蹤」9};1011fetch("https://docs-demo.dot-mainnet.quiknode.pro/accounts/1zugcag7cJVBtVRnFxv5Qftn7xKAnR6YJ9x4x3XLgGgmNnS/staking-info", requestOptions)12.then((response) => response.text())13.then((result) => console.log(result))14.catch((error) => console.error(error));15
1匯入 請求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, data=有效載荷)13列印(回應.text)14
1匯入 請求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, data=有效載荷)13列印(回應.text)14
1需要 "uri"2需要 "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.port)9https.use_ssl = true1011請求 = 淨::HTTP::Get.new(url)1213回應 = https.請求(請求)14將回應。read_body15
1需要 "uri"2需要 "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.port)9https.use_ssl = true1011請求 = 淨::HTTP::Get.new(url)1213回應 = https.請求(請求)14將回應。read_body15