setComputeUnitPrice

open fun setComputeUnitPrice(encodedTx: String, price: String): String

Adds or updates a `ComputeBudgetInstruction::SetComputeUnitPrice` instruction of the given transaction, and returns the updated transaction.

Return

base64 encoded Solana transaction. Null if an error occurred.

Parameters

encodedTx

base64 encoded Solana transaction. \price Unit Price as a decimal string.