I’m planning to use Wallet Service, and I’m trying it out on sapphire_devnet right now.
Is it correct that what I set from Chains & Networks and Wallet Configuration in Web3Auth Dashboard is reflected in the wallet?
Also, is it possible to set up a chain list in the wallet that I want?
"@web3auth/auth-adapter": "^9.7.0",
"@web3auth/base": "^9.7.0",
"@web3auth/ethereum-provider": "^9.7.0",
"@web3auth/no-modal": "^9.7.0",
"@web3auth/wallet-connect-v2-adapter": "^9.7.0",
"@web3auth/wallet-services-plugin": "^9.7.0",
nuxt3
code
this.web3auth = new Web3AuthNoModal({
clientId,
web3AuthNetwork: web3AuthNetwork as WEB3AUTH_NETWORK_TYPE,
privateKeyProvider,
sessionTime: 86400 * 30,
})
......
private async setupWalletServices(config: RuntimeConfig) {
try {
if (!this.web3auth) return
// ロゴURLを環境変数から取得
const logoDark = config.public.logoDark || 'https://web3auth.io/images/web3auth-logo---Dark.svg'
const logoLight = config.public.logoLight || 'https://web3auth.io/images/web3auth-logo.svg'
// Wallet Servicesプラグインの初期化
// this.walletServicesPlugin = new WalletServicesPlugin({
// walletInitOptions: {
// whiteLabel: {
// showWidgetButton: true,
// buttonPosition: 'bottom-right',
// hideTopup: true,
// hideTransfers: false,
// hideNftDisplay: false,
// hideTokenDisplay: true,
// hideReceive: false,
// hideSwap: true,
// defaultPortfolio: 'token',
// logoDark,
// logoLight,
// defaultLanguage: this.getBrowserLanguage(),
// },
// },
// })
this.walletServicesPlugin = new WalletServicesPlugin({
wsEmbedOpts: {
web3AuthClientId: config.public.web3AuthClientId as string,
web3AuthNetwork: config.public.web3AuthNetwork as WEB3AUTH_NETWORK_TYPE,
},
walletInitOptions: {
whiteLabel: {
showWidgetButton: true,
buttonPosition: 'bottom-right',
hideSwap: true,
hideTopup: true,
logoDark,
logoLight,
defaultLanguage: this.getBrowserLanguage(),
defaultPortfolio: 'token',
},
confirmationStrategy: CONFIRMATION_STRATEGY.MODAL,
},
})
this.web3auth.addPlugin(this.walletServicesPlugin)
this.walletServicesPlugin.on('connected', () => {
this.walletServicesPluginConnected = true
})
} catch (error) {
console.error('Wallet Services:', error)
}
}
thanks in advance