bb_getBlockHash RPC Method - Blockbook
Please note that this RPC method requires the Litecoin Blockbook enabled on your Quicknode endpoint.
Parameter
blockHeight
Zeichenkette
ERFORDERLICH
Wird geladen...
Rücksendungen
Ergebnis
Objekt
Wird geladen...
blockHash
Zeichenkette
Wird geladen...
Anfrage
1curl https://docs-demo.ltc-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"bb_getBlockHash","params": ["2848849"],"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_getBlockHash","params": ["2848849"],"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "bb_getBlockHash",6„params“: [7"2848849"8],9„id“: 1,10"jsonrpc": "2.0"11});1213var requestOptions = {14Methode: 'POST',15Überschriften: myHeaders,16body: raw,17redirect: 'follow'18};1920fetch("https://docs-demo.ltc-mainnet.quiknode.pro/", requestOptions)21.dann(Antwort => Antwort.text())22.dann(Ergebnis => Konsole.log(Ergebnis))23.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "bb_getBlockHash",6„params“: [7"2848849"8],9„id“: 1,10"jsonrpc": "2.0"11});1213var requestOptions = {14Methode: 'POST',15Überschriften: myHeaders,16body: raw,17redirect: 'follow'18};1920fetch("https://docs-demo.ltc-mainnet.quiknode.pro/", requestOptions)21.dann(Antwort => Antwort.text())22.dann(Ergebnis => Konsole.log(Ergebnis))23.catch(error => console.log('error', error));
1import Anfragen2import json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "bb_getBlockHash",8„params“: [9"2848849"10],11„id“: 1,12"jsonrpc": "2.0"13})14Kopfzeilen = {15„Content-Type“: 'application/json'16}1718Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1920Drucken(Antwort.text)21
1import Anfragen2import json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "bb_getBlockHash",8„params“: [9"2848849"10],11„id“: 1,12"jsonrpc": "2.0"13})14Kopfzeilen = {15„Content-Type“: 'application/json'16}1718Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1920Drucken(Antwort.text)21
1require „uri“2require "json"3require „net/http“45url = URI("https://docs-demo.ltc-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12request.body = JSON.dump({13method: "bb_getBlockHash",14params: ["2848849"],15id: 1,16jsonrpc: "2.0"17})1819Antwort = https.Anfrage(Anfrage)20gibt die Antwort aus.read_body21
1require „uri“2require "json"3require „net/http“45url = URI("https://docs-demo.ltc-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12request.body = JSON.dump({13method: "bb_getBlockHash",14params: ["2848849"],15id: 1,16jsonrpc: "2.0"17})1819Antwort = https.Anfrage(Anfrage)20gibt die Antwort aus.read_body21
Hast du noch kein Konto?
Erstellen Sie Ihrenendpoint Sekundenschnelle und legen Sie los
Kostenlos loslegen