Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!