Solana: Add confirmTransaction endpoint based on web3.js
Opened this issue · 3 comments
aniketfuryrocks commented
Implement the feature confirmTransaction
Feature request moved from issue #40
mschneider commented
this is a working and well tested implementation for confirmTransaction in typescript
the way this works:
a) define timeout, either by constant time (bad) or by optional BlockhashWithExpiryBlockHeight
b) open a onSignature websocket connection - would leave this out for now and add it later when websockets are working
c) poll every 2 seconds getSignatureStatuses - should work well enough for now
Lioncat2002 commented
Implementation based on c done.
After testing, I will open a new PR once the current gets merged
mschneider commented