I am thinking about building a really simple web app to demonstrate the testnet – something really simple like sending transactions between known accounts
To give the demo some sizzle, and to demonstrate the unique speed / fast finality of algorand, what I would like to do is visually indicate when the transaction has been confirmed
Ideally there would be a way to register some kind of callback with the node, which would then ping the JS client when the tx was confirmed
Any thoughts on how best to accomplish doing this? A simple start would be to just poll the node from the JS client and look for the published transaction, but that seems less elegant
It is also possible that I am just thinking about this the wrong way entirely, so happy to be educated if that’s the case
I like this idea. We are working on a JS SDK. This should be available soon. You could build on top of the REST API, but you may want to hold for just a bit and let us get the JS SDK out. I am not certain it will have callbacks though.
These things can be implemented on top of the REST APIs. We want to ensure we provide the necessary primitives to build on top of. Higher-level abstractions and convenience features can be added by the community if we don’t get to them.
So what is the best solution to watch custom wallet address?
Should I do request each second to the public api with the address, do I have to setup the node, and do 1 second requests to that or has been something invented in last 2 years regarding webhooks or callbacks?
We have the new indexer which you could use but you still have to call it. You can set it up to be queried every block by using statusAfterBlock. That should prevent having to poll every second, which would be a waste. Another option is to use a tool like: Algorand Developer Portal
No nothing and they will just lead down a rabbit hole of links with no proper answer, code examples or anything.
If there are no callbacks, then this whole thing is worthless. Where are the callbacks. We need a payment workflow, at this point it is nothing but guess work.
All I find in the subject is link to more links, and the only information that amounts up to anything is a paid service partnered with Algorand.
So seriously, what’s the answer. I still can’t find one.
You do not pay any middleman fees, and user can pay directly to the eshop owner… Eshop owner can accept the payments even with usdc/usdt and can set his own matching order in the tx note field so that he can manually match the payment later for example.
This is actually awesome, but I am getting a 405 Error upon successful transaction. Is there something I can do to fix it?
I literally tried everything I could think, I even turned off cloudflare for this specific part nothing is working. I tried to get it to load the page and it won’t get pass the 405 Error.