Questions tagged [confirmationstrategy]
The confirmationstrategy tag has no usage guidance.
8 questions
1
vote
1
answer
687
views
How to send transactions correctly and efficiently in python
I was wondering what is the best way to send a transaction and ensure it gets processed. At the moment i am using this python code that sends an already signed transaction:
from solana.rpc.commitment ...
2
votes
2
answers
3k
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
1
answer
356
views
Using getSignatureStatuses to confirm transaction
I'm using a niche language that doesn't have an existing solana library, thus needing to write my own transaction confirmation logic.
This github issue documents what the new approach for both the ts/...
1
vote
2
answers
399
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 ...
0
votes
1
answer
335
views
How to confirm a transaction given only the transaction signature and slot number?
I want to confirm a transaction gracefully and wait for it to be finalized. I understand the best way to do this is to use the Connection.confirmTransaction method with the ...
1
vote
1
answer
322
views
How to add confirmationStrategy in JS
Hello I already read this question
But I don't know how to create the BlockheightBasedTransactionConfirmationStrategy object in JS as in that example TS is used.
I will like to get this code in JS:
...
2
votes
0
answers
37
views
Using a confirmationStrategy to submit a serialized transaction [duplicate]
We are taking a signed and serialized transaction and trying to call sendAndConfirmRawTransaction with a confirmationStrategy.
The issue I am running into is that the lastValidBlockHeight on the ...
5
votes
1
answer
1k
views
how to use sendAndConfirmRawTransaction with BlockheightBasedTransactionConfirmationStrategy, i need a demo
new function:
/*
Send and confirm a raw transaction
If commitment option is not specified, defaults to 'max' commitment.
@param {Connection} connection
@param {Buffer} rawTransaction
@param {...