You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Solana: Add confirmTransaction endpoint based on web3.js #44
changed the title [-]Solana: Add confirmTransaction endpoint based on web3js[/-][+]Solana: Add confirmTransaction endpoint based on web3.js[/+]on Oct 7, 2022
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
This issue is worked on in #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
Activity
[-]feat: confirmTransaction[/-][+]Add confirmTransaction endpoint based on web3js[/+][-]Add confirmTransaction endpoint based on web3js[/-][+]Solana: Add confirmTransaction endpoint based on web3js[/+][-]Solana: Add confirmTransaction endpoint based on web3js[/-][+]Solana: Add confirmTransaction endpoint based on web3.js[/+]mschneider commentedon Oct 11, 2022
https://github.com/blockworks-foundation/mango-client-v3/blob/d34d248a3c9a97d51d977139f61cd982278b7f01/src/client.ts#L546
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 commentedon Oct 14, 2022
Implementation based on c done.
After testing, I will open a new PR once the current gets merged
mschneider commentedon Oct 22, 2022
This issue is worked on in #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
confirmTransaction implementation(#44) (#58)