• Returns a function that you can call to send a transaction with any kind of lifetime to the network without waiting for it to be confirmed.

    Parameters

    • config: SendTransactionWithoutConfirmingFactoryConfig

    Returns SendTransactionWithoutConfirmingFunction

    import {
    sendTransactionWithoutConfirmingFactory,
    SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE,
    } from '@solana/kit';

    const sendTransaction = sendTransactionWithoutConfirmingFactory({ rpc });

    try {
    await sendTransaction(transaction, { commitment: 'confirmed' });
    } catch (e) {
    if (isSolanaError(e, SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE)) {
    console.error('The transaction failed in simulation', e.cause);
    } else {
    throw e;
    }
    }