/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.然后((响应) => 响应.文本())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.然后((响应) => 响应.文本())13.然后((结果) => 控制台.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
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 = Net::HTTP.new(url.主机, url.端口)9https.use_ssl = true1011请求 = Net::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 = Net::HTTP.new(url.主机, url.端口)9https.use_ssl = true1011请求 = Net::HTTP::Get.new(url)1213回复 = https.请求(请求)14返回响应.read_body15