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>