StakeInstruction class

Inheritance

Constructors

StakeInstruction.authorize({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey authority, required StakeAuthorize authorize, Ed25519HDPublicKey? lockupAuthority})
Authorize a key to manage stake or withdrawal.
factory
StakeInstruction.authorizeChecked({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey authority, required StakeAuthorize stakeAuthorize, Ed25519HDPublicKey? lockupAuthority})
Authorize a key to manage stake or withdrawal.
factory
StakeInstruction.authorizeCheckedWithSeed({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey base, required AuthorizeWithSeedArgs authorizeWithSeedArgs, Ed25519HDPublicKey? lockupAuthority})
Authorize a key to manage stake or withdrawal with a derived key.
factory
StakeInstruction.authorizeWithSeed({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey authorityBase, required AuthorizeWithSeedArgs args, Ed25519HDPublicKey? lockupAuthority})
Authorize a key to manage stake or withdrawal with a derived key.
factory
StakeInstruction.deactivate({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey authority})
Deactivates the stake in the account.
factory
StakeInstruction.delegateStake({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey vote, required Ed25519HDPublicKey config, required Ed25519HDPublicKey authority})
Delegate a stake to a particular vote account.
factory
StakeInstruction.initialize({required Ed25519HDPublicKey stake, required Authorized authorized, Lockup lockup = const Lockup.none()})
Initialize a stake with lockup and authorization information.
factory
StakeInstruction.initializeChecked({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey stakeAuthority, required Ed25519HDPublicKey withdrawAuthority})
Initialize a stake with authorization information.
factory
StakeInstruction.merge({required Ed25519HDPublicKey sourceStake, required Ed25519HDPublicKey destinationStake, required Ed25519HDPublicKey authority})
Merge two stake accounts.
factory
StakeInstruction.setLockup({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey authority, required Lockup lockup})
Set stake lockup.
factory
StakeInstruction.setLockupChecked({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey authority, required LockupCheckedArgs lockupCheckedArgs})
Set stake lockup.
factory
StakeInstruction.split({required Ed25519HDPublicKey sourceStake, required Ed25519HDPublicKey destinationStake, required Ed25519HDPublicKey authority, required int amount})
Split tokens amount and stake off a sourceStake account into destinationStake account.
factory
StakeInstruction.withdraw({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey recipient, required Ed25519HDPublicKey authority, required int lamports, Ed25519HDPublicKey? lockupAuthority})
Withdraw unstaked lamports from the stake account.
factory

Properties

accounts List<AccountMeta>
finalinherited
data ByteArray
finalinherited
hashCode int
The hash code for this object.
no setterinherited
programId Ed25519HDPublicKey
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compile(Map<Ed25519HDPublicKey, int> accountIndexesMap) CompiledInstruction
Compiles instruction according to the instruction format.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
inherited

Static Methods

createAndInitializeAccount({required Ed25519HDPublicKey fundingAccount, required Ed25519HDPublicKey newAccount, required Authorized authorized, required int lamports, Lockup lockup = const Lockup.none()}) List<Instruction>
createAndInitializeAccountWithSeed({required Ed25519HDPublicKey fundingAccount, required Ed25519HDPublicKey newAccount, required Authorized authorized, required Ed25519HDPublicKey base, required String seed, required int lamports, Lockup lockup = const Lockup.none()}) List<Instruction>