StakeInstruction.deactivate constructor
StakeInstruction.deactivate({
- required Ed25519HDPublicKey stake,
- required Ed25519HDPublicKey authority,
Deactivates the stake in the account.
Implementation
factory StakeInstruction.deactivate({
required Ed25519HDPublicKey stake,
required Ed25519HDPublicKey authority,
}) =>
StakeInstruction._(
accounts: [
AccountMeta.writeable(pubKey: stake, isSigner: false),
AccountMeta.readonly(
pubKey: Ed25519HDPublicKey.fromBase58(Sysvar.clock),
isSigner: false,
),
AccountMeta.readonly(pubKey: authority, isSigner: true),
],
data: StakeProgram.deactivateInstructionIndex,
);