eth_call RPC Method
Parameter
Transaktion
Objekt
ERFORDERLICH
Wird geladen...
aus
Zeichenkette
Wird geladen...
zu
Zeichenkette
ERFORDERLICH
Wird geladen...
Gas
Ganzzahl
Wird geladen...
Benzinpreis
Ganzzahl
Wird geladen...
Wert
Ganzzahl
Wird geladen...
Daten
Zeichenkette
Wird geladen...
Blocknummer/Tag
Zeichenkette
ERFORDERLICH
Wird geladen...
Object
Objekt
Wird geladen...
balance
Zeichenkette
Wird geladen...
Nonce
Zeichenkette
Wird geladen...
Code
Zeichenkette
Wird geladen...
state
Objekt
Wird geladen...
stateDiff
Ganzzahl
Wird geladen...
Rücksendungen
Daten
Zeichenkette
Wird geladen...
Anfrage
1curl https://docs-demo.hedera-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--Daten '{5"jsonrpc": "2.0",6"id": 1,7"method": "eth_call",8"params": [9{10"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",11"data": "0x313ce567"12},13„aktuell“14]15}'16
1curl https://docs-demo.hedera-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--Daten '{5"jsonrpc": "2.0",6"id": 1,7"method": "eth_call",8"params": [9{10"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",11"data": "0x313ce567"12},13„aktuell“14]15}'16
1erfordern 'eth'23client = Eth::Client.create 'https://docs-demo.hedera-testnet.quiknode.pro/'4Nutzlast = {5„jsonrpc“: "2.0",6"method": "eth_call",7„params“: [8{9"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",10"data": "0x313ce567"11},12„aktuell“13],14„id“: „1“15}1617Antwort = Client.senden(Nutzdaten.to_json)18gibt die Antwort aus19
1erfordern 'eth'23client = Eth::Client.create 'https://docs-demo.hedera-testnet.quiknode.pro/'4Nutzlast = {5„jsonrpc“: "2.0",6"method": "eth_call",7„params“: [8{9"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",10"data": "0x313ce567"11},12„aktuell“13],14„id“: „1“15}1617Antwort = Client.senden(Nutzdaten.to_json)18gibt die Antwort aus19
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hedera-testnet.quiknode.pro/");4const response = await provider.send("eth_call", [5{6"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",7"data": "0x313ce567"8},9„aktuell“10]);11console.log(response);12})();13
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hedera-testnet.quiknode.pro/");4const response = await provider.send("eth_call", [5{6"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",7"data": "0x313ce567"8},9„aktuell“10]);11console.log(response);12})();13
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_call",6„params“: [7{8"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",9"data": "0x313ce567"10},11„aktuell“12],13„id“: 1,14„jsonrpc“: "2.0"15});1617var requestOptions = {18Methode: 'POST',19Überschriften: myHeaders,20Körper: raw,21Weiterleitung: 'follow'22};2324fetch("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)25.dann(Antwort => Antwort.text())26.dann(Ergebnis => Konsole.log(Ergebnis))27.catch(Fehler => Konsole.log('Fehler', Fehler));28
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_call",6„params“: [7{8"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",9"data": "0x313ce567"10},11„aktuell“12],13„id“: 1,14„jsonrpc“: "2.0"15});1617var requestOptions = {18Methode: 'POST',19Überschriften: myHeaders,20Körper: raw,21Weiterleitung: 'follow'22};2324fetch("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)25.dann(Antwort => Antwort.text())26.dann(Ergebnis => Konsole.log(Ergebnis))27.catch(Fehler => Konsole.log('Fehler', Fehler));28
1import Anfragen2import json34url = "https://docs-demo.hedera-testnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "eth_call",8„params“: [9{10"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",11"data": "0x313ce567"12},13„aktuell“14],15„id“: 1,16„jsonrpc“: "2.0"17})18Überschriften = {19„Content-Type“: 'application/json'20}2122Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2324Drucken(Antwort.text)25
1import Anfragen2import json34url = "https://docs-demo.hedera-testnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "eth_call",8„params“: [9{10"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",11"data": "0x313ce567"12},13„aktuell“14],15„id“: 1,16„jsonrpc“: "2.0"17})18Überschriften = {19„Content-Type“: 'application/json'20}2122Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2324Drucken(Antwort.text)25
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_call",14„params“: [15{16"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",17"data": "0x313ce567"18},19„aktuell“20],21„id“: 1,22„jsonrpc“: "2.0"23})2425Antwort = https.Anfrage(Anfrage)26gibt die Antwort aus.read_body27
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_call",14„params“: [15{16"to": "0x047F8c7569B9beECaB790902BA29DaAD143041d7",17"data": "0x313ce567"18},19„aktuell“20],21„id“: 1,22„jsonrpc“: "2.0"23})2425Antwort = https.Anfrage(Anfrage)26gibt die Antwort aus.read_body27
1aus web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3abi = '[{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}]'4myContract = w3.eth.contract(address="0x6B175474E89094C44Da98b954EedeAC495271d0F", abi=abi)5response = myContract.functions.balanceOf("0x6E0d01A76C3Cf4288372a29124A26D4353EE51BE").call()6Drucken(Antwort)
1aus web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3abi = '[{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}]'4myContract = w3.eth.contract(address="0x6B175474E89094C44Da98b954EedeAC495271d0F", abi=abi)5response = myContract.functions.balanceOf("0x6E0d01A76C3Cf4288372a29124A26D4353EE51BE").call()6Drucken(Antwort)
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen