Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransactionExpiredTimeoutError: Transaction was not confirmed in 30.00 seconds. It is unknown if it succeeded or failed. #5

Open
steefaan opened this issue Jan 31, 2024 · 1 comment

Comments

@steefaan
Copy link

I always get the issue mentioned in the title.

Here my code:

    const tpuConnection = await TpuConnection.load(
        'https://mainnet.helius-rpc.com/?api-key={API_KEY}',
        {
            wsEndpoint: 'wss://mainnet.helius-rpc.com/?api-key={API_KEY}'',
            commitment: 'processed',
        });

    const transaction = new Transaction();

    transaction.add({MY_INSTRUCTIONS});

    const transactionId = await tpuConnection.sendAndConfirmTransaction(
        tpuConnection,
        transaction,
        [
            wallet
        ],
        {
            skipPreflight: true,
            commitment: 'processed',
        }
    );

If I use the sendAndConfirmTransaction from web3.js it works.

Do you have an idea, why?

@DutchKevv
Copy link

Did you get any request working? Mine never seems to go through. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants