ComputeBudgetRequestUnitsLayout class
StructLayout for the ComputeBudgetRequestUnits instruction.
- Inheritance
-
- Object
- LayoutSerializable
- ProgramLayout
- ComputeBudgetProgramLayout
- ComputeBudgetRequestUnitsLayout
Constructors
- ComputeBudgetRequestUnitsLayout({required int units, required int additionalFee})
- Constructs the layout with required parameters.
-
ComputeBudgetRequestUnitsLayout.fromBuffer(List<
int> data) -
Constructs the layout from raw bytes.
factory
Properties
- additionalFee → int
-
Prioritization fee lamports.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- instruction → ComputeBudgetProgramInstruction
-
The instruction of the program.
no setteroverride
- layout → StructLayout
-
The layout representing the structure of the program.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- units → int
-
Units to request for transaction-wide compute.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the program.
override
-
toBytes(
) → List< int> -
Converts the program to bytes using Borsh serialization.
inherited
-
toHex(
) → String -
Converts the program to a hexadecimal string.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited