简体   繁体   中英

Opensea won't load in the provided metadata of ERC-721 tokens

I created 3 ERC-721 tokens and listed them on the opensea testnet. The problem is that for some reason opensea won't load in the metadata I provided.

ERC-721 token contract on the rinkeby etherscan: https://rinkeby.etherscan.io/address/0xceb07f4fd764368fbb5d6ce4b53a6877b38fd28d

Link to one of the NFT's on opensea: https://testnets.opensea.io/assets/0xceb07f4fd764368fbb5d6ce4b53a6877b38fd28d/2

The contract clearly has a tokenURI function. When you click on the IPFS it returns link you can see the metadata which contains some attributes and a link to the Image.

Yet opensea won't load in the image nor the rest of the metadata.

Any help would be greatly appreciated.

Solution: The metadata used single quotes('), but json only uses double quotes("). So Opensea can't read the meta data because it's not valid json.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM