Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
Adding string from variable in javascript to API URL in HTML

so I am trying to include an Ethereum address from MetaMask into Opensea API.

The users wallet address is saved in userWalletAddress

            async function LoginWithMetaMask () {
            const accounts = await window.ethereum.request({ method: 
            'eth_requestAccounts' })
                .catch((e) => {
                    console.error(e.message)
                    return
                })
            if (!accounts) { return }

            window.userWalletAddress = accounts[0]
            userWallet.innerText = window.userWalletAddress
            loginButton.innerText = 'Sign out of MetaMask'

I now want to add the address to a URL that displays/embeds the users NFT from OpenSea's API. How do I Do this? I want "userWallet" in the URL to be the address that is stored in window.userWalletAddress

        <iframe src='https://opensea.io/userWalletAddress?embed=true'
        width='50%'
        height='50%'
        frameborder='0'
        allowfullscreen></iframe>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda