eth_syncing RPC Method
पैरामीटर
यह विधि किसी भी पैरामीटर को स्वीकार नहीं करती है।
रिटर्न
परिणाम
वस्तु
लोड हो रहा है...
startingBlock
वस्तु
लोड हो रहा है...
currentBlock
वस्तु
लोड हो रहा है...
highestBlock
वस्तु
लोड हो रहा है...
अनुरोध
1curl https://docs-demo.injective-testnet.quiknode.pro/ \2-X POST \3-एच "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
1curl https://docs-demo.injective-testnet.quiknode.pro/ \2-X POST \3-एच "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
1ज़रूरत होना 'एथ'23client = Eth::Client.create 'https://docs-demo.injective-testnet.quiknode.pro/'4पेलोड = {5"jsonrpc" : "2.0" ,6"method": "eth_syncing",7"params":[],8"पहचान" : "1"9}1011प्रतिक्रिया = क्लाइंट.भेजें ( पेलोड . to_json )12प्रतिक्रिया देता है
1ज़रूरत होना 'एथ'23client = Eth::Client.create 'https://docs-demo.injective-testnet.quiknode.pro/'4पेलोड = {5"jsonrpc" : "2.0" ,6"method": "eth_syncing",7"params":[],8"पहचान" : "1"9}1011प्रतिक्रिया = क्लाइंट.भेजें ( पेलोड . to_json )12प्रतिक्रिया देता है
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.injective-testnet.quiknode.pro/");4const isSyncing = await provider.send("eth_syncing");5console.log(isSyncing);6})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.injective-testnet.quiknode.pro/");4const isSyncing = await provider.send("eth_syncing");5console.log(isSyncing);6})();
1var myHeaders = new Headers();2myHeaders.append ( "Content- Type " , "application/json" ) ;34var raw = JSON.stringify({5"jsonrpc" : "2.0" ,6"method": "eth_syncing",7"params":[],8"id": 679} ) ;1011var requestOptions = {12तरीका : 'डाक' ,13हेडर : मेरे हेडर ,14शरीर : कच्चा ,15redirect: 'follow'16} ;1718fetch("https://docs-demo.injective-testnet.quiknode.pro/", requestOptions)19.then(response => response.text())20.then(result => console.log(result))21.catch(error => console.log('error', error));22
1var myHeaders = new Headers();2myHeaders.append ( "Content- Type " , "application/json" ) ;34var raw = JSON.stringify({5"jsonrpc" : "2.0" ,6"method": "eth_syncing",7"params":[],8"id": 679} ) ;1011var requestOptions = {12तरीका : 'डाक' ,13हेडर : मेरे हेडर ,14शरीर : कच्चा ,15redirect: 'follow'16} ;1718fetch("https://docs-demo.injective-testnet.quiknode.pro/", requestOptions)19.then(response => response.text())20.then(result => console.log(result))21.catch(error => console.log('error', error));22
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.injective-testnet.quiknode.pro/"56पेलोड = json . डंप्स ( {7"jsonrpc" : "2.0" ,8"method": "eth_syncing",9"params":[],10"id": 6711} )12हेडर = {13'सामग्री प्रकार' : 'एप्लिकेशन/जेसन'14}1516प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )1718प्रिंट ( प्रतिक्रिया . पाठ )19
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.injective-testnet.quiknode.pro/"56पेलोड = json . डंप्स ( {7"jsonrpc" : "2.0" ,8"method": "eth_syncing",9"params":[],10"id": 6711} )12हेडर = {13'सामग्री प्रकार' : 'एप्लिकेशन/जेसन'14}1516प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )1718प्रिंट ( प्रतिक्रिया . पाठ )19
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45url = URI("https://docs-demo.injective-testnet.quiknode.pro/")67https = Net :: HTTP . new ( url . host , url . port )8https . use_ssl = सत्य910अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरएल )11अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"12अनुरोध.बॉडी = JSON . डंप ( {13"jsonrpc" : "2.0" ,14"method": "eth_syncing",15"params":[],16"id": 6717} )1819प्रतिक्रिया = https . अनुरोध ( अनुरोध )20puts response . read_body21
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45url = URI("https://docs-demo.injective-testnet.quiknode.pro/")67https = Net :: HTTP . new ( url . host , url . port )8https . use_ssl = सत्य910अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरएल )11अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"12अनुरोध.बॉडी = JSON . डंप ( {13"jsonrpc" : "2.0" ,14"method": "eth_syncing",15"params":[],16"id": 6717} )1819प्रतिक्रिया = https . अनुरोध ( अनुरोध )20puts response . read_body21
1from web3 import Web3 , HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.injective-testnet.quiknode.pro/'))3print (w3.eth.syncing)4
1from web3 import Web3 , HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.injective-testnet.quiknode.pro/'))3print (w3.eth.syncing)4
अब तक कोई खाता नहीं है?
कुछ ही सेकंड में अपना क्विकनोड एंडपॉइंट बनाएं और निर्माण शुरू करें।
मुफ़्त में शुरुआत करें