Function send_transaction

Source
pub async fn send_transaction(
    transaction: VersionedTransaction,
    commitment: Option<CommitmentLevel>,
) -> Result<Signature, String>
Expand description

Send a transaction with retry logic using the global configuration

This function handles:

  1. Sending the transaction to the network
  2. Implementing retry logic with exponential backoff
  3. Waiting for transaction confirmation