0

In my DApp, I want to check whether the MetaMask in connected to BSC Minnet RPC network using JQuery. Is it possible to check the Connected RPC network in MetaMask using JQuery?

Thanks a bunch in advance!!

2 Answers 2

1

To get the current network connection you could use its chainId.

ethereum.request({ method: 'eth_chainId' })
0

jQuery is a JavaScript library for DOM manipulation. jQuery is unrelated to MetaMask that interacts with JavaScript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.