Function get_compute_budget_instruction

Source
pub async fn get_compute_budget_instruction(
    client: &RpcClient,
    compute_units: u32,
    _payer: &Pubkey,
    rpc_config: &RpcConfig,
    fee_config: &FeeConfig,
    writable_accounts: &[Pubkey],
) -> Result<Vec<Instruction>, String>
Expand description

Build compute budget instructions using an already-finalized compute unit limit.