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

Calculate and return compute budget instructions for a transaction