setTransactionMessageComputeUnitPrice
Sets the compute unit price of a transaction message in micro-Lamports.
Example
Type Parameters
| Type Parameter |
|---|
TTransactionMessage extends Readonly<{ instructions: readonly Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion; }> |
Parameters
| Parameter | Type |
|---|---|
microLamports | number | bigint |
transactionMessage | TTransactionMessage |
Returns
Omit<ExcludeTransactionMessageWithinSizeLimit<TTransactionMessage>, "instructions"> & {
instructions: readonly [TTransactionMessage["instructions"], SetComputeUnitPriceInstruction<Address<"ComputeBudget111111111111111111111111111111">, []>];
}