Hello,
I am trying to connect to the Astar Network using web3auth on vue.js.
I am modifying the “vue-evm-modal-example” of web3auth and trying to run it, but the value of the provider becomes null, and I cannot get the Wallet address.
The settings for web3auth are as follows:
Is there any mistake in this content when connecting via EVM?
By the way, you can check the contents of the Wallet by clicking the WEB3AUTH icon displayed in the lower left.
const web3auth = new Web3Auth({
clientId,
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x250",
rpcTarget: "https://evm.astar.network", // This is the public RPC we have added, please pass on your own endpoint while creating an app
displayName: "Aster EVM",
blockExplorer: "https://astar.subscan.io/",
ticker: "ASTR",
tickerName: "ASTAR",
},
uiConfig: {
defaultLanguage: "en",
appLogo: "https://community/images.web3auth.io/web3auth-logo-w.svg",
theme: "dark",
loginMethodsOrder: ["facebook", "google" ,"twitter"],
},
web3AuthNetwork: "cyan",
});
Thank you for your help.
I cloned the sample again from scratch and only changed the clientId and ChainID, and as a result, I was able to successfully obtain the WalletID.
Thank you very much indeed.