Compute Budget

request_heap_frame(bytes_)

Request a specific transaction-wide program heap region size in bytes. The value requested must be a multiple of 1024. This new heap region size applies to each program executed in the transaction, including all calls to CPIs.

set_compute_unit_limit(units)

Set a specific compute unit limit that the transaction is allowed to consume.

set_compute_unit_price(micro_lamports)

Set a compute unit price in “micro-lamports” to pay a higher transaction fee for higher transaction prioritization.