StakeInstruction class
- Inheritance
-
- Object
- Instruction
- StakeInstruction
- Available extensions
Constructors
-
Authorize a key to manage
stakeor withdrawal.factory -
Authorize a key to manage stake or withdrawal.
factory
-
Authorize a key to manage stake or withdrawal with a derived key.
factory
-
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
staketo a particularvoteaccount.factory - StakeInstruction.initialize({required Ed25519HDPublicKey stake, required Authorized authorized, Lockup lockup = const Lockup.none()})
-
Initialize a
stakewith 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
amountand stake off asourceStakeaccount intodestinationStakeaccount.factory - StakeInstruction.withdraw({required Ed25519HDPublicKey stake, required Ed25519HDPublicKey recipient, required Ed25519HDPublicKey authority, required int lamports, Ed25519HDPublicKey? lockupAuthority})
-
Withdraw unstaked
lamportsfrom thestakeaccount.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
-
toJson(
) → Map< String, dynamic> -
Available on Instruction, provided by the InstructionJson extension
-
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>