getComputeUnitPrice

open fun getComputeUnitPrice(encodedTx: String): String

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

Return

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

Parameters

encodedTx

base64 encoded Solana transaction.