5

Say I have a deployed Solana Program with an upgrade authority. What is the best practice to revoke this authority?

2 Answers 2

10

Found the answer in the docs:

When deploying a program normally, I use

solana program deploy

which makes it upgradeable by default. If I want to make it non-upgradeable, I can deploy (an update) using:

solana program deploy --final

2
  • Don't forget to click ‘accept answer’ to mark your self-answer as the accepted one! Commented Jan 12 at 7:48
  • 1
    It only lets me do that after 2 days, but thanks for the reminder nonetheless :)
    – McBain
    Commented Jan 12 at 7:55
4

If you just want to make an existing program immutable, it's easier to simply remove the upgrade authority, rather than going through another deployment:

solana program set-upgrade-authority <PROGRAM_ADDRESS> --final

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.