I have followed this tutorial.
It works fine but I have 2 questions.
How to make metadata immutable?
// Instruction to initialize Metadata Account data
const initializeMetadataIx = createInitializeInstruction({
programId: TOKEN_2022_PROGRAM_ID, // Token Extension Program as Metadata Program
metadata: mintAddress, // Account address that holds the metadata
updateAuthority: updateAuthority, // Authority that can update the metadata
mint: mintAddress, // Mint Account address
mintAuthority: updateAuthority, // Designated Mint Authority
name: metaData.name,
symbol: metaData.symbol,
uri: metaData.uri,
});
updateAuthority does not accept null.
Other question is that I want to update metadata with another request, if they are mutable but I cannot find the Instruction to do that. @solana/spl-token-metadata package there is not tutorial on that