Home Reference Source
import {StakeInstruction} from '@solana/web3'
public class | source

StakeInstruction

Stake Instruction class

Static Method Summary

Static Public Methods
public static

Decode an authorize stake instruction and retrieve the instruction params.

public static

Decode a deactivate stake instruction and retrieve the instruction params.

public static

Decode a delegate stake instruction and retrieve the instruction params.

public static

Decode a initialize stake instruction and retrieve the instruction params.

public static

Decode a stake instruction and retrieve the instruction type.

public static

Decode a split stake instruction and retrieve the instruction params.

public static

Decode a withdraw stake instruction and retrieve the instruction params.

Static Public Methods

public static decodeAuthorize(instruction: TransactionInstruction): AuthorizeStakeParams source

Decode an authorize stake instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeDeactivate(instruction: TransactionInstruction): DeactivateStakeParams source

Decode a deactivate stake instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeDelegate(instruction: TransactionInstruction): DelegateStakeParams source

Decode a delegate stake instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeInitialize(instruction: TransactionInstruction): InitializeStakeParams source

Decode a initialize stake instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeInstructionType(instruction: TransactionInstruction): StakeInstructionType source

Decode a stake instruction and retrieve the instruction type.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeSplit(instruction: TransactionInstruction): SplitStakeParams source

Decode a split stake instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeWithdraw(instruction: TransactionInstruction): WithdrawStakeParams source

Decode a withdraw stake instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction