ComputeBudgetProgram.setComputeUnitPrice constructor

ComputeBudgetProgram.setComputeUnitPrice({
  1. required ComputeBudgetSetComputeUnitPriceLayout layout,
})

Creates an instruction to set compute unit price.

Implementation

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