ComputeBudgetProgram.requestUnits constructor

ComputeBudgetProgram.requestUnits({
  1. required ComputeBudgetRequestUnitsLayout layout,
})

Creates an instruction to request units.

Implementation

factory ComputeBudgetProgram.requestUnits({
  required ComputeBudgetRequestUnitsLayout layout,
}) {
  return ComputeBudgetProgram(
    layout: layout,
    keys: [],
    programId: ComputeBudgetConst.programId,
  );
}