GET /api/v2/balancehistory/{address} - Blockbook REST API
Please note that this REST method requires the BCH Blockbook 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 函数 main() {2const response = await fetch('https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600', {3方法: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const 数据 = await 响应.json()7控制台.日志(数据)8}910主()
1async 函数 main() {2const response = await fetch('https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600', {3方法: 'GET',4headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}5})6const 数据 = await 响应.json()7控制台.日志(数据)8}910主()
1导入 请求2导入 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“接受”: 'application/json'9}1011回复 = 请求.请求("GET", url, headers=headers)1213打印(响应.text)
1导入 请求2导入 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“接受”: 'application/json'9}1011回复 = 请求.请求("GET", url, headers=headers)1213打印(响应.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600")67请求 = Net::HTTP::Get.new(uri)8请求["Content-Type"] = "application/json"9请求[“接受”] = "application/json"1011回复 = 净::HTTP.开始(uri.主机, uri.端口, use_ssl: true) 执行 |http|12http.请求(请求)13结束1415返回响应。正文
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.bch-mainnet.quiknode.pro/balancehistory/bitcoincash:qzf9ax7we6swngffah3e9gr4mgh0qw3zcy6kq5afau?from=1683684000&to=1700042400&fiatcurrency=usd&groupBy=3600")67请求 = Net::HTTP::Get.new(uri)8请求["Content-Type"] = "application/json"9请求[“接受”] = "application/json"1011回复 = 净::HTTP.开始(uri.主机, uri.端口, use_ssl: true) 执行 |http|12http.请求(请求)13结束1415返回响应。正文
回复
1[]
1[]