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 IInstruction <string , readonly (IAccountLookupMeta <string , string > | IAccountMeta <string >)[]>[]; version : TransactionVersion ; }> |
Parameters
Parameter | Type |
---|---|
transactionMessage | TTransactionMessage |
Returns
TTransactionMessage