getComputeUnitLimit

open fun getComputeUnitLimit(encodedTx: String): String

Try to find a `ComputeBudgetInstruction::SetComputeUnitLimit` instruction in the given transaction, and returns the specified Unit Limit.

Return

nullable Unit Limit as a decimal string. Null if no instruction found.

Parameters

encodedTx

base64 encoded Solana transaction.