ComputeBudgetProgram.setComputeUnitPrice constructor
ComputeBudgetProgram.setComputeUnitPrice({
- 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,
);
}