Creates a Compute Budget Utilities instruction for a given program.
The public key of the target program.
Optional
The number of compute units to be used (defaults to NEON_COMPUTE_UNITS).
NEON_COMPUTE_UNITS
A Solana TransactionInstruction for setting the compute budget.
TransactionInstruction
const instruction = createComputeBudgetUtilsInstruction(myProgramId, 500_000);transaction.add(instruction); Copy
const instruction = createComputeBudgetUtilsInstruction(myProgramId, 500_000);transaction.add(instruction);
Creates a Compute Budget Utilities instruction for a given program.