pub async fn build_transaction_with_config(
instructions: Vec<Instruction>,
payer: &Pubkey,
address_lookup_tables: Option<Vec<AddressLookupTableAccount>>,
rpc_client: &RpcClient,
rpc_config: &RpcConfig,
fee_config: &FeeConfig,
) -> Result<VersionedTransaction, String>Expand description
Build a transaction with compute budget and priority fees from the supplied configuration
This function handles:
- Building a transaction message with all instructions
- Adding compute budget instructions
- Adding any Jito tip instructions
- Supporting address lookup tables for account compression