Skip to Content
DocumentationTransactionsSend and Confirm Transaction

Send and Confirm Transaction

Sends a transaction and waits for confirmation.

Returns: Promise<void>

await connection.sendAndConfirmTransaction(transaction, options);

Options

  • transaction: VersionedTransaction - Transaction to send
  • options: Object (optional)
    • commitment: Commitment - Desired confirmation level
    • skipPreflight: boolean - Whether to skip preflight transaction checks

See also: Send Transaction from Instructions, Get Recent Signature Confirmation

Last updated on