eth_feeHistory RPC Method
Parameter
blockCount
string/integer
ERFORDERLICH
Wird geladen...
newestBlock
Zeichenkette
ERFORDERLICH
Wird geladen...
rewardPercentiles
Ganzzahl
ERFORDERLICH
Wird geladen...
Rücksendungen
oldestBlock
Wird geladen...
Basisgebühr pro Gas
Wird geladen...
gasUsedRatio
Wird geladen...
reward
Wird geladen...
Anfrage
1curl https://docs-demo.sei-pacific.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_feeHistory","params":[4, "latest", [25, 75]],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.sei-pacific.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_feeHistory","params":[4, "latest", [25, 75]],"id":1,"jsonrpc":"2.0"}'
1erfordern 'eth'23client = Eth::Client.create 'https://docs-demo.sei-pacific.quiknode.pro/'4Nutzlast = {5„jsonrpc“: "2.0",6"method": "eth_feeHistory",7"params": [4, "latest", [25, 75]],8„id“: „1“9}1011Antwort = Client.senden(Nutzdaten.to_json)12gibt die Antwort aus
1erfordern 'eth'23client = Eth::Client.create 'https://docs-demo.sei-pacific.quiknode.pro/'4Nutzlast = {5„jsonrpc“: "2.0",6"method": "eth_feeHistory",7"params": [4, "latest", [25, 75]],8„id“: „1“9}1011Antwort = Client.senden(Nutzdaten.to_json)12gibt die Antwort aus
1import { ethers } from "ethers";2(async () => {3const Anbieter = new ethers.JsonRpcProvider(4"https://docs-demo.sei-pacific.quiknode.pro/"5);6const response = await provider.send("eth_feeHistory", [4, "latest", [25, 75]]);7console.log(response);8})();
1import { ethers } from "ethers";2(async () => {3const Anbieter = new ethers.JsonRpcProvider(4"https://docs-demo.sei-pacific.quiknode.pro/"5);6const response = await provider.send("eth_feeHistory", [4, "latest", [25, 75]]);7console.log(response);8})();
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_feeHistory",6„params“: [74,8"latest",9[1025,117512]13],14„id“: 1,15„jsonrpc“: "2.0"16});1718var requestOptions = {19Methode: 'POST',20Überschriften: myHeaders,21Körper: raw,22Weiterleitung: 'follow'23};2425fetch("https://docs-demo.sei-pacific.quiknode.pro/", requestOptions)26.dann(Antwort => Antwort.text())27.dann(Ergebnis => Konsole.log(Ergebnis))28.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_feeHistory",6„params“: [74,8"latest",9[1025,117512]13],14„id“: 1,15„jsonrpc“: "2.0"16});1718var requestOptions = {19Methode: 'POST',20Überschriften: myHeaders,21Körper: raw,22Weiterleitung: 'follow'23};2425fetch("https://docs-demo.sei-pacific.quiknode.pro/", requestOptions)26.dann(Antwort => Antwort.text())27.dann(Ergebnis => Konsole.log(Ergebnis))28.catch(error => console.log('error', error));
1import Anfragen2import json34url = "https://docs-demo.sei-pacific.quiknode.pro/"56Nutzlast = json.dumps({7"method": "eth_feeHistory",8„params“: [94,10"latest",11[1225,137514]15],16„id“: 1,17„jsonrpc“: "2.0"18})19Überschriften = {20„Content-Type“: 'application/json'21}2223Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2425Drucken(Antwort.text)26
1import Anfragen2import json34url = "https://docs-demo.sei-pacific.quiknode.pro/"56Nutzlast = json.dumps({7"method": "eth_feeHistory",8„params“: [94,10"latest",11[1225,137514]15],16„id“: 1,17„jsonrpc“: "2.0"18})19Überschriften = {20„Content-Type“: 'application/json'21}2223Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2425Drucken(Antwort.text)26
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.sei-pacific.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_feeHistory",14„params“: [154,16"latest",17[1825,197520]21],22„id“: 1,23„jsonrpc“: "2.0"24})2526Antwort = https.Anfrage(Anfrage)27gibt die Antwort aus.read_body28
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.sei-pacific.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_feeHistory",14„params“: [154,16"latest",17[1825,197520]21],22„id“: 1,23„jsonrpc“: "2.0"24})2526Antwort = https.Anfrage(Anfrage)27gibt die Antwort aus.read_body28
1aus web3 import Web3, HTTPProvider2provider = Web3.HTTPProvider("https://docs-demo.sei-pacific.quiknode.pro/")3result = provider.make_request('eth_feeHistory', [4, "latest", [25, 75]])4print(result)
1aus web3 import Web3, HTTPProvider2provider = Web3.HTTPProvider("https://docs-demo.sei-pacific.quiknode.pro/")3result = provider.make_request('eth_feeHistory', [4, "latest", [25, 75]])4print(result)
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen