firoorg / ztm

A REST service running on top of Zcoin Exodus to provides rich and easy to use APIs for managing the token
https://ztm.readthedocs.io
MIT License
4 stars 3 forks source link

Investigate for solutions to enhance token receving API #182

Open ultimaweapon opened 4 years ago

ultimaweapon commented 4 years ago

Right now timeout for receiving is a fixed value. This will have a lot of limitation. We should allow user to specify a custom timeout on every receiving. If we allow user to be able to specify timeout directly in the request it will make it harder to use for user who don't know how Blockchain work. So we need some way to provide this functionality without needing user to learn how Blockchain work.

ultimaweapon commented 4 years ago

My idea is we will provide receiving profile. The user just specify the profile they want to use for that receiving in the request (e.g. exchange for token exchanging). We will provides pre-defined profiles for common scenarios. We will also allow user to specify profile configurations manually for the advanced user. With this solution we will support both regular user and advanced user.