eth_getUncleCountByBlockHash RPC Method
Parameter
Hash
Zeichenkette
ERFORDERLICH
Wird geladen...
Rücksendungen
Ergebnis
Zeichenkette
Wird geladen...
Anfrage
1curl https://docs-demo.hedera-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getUncleCountByBlockHash","params":["0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.hedera-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getUncleCountByBlockHash","params":["0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"],"id":1,"jsonrpc":"2.0"}'
1erfordern 'eth'23client = Eth::Client.create 'https://docs-demo.hedera-testnet.quiknode.pro/'4Nutzlast = {5„jsonrpc“: "2.0",6"method": "eth_getUncleCountByBlockHash",7"params": ["0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"],8„id“: „1“9}1011Antwort = Client.senden(Nutzdaten.to_json)12gibt die Antwort aus
1erfordern 'eth'23client = Eth::Client.create 'https://docs-demo.hedera-testnet.quiknode.pro/'4Nutzlast = {5„jsonrpc“: "2.0",6"method": "eth_getUncleCountByBlockHash",7"params": ["0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"],8„id“: „1“9}1011Antwort = Client.senden(Nutzdaten.to_json)12gibt die Antwort aus
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hedera-testnet.quiknode.pro/");4const uncleCount = await provider.send("eth_getUncleCountByBlockHash", [5"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881",6]);7console.log(uncleCount);8})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hedera-testnet.quiknode.pro/");4const uncleCount = await provider.send("eth_getUncleCountByBlockHash", [5"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881",6]);7console.log(uncleCount);8})();
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_getUncleCountByBlockHash",6„params“: [7"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"8],9„id“: 1,10„jsonrpc“: "2.0"11});1213var requestOptions = {14Methode: 'POST',15Überschriften: myHeaders,16Körper: raw,17Weiterleitung: 'follow'18};1920fetch("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)21.dann(Antwort => Antwort.text())22.dann(Ergebnis => Konsole.log(Ergebnis))23.catch(Fehler => Konsole.log('Fehler', Fehler));24
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_getUncleCountByBlockHash",6„params“: [7"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"8],9„id“: 1,10„jsonrpc“: "2.0"11});1213var requestOptions = {14Methode: 'POST',15Überschriften: myHeaders,16Körper: raw,17Weiterleitung: 'follow'18};1920fetch("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)21.dann(Antwort => Antwort.text())22.dann(Ergebnis => Konsole.log(Ergebnis))23.catch(Fehler => Konsole.log('Fehler', Fehler));24
1import Anfragen2import json34url = "https://docs-demo.hedera-testnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "eth_getUncleCountByBlockHash",8„params“: [9"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"10],11„id“: 1,12„jsonrpc“: "2.0"13})14Überschriften = {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.hedera-testnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "eth_getUncleCountByBlockHash",8„params“: [9"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"10],11„id“: 1,12„jsonrpc“: "2.0"13})14Überschriften = {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.hedera-testnet.quiknode.pro/")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12Anfrage.Inhalt = JSON.dump({13"method": "eth_getUncleCountByBlockHash",14„params“: [15"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"16],17„id“: 1,18„jsonrpc“: "2.0"19})2021Antwort = https.Anfrage(Anfrage)22gibt die Antwort aus.read_body23
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.hedera-testnet.quiknode.pro/")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12Anfrage.Inhalt = JSON.dump({13"method": "eth_getUncleCountByBlockHash",14„params“: [15"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"16],17„id“: 1,18„jsonrpc“: "2.0"19})2021Antwort = https.Anfrage(Anfrage)22gibt die Antwort aus.read_body23
1aus web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3print (w3.eth.get_uncle_count('0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881'))4
1aus web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3print (w3.eth.get_uncle_count('0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881'))4
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen