StakeInstruction class
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
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>
-