/accounts/{accountId}/balance-info REST API Endpoint
路徑參數
accountId
字串
必填
載入中...
查詢參數
在
字串
載入中...
代幣
字串
載入中...
denominated
布林值
載入中...
退貨
在
物件
載入中...
hash
字串
載入中...
高度
字串
載入中...
非重複數
字串
載入中...
tokenSymbol
字串
載入中...
free
字串
載入中...
reserved
字串
載入中...
miscFrozen
字串
載入中...
feeFrozen
字串
載入中...
frozen
字串
載入中...
locks
陣列
載入中...
id
字串
載入中...
金額
字串
載入中...
reasons
字串
載入中...
請求
1# AssetHub (default) - for current AssetHub parachain balance info2curl 'https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info'34# Polkadot Relaychain - for historical Relaychain balance info (requires /rc prefix)5curl 'https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info'6
1# AssetHub (default) - for current AssetHub parachain balance info2curl 'https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info'34# Polkadot Relaychain - for historical Relaychain balance info (requires /rc prefix)5curl 'https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info'6
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/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-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/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info", requestOptions)12.then((response) => response.text())13.then((result) => console.log(result))14.catch((error) => console.error(error));15
1匯入 請求23# 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/...)4url = "https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info"56有效載荷 = {}7標題 = {8'Accept': 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)12列印(回應.text)13
1匯入 請求23# 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/...)4url = "https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info"56有效載荷 = {}7標題 = {8'Accept': 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)12列印(回應.text)13
1需要 "uri"2需要 "net/http"34# 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/...)5url = URI("https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::Get.new(url)1112回應 = https.請求(請求)13將回應。read_body14
1需要 "uri"2需要 "net/http"34# 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/...)5url = URI("https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::Get.new(url)1112回應 = https.請求(請求)13將回應。read_body14