Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7939

How to give up metadata update permission for spl token via solana api?

$
0
0

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 .


Viewing all articles
Browse latest Browse all 7939

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>