I have created spl token , I now want to lock the metadata so that no one can update him. I tried to do it using the following code but received the error “‘Program log: Error: Invalid instruction’”
splToken.createSetAuthorityInstruction(mintPublicKey,
senderKeypair.publicKey,
splToken.AuthorityType.MetadataPointer,null.[], // new permission holder is null, drop casting permissionsplToken.TOKEN_PROGRAM_ID)
Please help me .