Class Instruction

java.lang.Object
com.codename1.crypto.solana.Instruction

public final class Instruction extends Object
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 Details

  • Method Details

    • getProgramId

      public SolanaAddress getProgramId()
      The program invoked.
    • getAccounts

      public List<AccountMeta> getAccounts()
      The accounts, in the order the program expects them.
    • getData

      public byte[] getData()
      The instruction data, a copy.