Function build_and_send_transaction

Source
pub async fn build_and_send_transaction<S: Signer>(
    instructions: Vec<Instruction>,
    signers: &[&S],
    commitment: Option<CommitmentLevel>,
    address_lookup_tables: Option<Vec<AddressLookupTableAccount>>,
) -> Result<Signature, String>
Expand description

Build and send a transaction using the global configuration

This function:

  1. Builds an unsigned transaction with all necessary instructions
  2. Signs the transaction with all provided signers
  3. Sends the transaction and waits for confirmation
  4. Optionally uses address lookup tables for account compression