SetNewAdmin

Transfers admin rights to a new wallet.

Accounts

AccountWritableSignerDescription
payerFee payer
current_adminCurrent admin (must sign)
instanceInstance PDA (admin field updated)
new_adminWallet 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?

Πίνακας Περιεχομένων

Επεξεργασία Σελίδας
© 2026 Ίδρυμα Solana. Με επιφύλαξη παντός δικαιώματος.
SetNewAdmin | Solana