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

StakeInstruction

Extends:

TransactionInstruction → StakeInstruction

Stake Instruction class

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

The authorized account public key of the instruction;

public get

stakePublicKey: PublicKey | nullliteral

The stake account public key of the instruction; returns null if StakeInstructionType does not support this field

public get

Type of StakeInstruction

Inherited Summary

From class TransactionInstruction
public

data: Buffer

Program input

public

Public keys to include in this transaction Boolean represents whether this pubkey needs to sign the transaction

public

Program Id to execute

Static Public Methods

public static from(instruction: TransactionInstruction): StakeInstruction source

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

Public Constructors

public constructor(opts: TransactionInstructionCtorFields, type: StakeInstructionType) source

Override:

TransactionInstruction#constructor

Params:

NameTypeAttributeDescription
opts TransactionInstructionCtorFields
type StakeInstructionType

Public Members

public get authorizedPublicKey: PublicKey | nullliteral source

The authorized account public key of the instruction;

returns null if StakeInstructionType does not support this field

public get stakePublicKey: PublicKey | nullliteral source

The stake account public key of the instruction; returns null if StakeInstructionType does not support this field

public get type: StakeInstructionType source

Type of StakeInstruction