eth_getUncleCountByBlockHash RPC Method
Parâmetros
hash
cadeia de caracteres
OBRIGATÓRIO
A carregar...
Devoluções
resultado
cadeia de caracteres
A carregar...
Pedido
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"}'
1exigir 'eth'23client = Eth::Client.create 'https://docs-demo.hedera-testnet.quiknode.pro/'4carga útil = {5"jsonrpc": "2.0",6"method": "eth_getUncleCountByBlockHash",7"params": ["0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"],8"id": "1"9}1011resposta = cliente.enviar(carga.to_json)12apresenta a resposta
1exigir 'eth'23client = Eth::Client.create 'https://docs-demo.hedera-testnet.quiknode.pro/'4carga útil = {5"jsonrpc": "2.0",6"method": "eth_getUncleCountByBlockHash",7"params": ["0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"],8"id": "1"9}1011resposta = cliente.enviar(carga.to_json)12apresenta a resposta
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.acrescentar("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 = {14método: 'POST',15cabeçalhos: myHeaders,16corpo: raw,17redirecionar: 'seguir'18};1920fetch("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)21.então(resposta => resposta.texto())22.então(resultado => console.log(resultado))23.catch(erro => console.log('erro', erro));24
1var myHeaders = new Headers();2myHeaders.acrescentar("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 = {14método: 'POST',15cabeçalhos: myHeaders,16corpo: raw,17redirecionar: 'seguir'18};1920fetch("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)21.então(resposta => resposta.texto())22.então(resultado => console.log(resultado))23.catch(erro => console.log('erro', erro));24
1importar pedidos2import json34url = "https://docs-demo.hedera-testnet.quiknode.pro/"56carga útil = json.dumps({7"method": "eth_getUncleCountByBlockHash",8"params": [9"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"10],11"id": 1,12"jsonrpc": "2.0"13})14cabeçalhos = {15'Content-Type': 'application/json'16}1718resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1920imprimir(resposta.texto)21
1importar pedidos2import json34url = "https://docs-demo.hedera-testnet.quiknode.pro/"56carga útil = json.dumps({7"method": "eth_getUncleCountByBlockHash",8"params": [9"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"10],11"id": 1,12"jsonrpc": "2.0"13})14cabeçalhos = {15'Content-Type': 'application/json'16}1718resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1920imprimir(resposta.texto)21
1exigir "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hedera-testnet.quiknode.pro/")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["Content-Type"] = "application/json"12pedido.corpo = JSON.dump({13"method": "eth_getUncleCountByBlockHash",14"params": [15"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"16],17"id": 1,18"jsonrpc": "2.0"19})2021resposta = https.pedido(pedido)22insere a resposta.read_body23
1exigir "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hedera-testnet.quiknode.pro/")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["Content-Type"] = "application/json"12pedido.corpo = JSON.dump({13"method": "eth_getUncleCountByBlockHash",14"params": [15"0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881"16],17"id": 1,18"jsonrpc": "2.0"19})2021resposta = https.pedido(pedido)22insere a resposta.read_body23
1de web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3print (w3.eth.get_uncle_count('0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881'))4
1de web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3print (w3.eth.get_uncle_count('0xb0317b807a321fbe4ecb9219e15c0bd264dc54bc0dda2b68ead161f5d4aa9881'))4
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente