/wallet/getblockbalance REST API Endpoint
Körperparameter
Hash
Zeichenkette
ERFORDERLICH
Wird geladen...
Zahl
Ganzzahl
ERFORDERLICH
Wird geladen...
sichtbar
boolesch
Wird geladen...
Rücksendungen
Zeitstempel
Wird geladen...
block_identifier
Wird geladen...
Hash
Wird geladen...
Zahl
Wird geladen...
transaction_balance_trace
Wird geladen...
transaction_identifier
Wird geladen...
operation
Wird geladen...
Typ
Wird geladen...
Status
Wird geladen...
Anfrage
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"hash": "BLOCK_HASH",7"number": BLOCK_NUMBER,8"visible": true9}10'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"hash": "BLOCK_HASH",7"number": BLOCK_NUMBER,8"visible": true9}10'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8hash: 'BLOCK_HASH',9number: BLOCK_NUMBER,10sichtbar: true11};1213abrufen(url, {14Methode: 'POST',15Überschriften: Kopfzeilen,16Körper: JSON.stringify(data)17})18.dann(Antwort => Antwort.json())19.dann(Ergebnis => {20Konsole.Protokoll(Ergebnis);21})22.catch(Fehler => {23Konsole.Fehler(Fehler);24});25
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8hash: 'BLOCK_HASH',9number: BLOCK_NUMBER,10sichtbar: true11};1213abrufen(url, {14Methode: 'POST',15Überschriften: Kopfzeilen,16Körper: JSON.stringify(data)17})18.dann(Antwort => Antwort.json())19.dann(Ergebnis => {20Konsole.Protokoll(Ergebnis);21})22.catch(Fehler => {23Konsole.Fehler(Fehler);24});25
1import Anfragen23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11'hash': 'BLOCK_HASH',12'number': BLOCK_NUMBER,13'visible': True14}1516Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1718wenn Antwort.status_code == 200:19Drucken(Antwort.json())20sonst:21Drucken('Anfrage fehlgeschlagen mit Statuscode:', Antwort.status_code)22
1import Anfragen23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11'hash': 'BLOCK_HASH',12'number': BLOCK_NUMBER,13'visible': True14}1516Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1718wenn Antwort.status_code == 200:19Drucken(Antwort.json())20sonst:21Drucken('Anfrage fehlgeschlagen mit Statuscode:', Antwort.status_code)22
1require 'net/http'2require 'json'3benötigen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16'hash' => 'BLOCK_HASH',17'number' => BLOCK_NUMBER,18'visible' => true19}2021Anfrage = Netto::HTTP::POST.new(URL)22Anfrage.Inhalt = Daten.to_json23Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }2425Antwort = http.Anfrage(Anfrage)2627wenn Antwort.Code.to_i == 20028Ergebnis = JSON.parse(response.body)29gibt das Ergebnis aus30sonst31puts "Request failed with status code: #{response.code}"32Ende33
1require 'net/http'2require 'json'3benötigen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16'hash' => 'BLOCK_HASH',17'number' => BLOCK_NUMBER,18'visible' => true19}2021Anfrage = Netto::HTTP::POST.new(URL)22Anfrage.Inhalt = Daten.to_json23Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }2425Antwort = http.Anfrage(Anfrage)2627wenn Antwort.Code.to_i == 20028Ergebnis = JSON.parse(response.body)29gibt das Ergebnis aus30sonst31puts "Request failed with status code: #{response.code}"32Ende33
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen