There is a function sol_log_compute_units()
in the Solana API that logs the remaining number of compute units. Is it possible to get this value inside the transaction. (i.e. something like sol_get_compute_units() -> usize
)
1 Answer
There's not currently a way to get compute units remaining outside of logging it within the program with sol_log_compute_units()