RPC-Methode „eth_newFilter“
To use the eth_newFilter method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.
Parameter
Objekt
Objekt
Wird geladen...
fromBlock
Zeichenkette
Wird geladen...
toBlock
Zeichenkette
Wird geladen...
Adresse
Zeichenkette
Wird geladen...
Themen
Array
Wird geladen...
Rücksendungen
Ergebnis
Zeichenkette
Wird geladen...
Anfrage
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_newFilter",6"params": [7{8"fromBlock": "0xe20360",9"toBlock": "0xe20411",10"address": "0x6b175474e89094c44da98b954eedeac495271d0f",11"Themen": []12}13],14"id": 115}'
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_newFilter",6"params": [7{8"fromBlock": "0xe20360",9"toBlock": "0xe20411",10"address": "0x6b175474e89094c44da98b954eedeac495271d0f",11"Themen": []12}13],14"id": 115}'
1const body = {2jsonrpc: '2.0',3Methode: 'eth_newFilter',4params: [{"fromBlock":"0xe20360","toBlock":"0xe20411","address":"0x6b175474e89094c44da98b954eedeac495271d0f","topics":[]}],5id: 16}78async Funktion main() {9const response = await fetch('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/', {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',3Methode: 'eth_newFilter',4params: [{"fromBlock":"0xe20360","toBlock":"0xe20411","address":"0x6b175474e89094c44da98b954eedeac495271d0f","topics":[]}],5id: 16}78async Funktion main() {9const response = await fetch('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/', {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.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"56Nutzlast = json.dumps({7„jsonrpc“: "2.0",8„Methode“: „eth_newFilter“,9„params“: [10{11„fromBlock“: „0xe20360“,12„toBlock“: „0xe20411“,13„Adresse“: „0x6b175474e89094c44da98b954eedeac495271d0f“,14„Themen“: []15}16],17„id“: 118})19Überschriften = {20„Content-Type“: 'application/json'21}2223Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2425Drucken(Antwort.text)
1import Anfragen2import json34url = "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"56Nutzlast = json.dumps({7„jsonrpc“: "2.0",8„Methode“: „eth_newFilter“,9„params“: [10{11„fromBlock“: „0xe20360“,12„toBlock“: „0xe20411“,13„Adresse“: „0x6b175474e89094c44da98b954eedeac495271d0f“,14„Themen“: []15}16],17„id“: 118})19Überschriften = {20„Content-Type“: 'application/json'21}2223Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2425Drucken(Antwort.text)
1require "uri"2require "json"3require „net/http“45uri = URI("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/")67Nutzlast = {8jsonrpc: "2.0",9id: 1,10Methode: „eth_newFilter“,11params: [{"fromBlock":"0xe20360","toBlock":"0xe20411","address":"0x6b175474e89094c44da98b954eedeac495271d0f","topics":[]}]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.flare-mainnet.quiknode.pro/ext/bc/C/rpc/")67Nutzlast = {8jsonrpc: "2.0",9id: 1,10Methode: „eth_newFilter“,11params: [{"fromBlock":"0xe20360","toBlock":"0xe20411","address":"0x6b175474e89094c44da98b954eedeac495271d0f","topics":[]}]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„Ergebnis“: „0xe6b147ce1f04fa734095ba4ce3d17718“5}
1{2„jsonrpc“: "2.0",3„id“: 1,4„Ergebnis“: „0xe6b147ce1f04fa734095ba4ce3d17718“5}
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen