Class ComputeBudget
java.lang.Object
com.codename1.crypto.solana.ComputeBudget
Compute Budget and Memo instructions, the two most transactions add beside their payload.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Instructionmemo(String text, SolanaAddress... signers) A Memo program instruction carrying UTF-8 text; each listed signer must sign.static InstructionsetComputeUnitLimit(int units) Caps the compute units the transaction may use.static InstructionsetComputeUnitPrice(long microLamports) Sets the priority fee, in micro-lamports per compute unit.
-
Method Details
-
setComputeUnitLimit
Caps the compute units the transaction may use. -
setComputeUnitPrice
Sets the priority fee, in micro-lamports per compute unit. -
memo
A Memo program instruction carrying UTF-8 text; each listed signer must sign.
-