/account/balance REST API Endpoint
身體參數
network_identifier
物件
必填
載入中...
區塊鏈
字串
必填
載入中...
網路
字串
必填
載入中...
sub_network_identifier
物件
載入中...
網路
字串
必填
載入中...
metadata
物件
載入中...
account_identifier
物件
必填
載入中...
地址
字串
必填
載入中...
sub_account
物件
載入中...
地址
字串
必填
載入中...
metadata
物件
載入中...
metadata
物件
載入中...
block_identifier
物件
載入中...
目錄
整數
載入中...
hash
字串
載入中...
currencies
陣列
載入中...
符號
字串
必填
載入中...
小數
整數
必填
載入中...
metadata
物件
載入中...
退貨
物件
物件
載入中...
block_identifier
物件
載入中...
目錄
整數
載入中...
hash
字串
載入中...
balances
陣列
載入中...
值
字串
載入中...
currency
物件
載入中...
符號
字串
載入中...
小數
整數
載入中...
metadata
物件
載入中...
metadata
物件
載入中...
metadata
物件
載入中...
sequence_number
整數
載入中...
請求
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance' \2--標頭 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"account_identifier": {9"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"10}11}'
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance' \2--標頭 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"account_identifier": {9"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"10}11}'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8},9"account_identifier": {10"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"11}12});1314const requestOptions = {15方法: 「POST」,16標題: myHeaders,17正文: 原始,18重定向: 「追蹤」19};2021fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance", requestOptions)22.接著((回應) => 回應.文字())23.接著((結果) => 控制台.log(結果))24.catch((錯誤) => 控制台.錯誤(錯誤));
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8},9"account_identifier": {10"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"11}12});1314const requestOptions = {15方法: 「POST」,16標題: myHeaders,17正文: 原始,18重定向: 「追蹤」19};2021fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance", requestOptions)22.接著((回應) => 回應.文字())23.接著((結果) => 控制台.log(結果))24.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance"56有效載荷 = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"account_identifier": {12"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"13}14})15標題 = {16「Content-Type」: 'application/json'17}1819回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2021列印(回應.text)
1匯入 請求2import json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance"56有效載荷 = json.dumps({7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10},11"account_identifier": {12"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"13}14})15標題 = {16「Content-Type」: 'application/json'17}1819回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2021列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"network_identifier": {14"blockchain": "stacks",15"network": "mainnet"16},17"account_identifier": {18"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"19}20})2122回應 = http.請求(請求)23將回應。read_body
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/account/balance")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"network_identifier": {14"blockchain": "stacks",15"network": "mainnet"16},17"account_identifier": {18"address": "SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7"19}20})2122回應 = http.請求(請求)23將回應。read_body