BUT
There is no preview in my contract token list (it doesnt appear at all).
It appears in Opensea - but no preview
It appears on LooksRare - but no preview
It appears on Gem - but no preview
How can i get a preview? if people can’t see it then they clearly can’t buy it!
Tokens minted through Etherscan won’t show up on Manifold Studio right now, so that is expected.
From what I can see on the transaction on etherscan it seems like you didn’t input the URI so the tokens have no URI at all with the metadata and SVG artwork:
[responded in another thread but lets continue discussion here if needed]
Maybe you’ve figured it out already but erc1155 allows you to mint many at once. And yes, the syntax is different. In short, you add brackets on either end and use a comma for multiple items.
Say you want to send 0x123… 250 units of a token with uri “google.com”
to: [0x123....]
amounts: [250]
urls: ['https://google.com']
Say you want to send 0x123… 250 units of token with url google1.com and 0x456… 150 units with url google2.com:
to: [0x123....,0x456]
amounts: [250,150]
urls: ['https://google1.com','https://google2.com']
A few things:
Don’t put spaces after or before the commas if you are doing multiple items.
Don’t put quotes around the address.
Use single quotes around the urls not double quotes. Otherwise the json won’t work.
Last, you wrote in the initial post that you will do a claim afterwards with the 250 tokens. If you mean a Manifold claim page, you can’t do that at the moment. With claim pages your collectors mint the tokens, not you.
I see. It’s because the svg tool in the guide uses single quotes. Here’s how to make it work:
follow the instructions to get the example uri. In the instructions it looks like this:
data:application/json;utf8,{"name":"Seed Phrase","description":"An NFT to remind me to never share my seed phrase.","image":"data:image/svg+xml;utf8,%3csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMinYMin meet' viewBox='0 0 350 350'%3e%3crect width='100%25' height='100%25'/%3e%3ctext xmlns='http://www.w3.org/2000/svg' x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' style='fill:%23fff;font-family:serif;font-size:14px'%3eI will never share my seed phrase.%3c/text%3e%3c/svg%3e"}
Now, for every single quote (not double quote) insert a backslash \ before it. With the example above, it would look like this:
data:application/json;utf8,{"name":"Seed Phrase","description":"An NFT to remind me to never share my seed phrase.","image":"data:image/svg+xml;utf8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' preserveAspectRatio=\'xMinYMin meet\' viewBox=\'0 0 350 350\'%3e%3crect width=\'100%25\' height=\'100%25\'/%3e%3ctext xmlns=\'http://www.w3.org/2000/svg\' x=\'50%25\' y=\'50%25\' dominant-baseline=\'middle\' text-anchor=\'middle\' style=\'fill:%23fff;font-family:serif;font-size:14px\'%3eI will never share my seed phrase.%3c/text%3e%3c/svg%3e"}
Now wrap it all in brackets and a pair of single quotes. Like this:
['data:application/json;utf8,{"name":"Seed Phrase","description":"An NFT to remind me to never share my seed phrase.","image":"data:image/svg+xml;utf8,%3csvg xmlns=\'http://www.w3.org/2000/svg\' preserveAspectRatio=\'xMinYMin meet\' viewBox=\'0 0 350 350\'%3e%3crect width=\'100%25\' height=\'100%25\'/%3e%3ctext xmlns=\'http://www.w3.org/2000/svg\' x=\'50%25\' y=\'50%25\' dominant-baseline=\'middle\' text-anchor=\'middle\' style=\'fill:%23fff;font-family:serif;font-size:14px\'%3eI will never share my seed phrase.%3c/text%3e%3c/svg%3e"}']