At a first look it looks like you didnāt set an url in constructor.
thanks for quick reply. thats my url:
constructor() ERC1155(āhttps://8wyahaxligjv.usemoralis.com/{id}.jsonā) {
_mint(msg.sender, ARTWORK, 1, āā);
_mint(msg.sender, PHOTO, 2, āā);
}
@cryptokid sorry sent you the wrong contract:
https://rinkeby.etherscan.io/tx/0x9359a39b737da8358af5e960b6b88fe2713814ba99b685890c8e5afe2ea273a7
somehow it looks like this contract didnāt have the url set either, I donāt see that url in the contract code and contract.uri(0) doesnāt return an url either.
pragma solidity ^0.8.0;
//import ERC115 token contract form Openzeppelin
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
contract NFTContract is ERC1155, Ownable {
uint256 public constant ARTWORK = 0;
uint256 public constant PHOTO = 1;
constructor() ERC1155("https://8wyahaxligjv.usemoralis.com/{id}.json") {
_mint(msg.sender, ARTWORK, 1, "");
_mint(msg.sender, PHOTO, 2, "");
}
function mint(address account,uint256 id,uint256 amount) public onlyOwner {
_mint(account, id, amount, "");
}
function burn(address account,uint256 id,uint256 amount) public {
require(msg.sender == account);
_burn(account, id, amount);
}
}
mhh thatās very odd. that is my solidity contract. do you see anything missing?
ok i havenāt use the default working space as in the tutorial in remix -ethereum. let me re try
Iām having an issue getting the animation_url
to show too:
https://testnets.opensea.io/assets/0x14cccd1c1d974e98a1fde18035ed10bc1b367a45/25
animation_url
points to:
http://star.cjohn.design/
I donāt know what you mean by animation_url
Hey hassadem, Iāve been trying to upload an mp4 file as NFT on pinata as well. But opensea doesnāt show. How did you do it?
@cky Im currently having the same issue uploading .gif files as NFTs. They are saved on Pinata along with the metadata for each of them, yet after i mint them, They do not load into testnets.opensea. Anybody have any information on the correct formated metadata for animated NFTs so that Opensea can correctly read the metadata?
Make sure youāre following the standard outlined here: https://docs.opensea.io/docs/metadata-standards
As long as your image name is pointing to a valid image or gif, it should be fine.
If your format is fine, post your metadata, OpenSea link, etc.
So a little more information, I have yet to deploy it onto the main polygon network and have only deployed it onto the polygon testnet/Mumbai. I have tried using both āanimation_uriā and āimageā for the ipfs link but neither will pull any of the metadata and it just stays how it is currently in the link below. Not sure why with my png files it worked like a charm but with the gif files nothing will load.
The link to the Opensea testnets NFT is: https://testnets.opensea.io/assets/mumbai/0xa8f8dd0f26d9a76b8fbcf8b15abc8e64c504d806/1
The Metadata for the NFT is:
{
ānameā: āBlink-182ā,
ādescriptionā: āOwn a Psychedelic Star on the Polygon Blockchain. Artwork created by SickaDelic.ā,
āanimation_uriā: āipfs://QmfMWUGNXNaXQixwMMyLEjjA7EfSJhbRxmA989g8YwZZ1c/Blink-182.gifā,
āeditionā: ā1ā,
āartistā: āSickaDelicā,
āattributesā: [
{
ātrait_typeā: āTitleā,
āvalueā: āBandā
}
]
}
So that IPFS link works directly which is good, and itās not a size issue.
animation_uri
should be animation_url
; but a gif needs to be using image
anyway according to the docs.
Can you try this metadata?
{
"name":"Blink-182",
"description":"Own a Psychedelic Star on the Polygon Blockchain. Artwork created by SickaDelic.",
"image":"ipfs://QmfMWUGNXNaXQixwMMyLEjjA7EfSJhbRxmA989g8YwZZ1c/Blink-182.gif",
"edition":"1",
"artist":"SickaDelic",
"attributes":[
{
"trait_type":"Title",
"value":"Band"
}
]
}
So I changed the metadata to āimageā and deployed it onto Mumbai. Here is the link to the opensea testnets. This was originally how i had the metadata set up and was having the same issue.