Other Functions

The other functions that don't fit in a category but are still important are below:

Write Functions

  • setName - Lets the owner set the name for the contract. Triggers the NameChange event.

  • setSymbol - Lets the owner set the symbol for the contract. Triggers the SymbolChange event.

  • setVariables2 - Intended as the first function after initializing which sets the baseURI, contractURI and royaltyBPS all in one. Meant to be used once at the beginning as a way to initialize the collection with a profile. If you load into The Manager page right after minting a contract with The Contract Wizard, you will see a special button that is asking you to use this code.

  • withdraw - Withdraws the ETH that was sent to the contract.

Read Functions

  • rarityOfToken

  • songOfToken

  • totalSongs

  • tokenOfPublicByIndex

  • tokenOfSongByIndex

Last updated