Skip to main content
Plasma API method that returns an object with data about the sync status or false.

Parameters

None

Response

  • object|boolean — an object with sync status data or false when not syncing

eth_syncing code examples

const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("eth_syncing", []);
  console.log(result);
}

call();