setComputeUnitLimit

open fun setComputeUnitLimit(encodedTx: String, limit: String): String

Adds or updates a `ComputeBudgetInstruction::SetComputeUnitLimit` 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. \limit Unit Limit as a decimal string.