Can i get and NFT opensea link from moralis api endpoint reponse

Hi, I’m trying to get list of NFTs owned by a particular wallet address and their respective opensea link, i this possible

import Moralis from “moralis”;
import { EvmChain } from “@moralisweb3/evm-utils”;

const runApp = () => {
await Moralis.start({
apiKey: “YOUR_API_KEY”,
// …and any other configuration
});

const address = “0xd8da6bf26964af9d7eed9e03e53415d37aa96045”;

const chain = EvmChain.ETHEREUM;

const response = await Moralis.EvmApi.nft.getWalletNFTs({
address,
chain,
});

console.log(response);
}

runApp();

Hi, we don’t have a link to opensea for the nft contracts that we return.

You can build the link yourself with the result you get from calling the API

https://opensea.io/assets/ethereum/TOKEN_ADDRESS/TOKEN_ID

2 Likes

Hey @weevil,

Hope we have answered your question. Do you have any other inquiries :grinning_face_with_smiling_eyes: Otherwise we’ll be closing this ticket