SetNewAdmin

Transfers admin rights to a new wallet.

Accounts

AccountWritableSignerDescription
payer✓✓Fee payer
current_admin✓Current admin (must sign)
instance✓Instance PDA (admin field updated)
new_admin✓Wallet to receive admin rights
event_authorityEvent authority PDA
private_channel_escrow_programEscrow Program

This instruction takes no parameters.

Important Notes

  • Irreversible in one step: the current admin cannot reclaim the role without the new admin calling SetNewAdmin again
  • Verify the target address before calling; there is no undo
  • Emits an event via EmitEvent CPI

Is this page helpful?

Table of Contents

Edit Page
© 2026 Solana Foundation. All rights reserved.
SetNewAdmin | Solana