ERC721 metadata not showing on OpenSea

Hello

When trying to add my own metadata (using my-json-server for the moment)

found here: https://my-json-server.typicode.com/robbiekruszynski/devrel-721-metadata/tokens

I seem to be running into an issue on testnet.opeasea getting my information to show

here is my 2_deploy.js

const ERC721PresetMinterPauserAutoId = artifacts.require("ERC721PresetMinterPauserAutoId");

module.exports = function(deployer) {
  deployer.deploy(ERC721PresetMinterPauserAutoId, "DevRel token","DEVREL", "https://my-json-server.typicode.com/robbiekruszynski/devrel-721-metadata/tokens/");
};

then on opeasea Iā€™m seeing

yet https://twemoji.maxcdn.com/svg/2615.svg links to the wanted image just fine.

1 Like

It appears that when I run
await nft.baseURI()

my return is still
'https://my-json-server.typicode.com/abcoathup/samplenft/tokens/'

1 Like

Hi @robbiek,

I deployed a contract using your migrations script, minted a single token and can see it in OpenSea with an image.

2_deploy.js

// migrations/2_deploy.js
// SPDX-License-Identifier: MIT
const ERC721PresetMinterPauserAutoId = artifacts.require("ERC721PresetMinterPauserAutoId");

module.exports = function(deployer) {
  deployer.deploy(ERC721PresetMinterPauserAutoId, "DevRel token","DEVREL", "https://my-json-server.typicode.com/robbiekruszynski/devrel-721-metadata/tokens/");
};

I suggest you check your migrations script and deploy again as your metadata looks ok.

To see if your MetaData is right you can query your URI by adding the ID of the NFT at the end just like Opensea does.

Opensea will query

https://my-json-server.typicode.com/robbiekruszynski/devrel-721-metadata/tokens/ID

You can test it in the browser by replacing ID with your actual NFT ID and it should output the metadata.

1 Like