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

SystemInstruction

System Instruction class

Static Method Summary

Static Public Methods
public static

Decode an assign system instruction and retrieve the instruction params.

public static

Decode a create account system instruction and retrieve the instruction params.

public static

Decode a create account with seed system instruction and retrieve the instruction params.

public static

Decode a system instruction and retrieve the instruction type.

public static

Decode a nonce advance system instruction and retrieve the instruction params.

public static

Decode a nonce authorize system instruction and retrieve the instruction params.

public static

Decode a nonce initialize system instruction and retrieve the instruction params.

public static

Decode a nonce withdraw system instruction and retrieve the instruction params.

public static

Decode a transfer system instruction and retrieve the instruction params.

Static Public Methods

public static decodeAssign(instruction: TransactionInstruction): AssignParams source

Decode an assign system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

Return:

AssignParams

public static decodeCreateAccount(instruction: TransactionInstruction): CreateAccountParams source

Decode a create account system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeCreateWithSeed(instruction: TransactionInstruction): CreateAccountWithSeedParams source

Decode a create account with seed system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeInstructionType(instruction: TransactionInstruction): SystemInstructionType source

Decode a system instruction and retrieve the instruction type.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeNonceAdvance(instruction: TransactionInstruction): AdvanceNonceParams source

Decode a nonce advance system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeNonceAuthorize(instruction: TransactionInstruction): AuthorizeNonceParams source

Decode a nonce authorize system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeNonceInitialize(instruction: TransactionInstruction): InitializeNonceParams source

Decode a nonce initialize system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeNonceWithdraw(instruction: TransactionInstruction): WithdrawNonceParams source

Decode a nonce withdraw system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

public static decodeTransfer(instruction: TransactionInstruction): TransferParams source

Decode a transfer system instruction and retrieve the instruction params.

Params:

NameTypeAttributeDescription
instruction TransactionInstruction

Return:

TransferParams