Class SystemProgram
java.lang.Object
com.codename1.crypto.solana.SystemProgram
Instructions of the System Program. Amounts are lamports, 10^9 to the SOL, and are
written as unsigned 64-bit values.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic InstructionadvanceNonceAccount(SolanaAddress nonceAccount, SolanaAddress authority) Advances a durable nonce.static Instructionallocate(SolanaAddress account, long space) Allocates space in an account.static Instructionassign(SolanaAddress account, SolanaAddress owner) Assigns an account to a program.static InstructioncreateAccount(SolanaAddress payer, SolanaAddress newAccount, long lamports, long space, SolanaAddress owner) Creates an account owned by a program, funded withlamportsand sizedspacebytes; both the payer and the new account sign.static Instructiontransfer(SolanaAddress from, SolanaAddress to, long lamports) Moves lamports between two system accounts;fromsigns.
-
Field Details
-
LAMPORTS_PER_SOL
public static final long LAMPORTS_PER_SOLLamports in one SOL.- See Also:
-
-
Method Details
-
transfer
Moves lamports between two system accounts;fromsigns. -
createAccount
public static Instruction createAccount(SolanaAddress payer, SolanaAddress newAccount, long lamports, long space, SolanaAddress owner) Creates an account owned by a program, funded withlamportsand sizedspacebytes; both the payer and the new account sign. -
assign
Assigns an account to a program. -
allocate
Allocates space in an account. -
advanceNonceAccount
Advances a durable nonce. It must be the first instruction of a transaction whose recent blockhash is the nonce value.
-