curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": []
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<unknown>"
}curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": []
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<unknown>"
}Monad API method that returns an object with data about the sync status orDocumentation Index
Fetch the complete documentation index at: https://chainstack-mintlify-flesh-empty-pages.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
false if the node is fully synced. This method is useful for monitoring the synchronization progress of your node.
noneresult — returns false if the node is not syncing, or an object with sync status data:
startingBlock — the block at which the import startedcurrentBlock — the current block being processedhighestBlock — the estimated highest blocketh_syncing code examplesconst { ethers } = require("ethers");
const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");
async function checkSyncStatus() {
const syncStatus = await provider.send("eth_syncing", []);
if (syncStatus === false) {
console.log("Node is fully synced");
} else {
console.log(`Syncing: ${parseInt(syncStatus.currentBlock, 16)} / ${parseInt(syncStatus.highestBlock, 16)}`);
}
}
checkSyncStatus();
eth_syncing is implementing health checks in your application to ensure the node is fully synced before processing transactions or queries that require the latest chain state.Was this page helpful?