/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.그런 다음((결과) => 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.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.그런 다음((결과) => console.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, 헤더=헤더, data=페이로드)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, 헤더=헤더, 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요청 = 순::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요청 = 순::HTTP::Get.new(url)1213답변 = https.요청(요청)14응답을 넣습니다.read_body15