Hi, I’m Dung Huynh Duc . Nice to meet you.

About Me

I’m a full stack developer. I’m a fast learner and self-taught coder. I often take my time for researching and learning about hot and trending technology.

Web3
EthersJs

#TIL 17 - Call eth_sync

blog_hero_#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.