ProjectOpenSea / opensea-erc1155

Example semi-fungible collectible, to demonstrate OpenSea integration for an ERC-1155 contract
https://docs.opensea.io
MIT License
605 stars 284 forks source link

Unable to get nft metadata #62

Closed alberthuang24 closed 2 years ago

alberthuang24 commented 2 years ago

I created an ERC1155 NFT in opensea (TokenId: 51249058730426330109459860678910738092081333487213352264711093009751725834250), but it seems it can't get to metadaata.

The call to contracturi returns

https://api.opensea.io/api/v2/metadata/matic/0x2953399124F0cBB46d2CbACD8A89cF0599974963/0x{id}

According to the ERC1155 specification . I convert the tokenid to hex and replace it and get

https://api.opensea.io/api/v2/metadata/matic/0x2953399124F0cBB46d2CbACD8A89cF0599974963/0x714df076992f95e452a345cd8289882cec6ab82f000000000000000001000000000a

image

Always get success: false