3

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 1

5

There's not currently a way to get compute units remaining outside of logging it within the program with sol_log_compute_units()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.