#TIL 17 - Call eth_sync
Hi there,
There is a case you want to call some ETH RPC API but ethersjs doesn't support it. If you check their document and couldn't find some eth_SOMETHING
then this is a solution for you.
Below is an example for calling eth_syncing
with ethersjs.
const ethersHttpProvider = new ethers.providers.JsonRpcProvider(httpProviderUrl);
const syncing = await ethersHttpProvider.send('eth_syncing', []);
Enjoy and have a nice day.