Parameters:
Returns:
startingBlock - The block at which the import started encoded as a hexadecimal.
currentBlock - The current block, same as eth_blockNumber encoded as a hexadecimal.
highestBlock - The estimated highest block encoded as a hexadecimal.
Code Examples:
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); const isSyncing = await provider.send("eth_syncing"); console.log(isSyncing); })();
from web3 import Web3, HTTPProvider w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')) print (w3.eth.syncing)
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":67}'
require 'ethereum.rb' client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') response = client.eth_syncing puts response["result"]