SystemProgram
Factory class for transactions to interact with the System program
Static Member Summary
Static Public Members | ||
public static get |
Public key that identifies the System program |
Static Method Summary
Static Public Methods | ||
public static |
assign(from: PublicKey, programId: PublicKey): Transaction Generate a Transaction that assigns an account to a program |
|
public static |
createAccount(from: PublicKey, newAccount: PublicKey, lamports: number, space: number, programId: PublicKey): Transaction Generate a Transaction that creates a new account |
|
public static |
move(from: PublicKey, to: PublicKey, amount: number): Transaction Generate a Transaction that moves lamports from one account to another |
Static Public Members
Static Public Methods
public static assign(from: PublicKey, programId: PublicKey): Transaction source
Generate a Transaction that assigns an account to a program
public static createAccount(from: PublicKey, newAccount: PublicKey, lamports: number, space: number, programId: PublicKey): Transaction source
Generate a Transaction that creates a new account
public static move(from: PublicKey, to: PublicKey, amount: number): Transaction source
Generate a Transaction that moves lamports from one account to another