eth_getUncleCountByBlockHash RPC Method
Parameter
Hash
Zeichenkette
ERFORDERLICH
Wird geladen...
Rücksendungen
Onkel
Wird geladen...
Anfrage
1curl -X POST "https://docs-demo.imx-testnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_getUncleCountByBlockHash",6"params": [7"0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"8],9"id": 110}'
1curl -X POST "https://docs-demo.imx-testnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_getUncleCountByBlockHash",6"params": [7"0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"8],9"id": 110}'
1const body = {2jsonrpc: '2.0',3method: 'eth_getUncleCountByBlockHash',4params: ["0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"],5id: 16}78async Funktion main() {9const response = await fetch('https://docs-demo.imx-testnet.quiknode.pro/', {10Methode: 'POST',11headers: {'Content-Type': 'application/json'},12Körper: JSON.stringify(body)13})14const Daten = await Antwort.json()15Konsole.Protokoll(Daten)16}1718Hauptseite()
1const body = {2jsonrpc: '2.0',3method: 'eth_getUncleCountByBlockHash',4params: ["0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"],5id: 16}78async Funktion main() {9const response = await fetch('https://docs-demo.imx-testnet.quiknode.pro/', {10Methode: 'POST',11headers: {'Content-Type': 'application/json'},12Körper: JSON.stringify(body)13})14const Daten = await Antwort.json()15Konsole.Protokoll(Daten)16}1718Hauptseite()
1import Anfragen2import json34URL = "https://docs-demo.imx-testnet.quiknode.pro/"56Nutzlast = json.dumps({7„jsonrpc“: "2.0",8"method": "eth_getUncleCountByBlockHash",9„params“: [10"0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"11],12„id“: 113})14Überschriften = {15„Content-Type“: 'application/json'16}1718Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1920Drucken(Antwort.text)
1import Anfragen2import json34URL = "https://docs-demo.imx-testnet.quiknode.pro/"56Nutzlast = json.dumps({7„jsonrpc“: "2.0",8"method": "eth_getUncleCountByBlockHash",9„params“: [10"0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"11],12„id“: 113})14Überschriften = {15„Content-Type“: 'application/json'16}1718Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1920Drucken(Antwort.text)
1require "uri"2require "json"3require „net/http“45uri = URI(„https://docs-demo.imx-testnet.quiknode.pro/“)67Nutzlast = {8jsonrpc: "2.0",9id: 1,10method: "eth_getUncleCountByBlockHash",11params: ["0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"]12}1314Anfrage = Netto::HTTP::POST.new(URI)15Anfrage[„Content-Type“] = „application/json“16Anfrage.Inhalt = JSON.generate(Nutzdaten)1718Antwort = Netto::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.Anfrage(Anfrage)20Ende2122gibt die Antwort aus.Hauptteil
1require "uri"2require "json"3require „net/http“45uri = URI(„https://docs-demo.imx-testnet.quiknode.pro/“)67Nutzlast = {8jsonrpc: "2.0",9id: 1,10method: "eth_getUncleCountByBlockHash",11params: ["0x002e937128e856366ec85fa19e1910bdf1690ac53bcc05a0b0e3c71c6cedf702"]12}1314Anfrage = Netto::HTTP::POST.new(URI)15Anfrage[„Content-Type“] = „application/json“16Anfrage.Inhalt = JSON.generate(Nutzdaten)1718Antwort = Netto::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.Anfrage(Anfrage)20Ende2122gibt die Antwort aus.Hauptteil
Antwort
1{2„jsonrpc“: "2.0",3„id“: 1,4"result": "0x0"5}
1{2„jsonrpc“: "2.0",3„id“: 1,4"result": "0x0"5}
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen