GET /api/v2/balancehistory/{address} - Blockbook REST API
Please note that this REST method requires the BCH Blockbook add-on enabled on your Quicknode endpoint.
路徑參數
xpub_or_address
字串
必填
載入中...
查詢參數
來自
整數
載入中...
至
整數
載入中...
fiatcurrency
字串
載入中...
groupBy
整數
載入中...
gap
整數
載入中...
退貨
時間
整數
載入中...
txs
整數
載入中...
received
字串
載入中...
已發送
字串
載入中...
sentToSelf
字串
載入中...
rates
物件
載入中...
{currency}
整數
載入中...
請求
1curl -X GET "https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1curl -X GET "https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1async function main() {2const response = await fetch('https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600', {3method: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const data = 等待 response.json()7控制台.日誌(資料)8}910主頁()
1async function main() {2const response = await fetch('https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600', {3method: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const data = 等待 response.json()7控制台.日誌(資料)8}910主頁()
1匯入 請求2import json34url = "https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600"56標題 = {7「Content-Type」: 'application/json',8'Accept': 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers)1213列印(回應.text)
1匯入 請求2import json34url = "https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600"56標題 = {7「Content-Type」: 'application/json',8'Accept': 'application/json'9}1011回應 = 請求.請求("GET", url, headers=headers)1213列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600")67request = Net::HTTP::Get.new(uri)8請求["Content-Type"] = "application/json"9請求[「接受」] = "application/json"1011回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|12http.請求(請求)13結束1415將回應。正文
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600")67request = Net::HTTP::Get.new(uri)8請求["Content-Type"] = "application/json"9請求[「接受」] = "application/json"1011回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|12http.請求(請求)13結束1415將回應。正文
回應
1[]
1[]