Transfers admin rights to a new wallet.
Accounts
| Account | Writable | Signer | Description |
|---|---|---|---|
payer | ✓ | ✓ | Fee payer |
current_admin | ✓ | Current admin (must sign) | |
instance | ✓ | Instance PDA (admin field updated) | |
new_admin | ✓ | Wallet to receive admin rights | |
event_authority | Event authority PDA | ||
private_channel_escrow_program | Escrow Program |
This instruction takes no parameters.
Important Notes
- Irreversible in one step: the current admin cannot reclaim the role
without the new admin calling
SetNewAdminagain - Verify the target address before calling; there is no undo
- Emits an event via
EmitEventCPI
Is this page helpful?