pub async fn estimate_compute_units(
rpc_client: &RpcClient,
instructions: &[Instruction],
payer: &Pubkey,
alts: Option<Vec<AddressLookupTableAccount>>,
) -> Result<u32, String>Expand description
Estimate compute units by simulating a transaction