StakeProgram class

Inheritance

Constructors

StakeProgram.new({required List<AccountMeta> keys, required SolAddress programId, required ProgramLayout layout})
StakeProgram.authorize({required StakeAuthorizeLayout layout, required SolAddress stakePubkey, required SolAddress authorizedPubkey, SolAddress? custodianPubkey})
Generate a Transaction that authorizes a new PublicKey as Staker or Withdrawer on the Stake account.
factory
StakeProgram.authorizeWithSeed({required StakeAuthorizeWithSeedLayout layout, required SolAddress stakePubkey, required SolAddress authorityBase, SolAddress? custodianPubkey})
Generate a Transaction that authorizes a new PublicKey as Staker or Withdrawer on the Stake account.
factory
StakeProgram.deactivate({required SolAddress stakePubkey, required SolAddress authorizedPubkey})
Generate a Transaction that deactivates Stake tokens.
factory
StakeProgram.delegate({required SolAddress stakePubkey, required SolAddress authorizedPubkey, required SolAddress votePubkey})
Generate a Transaction that delegates Stake tokens to a validator Vote PublicKey. This transaction can also be used to redelegate Stake to a new validator Vote PublicKey.
factory
StakeProgram.fromBytes({required List<AccountMeta> keys, required List<int> instructionBytes, SolAddress programId = StakeProgramConst.programId})
factory
StakeProgram.initialize({required StakeInitializeLayout layout, required SolAddress stakePubkey})
Generate an Initialize instruction to add to a Stake Create transactio
factory
StakeProgram.merge({required SolAddress stakePubkey, required SolAddress authorizedPubkey, required SolAddress sourceStakePubKey})
Generate a Transaction that merges Stake accounts.
factory
StakeProgram.split({required StakeSplitLayout layout, required SolAddress stakePubkey, required SolAddress authorizedPubkey, required SolAddress splitStakePubkey})
Generate a Transaction that splits Stake tokens into another stake account
factory
StakeProgram.withdraw({required StakeWithdrawLayout layout, required SolAddress stakePubkey, required SolAddress authorizedPubkey, required SolAddress toPubkey, SolAddress? custodianPubkey})
Generate a Transaction that withdraws deactivated Stake tokens.
factory

Properties

data List<int>
Program input.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
keys List<AccountMeta>
Public keys to include in this transaction Boolean represents whether this pubkey needs to sign the transaction
finalinherited
programId SolAddress
Program Id to execute.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 ==(Object other) bool
The equality operator.
inherited