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