Class Instruction
java.lang.Object
com.codename1.crypto.solana.Instruction
A call to an on-chain program: the program, the accounts it reads and writes, and its
opaque instruction data.
SystemProgram, TokenProgram and ComputeBudget build the
common ones.-
Constructor Summary
ConstructorsConstructorDescriptionInstruction(SolanaAddress programId, AccountMeta[] accounts, byte[] data) An instruction from an account array.Instruction(SolanaAddress programId, List<AccountMeta> accounts, byte[] data) An instruction. -
Method Summary
Modifier and TypeMethodDescriptionThe accounts, in the order the program expects them.byte[]getData()The instruction data, a copy.The program invoked.
-
Constructor Details
-
Instruction
An instruction. -
Instruction
An instruction from an account array.
-
-
Method Details
-
getProgramId
The program invoked. -
getAccounts
The accounts, in the order the program expects them. -
getData
public byte[] getData()The instruction data, a copy.
-