Function build_transaction_with_config_obj

Source
pub async fn build_transaction_with_config_obj(
    instructions: Vec<Instruction>,
    payer: &Pubkey,
    address_lookup_tables: Option<Vec<AddressLookupTableAccount>>,
    rpc_client: &RpcClient,
    config: &BuildTransactionConfig,
) -> Result<VersionedTransaction, String>
Expand description

Build a transaction with compute budget and priority fees from the supplied configuration

This function handles:

  1. Building a transaction message with all instructions
  2. Adding compute budget instructions
  3. Adding any Jito tip instructions
  4. Supporting address lookup tables for account compression