Ok, thanks agus. Not really interested in the claim page, I needed specific help for minting an SVG onchain on a 1155 contract, — the instructions cover 721 which don’t work if I follow them, I get an error, something to do with brackets and formats for multiple entries when directly interacting with the contract in etherscan. The ‘mintbase’ field looks different to the instructions.
… further to this –
The instructions Manifold give are for 721s – i’d really appeciate any help with what the exact format for injecting the URI, the address and the amounts into the contract via etherscan for 1155 should - i’m getting errors
ie what’s the
uris (string[])
Do i wrap the URI in (. [])?
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.