ComputeBudgetProgram class

Compute Budget Program

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
pubkey Pubkey
The public key that identifies this program (i.e. program id).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDeployed(Connection connection) Future<void>
Check that the program has been deployed to the cluster and is an executable program.
inherited
createTransactionIntruction(Enum instruction, {required List<AccountMeta> keys, List<Iterable<int>> data = const []}) TransactionInstruction
Creates a TransactionInstruction for the program instruction.
inherited
encodeInstruction<T extends Enum>(T instruction) Iterable<int>
Encodes the program instruction.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestHeapFrame({required u32 bytes}) TransactionInstruction
Request a specific transaction-wide program heap region size in bytes. The value requested must be a multiple of 1024. This new heap region size applies to each program executed in the transaction, including all calls to CPIs.
requestUnitsDeprecated({required int units, required int additionalFee}) TransactionInstruction
Request units.
setAccountsDataSizeLimit({required u32 limit}) TransactionInstruction
Set a specific transaction-wide account data size limit in bytes.
setComputeUnitLimit({required u32 units}) TransactionInstruction
Set a specific compute unit limit that the transaction is allowed to consume.
setComputeUnitPrice({required bu64 microLamports}) TransactionInstruction
Set a compute unit price in microLamports to pay a higher transaction fee for higher transaction prioritization.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

programId Pubkey
The program id.
no setter