I have been trying to switch the default network to
polygon-mainet and add a custom token programmatically for a while now…
I was able to achieve this using window.ethereum and also using moralis on desktop.
However, It seems to me that on mobile we can use as a provider only
walletconnect. And metamask.
walletconnect im not able to switch the user network or add a custom token to his wallet.
I made a VueJs public repo here : https://github.com/romain130492/moralli-test-2-vue-to-delete
I followed that ticket to switch between network : Programatically switch the selected Metamask network (works on desktop bc using metamask)
Does anyone know how i can do that kind of thing on mobile use wallet connect?
My goal again:
- To have polygon-mainet as network once the user login
- To add a custom token to my user wallet, on polygon-manet