- SDK Version(package.json):
“@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”, - Platform: Nuxt3
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'
this.walletServicesPlugin = new WalletServicesPlugin({
wsEmbedOpts: {
web3AuthClientId: config.public.web3AuthClientId,
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,
},
})
// Web3Authインスタンスにプラグインを追加
this.web3auth.addPlugin(this.walletServicesPlugin)
// 接続イベントリスナーを追加
this.walletServicesPlugin.on('connected', () => {
this.walletServicesPluginConnected = true
})
} catch (error) {
console.error('Wallet Servicesの設定エラー:', error)
}
}
I am using the web3auth-nodal library for wallet integration and the walletservice plugin.
・Use case
Copy the Wallet Connect URL from OpenSea, etc., and paste it into the Web3Auth Wallet icon to integrate.
I have confirmed that the integration is working, but is it possible to process NFT-related transactions on Opensea?
If so, please provide me with some sample code.
thanks in advance