for exemple is pointing to what exactly? the metadata but how does it get passed. My test consisted on using PHP to return data.
So my URI would be a get param left empty like;
For testing purposes you could do what I did and use my-json-server.typicode.com to point to a single file in a GitHub repository to use for your token metadata. You could then move to your own server for further testing.
My data file is here:
You can view my NFT on OpenSea:
Using the preset ERC721PresetMinterPauserAutoId we get lower cost minting as we only need to store a single baseURI and then when we look up the tokenURI for each token we concatenate the baseURI and the tokenID (as a string) together.
In your example you would need your baseURI to be https://mydomain.com/meta.php?nftid= and then the tokenURI for tokenID would be https://mydomain.com/meta.php?nftid=0 and this should return the JSON metadata for tokenID 0.
Instead of centralized metadata (that you could change at any time) you could use IPFS.
There would be increased minting costs as you would need to store the IPFS hash for each tokenID but it would be more decentralized.
If I recall correctly OpenSea supports providing an IPFS hash for metadata.
Hello. Would you please help me? When creating a token, I generate a PHP file with json headers. Which includes all the information about the token in json format. http://fotomaxe.azurex.ru/token-148.php
here is an example of one of the files. But for some reason this metadata is not being pulled up, can you tell me what is the reason? Why does http://my-json-server.typicode.com/DubovkaE/token/tokens/0 pull up from here, but if I bring exactly the same data to my site and point to a link to it, they won’t pull up?