eth_syncing
Returns syncing status of Monad node.
Parameters#
This method accepts no parameters.
Request#
{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 1
}
Returns#
Returns false if not syncing, or an object with sync status.
Code Examples#
- cURL
- JavaScript
curl -X POST https://api-monad-mainnet-full.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 1
}'
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-monad-mainnet-full.n.dwellir.com/YOUR_API_KEY');
const syncing = await provider.send('eth_syncing', []);
if (syncing === false) {
console.log('Node is fully synced');
} else {
console.log('Syncing:', syncing);
}
Related Methods#
eth_blockNumber- Get current blocknet_peerCount- Get peer count