/accounts/{accountId}/balance-info REST API Endpoint
路径参数
accountId
字符串
必填
正在加载...
查询参数
at
字符串
正在加载...
token
字符串
正在加载...
denominated
布尔型
正在加载...
退货
at
对象
正在加载...
哈希
字符串
正在加载...
高度
字符串
正在加载...
非重复值
字符串
正在加载...
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.append("Accept", "application/json");45const requestOptions = {6方法: "GET",7标题: myHeaders,8重定向: "follow"9};1011fetch("https://docs-demo.dot-mainnet.quiknode.pro/accounts/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-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/5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty/balance-info", requestOptions)12.然后((响应) => 响应.文本())13.然后((结果) => 控制台.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
1require "uri"2require "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 = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::Get.new(url)1112回复 = https.请求(请求)13返回响应.read_body14
1require "uri"2require "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 = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::Get.new(url)1112回复 = https.请求(请求)13返回响应.read_body14