Skip to content

SystemProgram

bigearsenal edited this page May 17, 2022 · 1 revision

SystemProgram

public enum SystemProgram: SolanaBasicProgram 

Inheritance

SolanaBasicProgram

Properties

id

public static var id: PublicKey 

Methods

createAccountInstruction(from:toNewPubkey:lamports:space:programId:)

public static func createAccountInstruction(
        from fromPublicKey: PublicKey,
        toNewPubkey newPubkey: PublicKey,
        lamports: UInt64,
        space: UInt64,
        programId: PublicKey
    ) -> TransactionInstruction 

transferInstruction(from:to:lamports:)

public static func transferInstruction(
        from fromPublicKey: PublicKey,
        to toPublicKey: PublicKey,
        lamports: UInt64
    ) -> TransactionInstruction 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally