fillProvisorySetComputeUnitLimitInstruction
Appends a SetComputeUnitLimit instruction with a provisory
compute unit limit to a given transaction message
if and only if it does not already have one.
Example
Type Parameters
| Type Parameter |
|---|
TTransactionMessage extends Readonly<{ instructions: readonly Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion; }> |
Parameters
| Parameter | Type |
|---|---|
transactionMessage | TTransactionMessage |
Returns
TTransactionMessage