Class ComputeBudget

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

public final class ComputeBudget extends Object
Compute Budget and Memo instructions, the two most transactions add beside their payload.
  • Method Details

    • setComputeUnitLimit

      public static Instruction setComputeUnitLimit(int units)
      Caps the compute units the transaction may use.
    • setComputeUnitPrice

      public static Instruction setComputeUnitPrice(long microLamports)
      Sets the priority fee, in micro-lamports per compute unit.
    • memo

      public static Instruction memo(String text, SolanaAddress... signers)
      A Memo program instruction carrying UTF-8 text; each listed signer must sign.