新しいオペレーターのOperator PDAを作成してプロビジョニングします。この呼び出し後、operatorウォレットはReleaseFundsおよびResetSmtRootを呼び出すことができます。
アカウント
| アカウント | 書き込み可能 | 署名者 | 説明 |
|---|---|---|---|
payer | ✓ | ✓ | 手数料支払者 |
admin | ✓ | インスタンス管理者 | |
instance | インスタンスPDA | ||
operator | プロビジョニング対象のオペレーターウォレット | ||
operator_pda | ✓ | オペレーターPDA - ["operator", instance, operator]から自動導出 | |
system_program | System Program | ||
event_authority | イベントオーソリティPDA | ||
private_channel_escrow_program | エスクロープログラム |
パラメーター
| パラメーター | 型 | 説明 |
|---|---|---|
bump | u8 | operator_pdaのbump seed。省略可能:省略した場合、Asyncクライアントが自動導出します |
IDLには
discriminator: u8引数(値3)が含まれており、生成されたクライアントによって自動設定されるため、手動で渡さないでください。
重要な注意事項
getAddOperatorInstructionAsyncを使用してください。bumpおよびoperator_pdaが未指定の場合、自動的に導出されます。すでにbumpを自分で計算済みの場合は、同期バリアントgetAddOperatorInstructionも利用できます- この呼び出し後、
operatorウォレットはReleaseFundsおよびResetSmtRootを呼び出すことができます EmitEventCPIを通じてイベントを発行します
Is this page helpful?