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

About Me

With over a decade of experience under my belt as a full-stack developer, I've had the opportunity to spearhead project teams at tech startups in Vietnam, Thailand, Japan and Singapore. Additionally, I have worked as a freelance engineer for various companies based in Asia Pacific, Europe, and North America.

Presently, I serve the role of a Senior Full Stack Software Engineer at ACX. I am consistently committed to exploring and acquiring knowledge on emerging and popular technologies.

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.