bb_getBalanceHistory RPC Method - Blockbook
Please note that this RPC method requires the Litecoin Blockbook add-on enabled on your Quicknode endpoint.
參數
地址
字串
必填
載入中...
物件
物件
載入中...
來自
字串
載入中...
至
字串
載入中...
fiatcurrency
字串
載入中...
groupBy
整數
載入中...
gap
整數
載入中...
退貨
時間
整數
載入中...
txs
整數
載入中...
received
字串
載入中...
已發送
字串
載入中...
sentToSelf
字串
載入中...
rates
物件
載入中...
請求
1curl https://docs-demo.ltc-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"bb_getBalanceHistory","params": ["LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe", {"from":"1683684000", "to":"1715035409", "fiatcurrency":"usd", "groupBy":3600}],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.ltc-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"bb_getBalanceHistory","params": ["LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe", {"from":"1683684000", "to":"1715035409", "fiatcurrency":"usd", "groupBy":3600}],"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "bb_getBalanceHistory",6"params": [7"LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe",8{9"from": "1683684000",10"to": "1715035409",11"fiatcurrency": "usd",12"groupBy": 360013}14],15"id": 1,16"jsonrpc": "2.0"17});1819var requestOptions = {20方法: 'POST',21標題: myHeaders,22正文: 原始,23redirect: 'follow'24};2526fetch("https://docs-demo.ltc-mainnet.quiknode.pro/", requestOptions)27.then(response => response.text())28.then(result => console.log(result))29.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "bb_getBalanceHistory",6"params": [7"LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe",8{9"from": "1683684000",10"to": "1715035409",11"fiatcurrency": "usd",12"groupBy": 360013}14],15"id": 1,16"jsonrpc": "2.0"17});1819var requestOptions = {20方法: 'POST',21標題: myHeaders,22正文: 原始,23redirect: 'follow'24};2526fetch("https://docs-demo.ltc-mainnet.quiknode.pro/", requestOptions)27.then(response => response.text())28.then(result => console.log(result))29.catch(error => console.log('error', error));
1匯入 請求2import json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"method": "bb_getBalanceHistory",8"params": [9"LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe",10{11"from": "1683684000",12"to": "1715035409",13"fiatcurrency": "usd",14"groupBy": 360015}16],17"id": 1,18"jsonrpc": "2.0"19})20標題 = {21「Content-Type」: 'application/json'22}2324回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2526列印(回應.text)
1匯入 請求2import json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"method": "bb_getBalanceHistory",8"params": [9"LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe",10{11"from": "1683684000",12"to": "1715035409",13"fiatcurrency": "usd",14"groupBy": 360015}16],17"id": 1,18"jsonrpc": "2.0"19})20標題 = {21「Content-Type」: 'application/json'22}2324回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2526列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.ltc-mainnet.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"method": "bb_getBalanceHistory",14"params": [15"LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe",16{17"from": "1683684000",18"to": "1715035409",19"fiatcurrency": "usd",20"groupBy": 360021}22],23"id": 1,24"jsonrpc": "2.0"25})2627回應 = https.請求(請求)28將回應。read_body29
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.ltc-mainnet.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"method": "bb_getBalanceHistory",14"params": [15"LYhttvnKawAv6RcHQ4eBkNtifuiEA99PFe",16{17"from": "1683684000",18"to": "1715035409",19"fiatcurrency": "usd",20"groupBy": 360021}22],23"id": 1,24"jsonrpc": "2.0"25})2627回應 = https.請求(請求)28將回應。read_body29