Timeline for How is backend supposed to capture a frontend wallet transaction?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 11, 2023 at 8:06 | vote | accept | 1owk3y | ||
Sep 10, 2023 at 8:22 | comment | added | 1owk3y | @Serban "the back-end is the blockchain itself" would be true if my app was fully on-chain. It is not. A webhook is good for notifications only, since they generally only notify about balance changes and not their origins/instructions. And yes, having the front notify the back is way too risky, it needs to be the other way around. In the end I opted for having the back-end periodically check for new transactions which is not instant, but using a webhook to invoke that check would make it so, and does not take any front-end user input at all | |
Sep 10, 2023 at 8:13 | answer | added | 1owk3y | timeline score: 1 | |
Sep 10, 2023 at 8:03 | comment | added | Serban | The back-end is the blockchain itself. If you need a service to respond to changes in the blockchain you would ideally query the blockchain regularly. You are correct that relying on webhooks or the UI sending the event is risky, but they can offer great UX, however you should always query the blockchain for events separately to cover cases where the first two methods fail. | |
Sep 10, 2023 at 7:23 | answer | added | pepeIKO | timeline score: 1 | |
Sep 10, 2023 at 5:26 | history | edited | 1owk3y | CC BY-SA 4.0 |
reworded question to be more concise, used a more direct link to docs
|
Sep 9, 2023 at 13:17 | comment | added | 1owk3y | Okay turns out I can't do that. While it does enable me to get real-time notifications about wallet fund changes it doesn't contain information about the sender. It just notifies you that the balance is different. Back to square zero. | |
Sep 9, 2023 at 9:52 | answer | added | ashish250990 | timeline score: 1 | |
Sep 9, 2023 at 8:19 | comment | added | 1owk3y | Didn't realise how quiet this Stack was. For the moment I am settling for using QuickNode, a service which offer webhooks to listen to a wallet's funds changes in real-time quicknode.com/guides/solana-development/getting-started/… | |
S Sep 8, 2023 at 18:08 | review | First questions | |||
Sep 10, 2023 at 7:34 | |||||
S Sep 8, 2023 at 18:08 | history | asked | 1owk3y | CC BY-SA 4.0 |