Questions tagged [confirmtransaction]
The confirmtransaction tag has no usage guidance.
11
questions
3
votes
1
answer
64
views
How to reliably confirm transaction with web3.js
I'm trying to retrieve transaction information using Solana's APIs, but I consistently receive null when calling getTransaction for my transaction ID (txid). This happens even though the transaction ...
1
vote
1
answer
42
views
Not able to read the updated value in a Solana Data Account
I have a simple solana greeting-counter program, I have it deployed locally. When I am calling from my typescript code I am able to do pretty much all the transactions and verify them. Except the last ...
0
votes
1
answer
63
views
I need the fastest way to perform transaction
I working on solana trading bot, i am using @solana/web3 for blockchain communication and raydium amm pools for performing swaps.
I need the fastest way to perform transactions and know if it ...
1
vote
0
answers
600
views
"TransactionExpiredBlockheightExceededError: Signature XXX has expired: block height exceeded" when confirming successful transaction
When attempting to use confirmTransaction using the BlockheightBasedTransactionConfirmationStrategy, the call takes a very long time then errors out with "...
1
vote
2
answers
2k
views
Solana sendRawTransaction & confirmTransaction ; confirmTransaction takes forever and fails
Allright I need help.. My Web3.js sign and send wouldn't work. I either get BlockHeightExceeded , Blockhash not found, or it just gets stucked in the confirmTransaction..
I have googled and looked ...
2
votes
2
answers
3k
views
Solana/web3.js - Problems with confirmTransaction
I'm having trouble using confirmTransaction properly. I expect that the call won't return until the conditions are met (either it is confirmed or blockheight exceeded). However, I frequently get a ...
0
votes
1
answer
434
views
Cancelling a sent transaction if user doesn't sign it before a condition is matched
I'm using @solana/web3.js in react and I wanna know if there is a way of cancelling a sent transaction waiting to be signed by the user if a condition is matched before that user signs it through his ...
3
votes
2
answers
645
views
Confirm a transaction reliably
I need to reliably validate in an API whether a call to the Solana program made by a user has been successful. I use the confirmTransaction function (in devnet) as follows:
import { web3 } from "@...
1
vote
2
answers
324
views
Confirming transaction seems to be inconsistent?
I have been using the following chunk of code for awhile and it seems to work about 98% of the time, however there are cases where the transaction does go through seemingly immediately, but this does ...
2
votes
1
answer
183
views
How to create a TX on the front end (Wallet Adapter) and confirm it on the back end!
Our web app charges users X amount of SPL token. Users sign through their connected wallet. After the tx charges them, a request is sent to the back end where our server changes some metadata on ...
3
votes
1
answer
1k
views
How to properly call confirmTransaction so that it is not deprecated?
In keeping with the official examples:
const airdropSignature = await connection.requestAirdrop(
keypair.publicKey,
LAMPORTS_PER_SOL
);
await connection.confirmTransaction(airdropSignature);
...