metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.31k stars 6.27k forks source link

Metaplex- How to use hiddenSettings in Candy Machine V2? #1331

Closed Rana-xD closed 2 years ago

Rana-xD commented 2 years ago

I try to look at https://docs.metaplex.com/candy-machine-v2/Configuration. I am not clear about hiddenSetting part

"hiddenSettings": {
    "name":"My Hidden Collection ",
    "uri":"uri",
    "hash":"44kiGWWsSgdqPMvmqYgTS78Mx2BKCWzd"
}

Regarding hash, is it random generate 32 character string or do we have to take it from another file?

Another question. Can I get sample code or step for off-chain process to update the metadata for each item after the mint is complete?

Thank you

kyanokashi commented 2 years ago

Following this

Executyr commented 2 years ago

Hello, do you eventually got an answer?

HaoCherHong commented 2 years ago

I think the hash is not used at all according to the current source code on master branch.

tserevE8848 commented 2 years ago

Hey guys do you know how to reveal after using hiddensetting?

HaoCherHong commented 2 years ago

Hey guys do you know how to reveal after using hiddensetting?

I use a custom version of candy machine v2 to let metadata uri to have number appended to the base url. like https://example.com/token/1 then update the response json when I want to reveal.

If you don't do that, you may use update metadata instruction directly to the nft address to update

SolProtection commented 2 years ago

Hey guys do you know how to reveal after using hiddensetting?

I use a custom version of candy machine v2 to let metadata uri to have number appended to the base url. like https://example.com/token/1 then update the response json when I want to reveal.

If you don't do that, you may use update metadata instruction directly to the nft address to update

Can you share some information on what it took to accomplish this or the repo?

TheDruidsKeeper commented 2 years ago

Hey guys do you know how to reveal after using hiddensetting?

I use a custom version of candy machine v2 to let metadata uri to have number appended to the base url. like https://example.com/token/1 then update the response json when I want to reveal. If you don't do that, you may use update metadata instruction directly to the nft address to update

Can you share some information on what it took to accomplish this or the repo?

@SolProtection I'm not OP, but looking through the code myself for this same thing - it looks like this is where you would want to modify the uri to replace with the mint_number.

HaoCherHong commented 2 years ago

Hey guys do you know how to reveal after using hiddensetting?

I use a custom version of candy machine v2 to let metadata uri to have number appended to the base url. like https://example.com/token/1 then update the response json when I want to reveal. If you don't do that, you may use update metadata instruction directly to the nft address to update

Can you share some information on what it took to accomplish this or the repo?

@SolProtection I'm not OP, but looking through the code myself for this same thing - it looks like this is where you would want to modify the uri to replace with the mint_number.

Exactly. And in order to make update and deploy the program. You'll need some extra steps. Basically:

  1. deploy the program.
  2. deploy the IDL for this new program
  3. deploy the candy machine account and
  4. update the frontend.

Sorry for replying late it's Chinese New Year here so I don't have time to make a complete instructions yet.

TheDruidsKeeper commented 2 years ago

@HaoCherHong Better yet: a PR to replace a tokenized string 🥇. This seems like a worth-while improvement.

HaoCherHong commented 2 years ago

@HaoCherHong Better yet: a PR to replace a tokenized string 🥇. This seems like a worth-while improvement.

Good idea. This will involves some address updates. But I'll do it these 2 days and see how they'll respond.

JulienK03 commented 2 years ago

image we replace both uri by mint_number?

HaoCherHong commented 2 years ago

image we replace both uri by mint_number?

Yes, check this out: https://github.com/metaplex-foundation/metaplex/pull/1765/files

samuelvanderwaal commented 2 years ago

See the docs and this comment for an explanation of how the hidden settings work.

Moreozz commented 2 years ago

When I create config.json with hiddensettings inside, my candy machine start to mint only hidden images with its description. on mainnet it was awful so I withdraw it all. Its hiden, but how it could be unhide after? usually everybody hide it to place in marketplace, and then it how must to be unpacked?

joysiriban commented 2 years ago

When I create config.json with hiddensettings inside, my candy machine start to mint only hidden images with its description. on mainnet it was awful so I withdraw it all. Its hiden, but how it could be unhide after? usually everybody hide it to place in marketplace, and then it how must to be unpacked?

same question. did you get an answer for this already?