ComputeBudgetProgram class
Represents instructions for the ComputeBudget program.
- Inheritance
-
- Object
- TransactionInstruction
- ComputeBudgetProgram
Constructors
-
ComputeBudgetProgram({required List<
AccountMeta> keys, required SolAddress programId, required ProgramLayout layout}) -
ComputeBudgetProgram.fromBytes({required List<
AccountMeta> keys, required List<int> instructionBytes, SolAddress programId = ComputeBudgetConst.programId}) -
factory
- ComputeBudgetProgram.requestHeapFrame({required ComputeBudgetRequestHeapFrameLayout layout})
-
Creates an instruction to request heap frame.
factory
- ComputeBudgetProgram.requestUnits({required ComputeBudgetRequestUnitsLayout layout})
-
Creates an instruction to request units.
factory
- ComputeBudgetProgram.setComputeUnitLimit({required ComputeBudgetSetComputeUnitLimitLayout layout})
-
Creates an instruction to set compute unit limit.
factory
- ComputeBudgetProgram.setComputeUnitPrice({required ComputeBudgetSetComputeUnitPriceLayout layout})
-
Creates an instruction to set compute unit price.
factory
Properties
-
data
↔ List<
int> -
Program input.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ List<
AccountMeta> -
Public keys to include in this transaction
Boolean represents whether this pubkey needs to sign the transaction
finalinherited
- programId → SolAddress
-
Program Id to execute.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited