Provisions a new operator by creating their Operator PDA. After this call, the
operator wallet can call ReleaseFunds and ResetSmtRoot.
Accounts
| Account | Writable | Signer | Description |
|---|---|---|---|
payer | ✓ | ✓ | Fee payer |
admin | ✓ | Instance admin | |
instance | Instance PDA | ||
operator | Operator wallet to provision | ||
operator_pda | ✓ | Operator PDA - auto-derived from ["operator", instance, operator] | |
system_program | System Program | ||
event_authority | Event authority PDA | ||
private_channel_escrow_program | Escrow Program |
Parameters
| Parameter | Type | Description |
|---|---|---|
bump | u8 | Bump seed for the operator_pda. Optional: the Async client auto-derives it if omitted |
The IDL contains a
discriminator: u8argument (value3) that is auto-set by the generated client and should not be passed manually.
Important Notes
- Use
getAddOperatorInstructionAsync; it auto-derivesbumpandoperator_pdawhen they are not provided. A synchronousgetAddOperatorInstructionvariant also exists if you already computedbumpyourself - After this call, the
operatorwallet can callReleaseFundsandResetSmtRoot - Emits an event via
EmitEventCPI
Is this page helpful?