Open aniketfuryrocks opened 1 year ago
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
Implementation based on c done. After testing, I will open a new PR once the current gets merged
This issue is worked on in https://github.com/mschneider/solcpp/pull/58 given that @pSN0W is not ready yet, please try to implement a simplified version that uses a blockheight and signature status. Any timing based implementation won’t work reliably
Implement the feature confirmTransaction
Feature request moved from issue #40