Custom Menu Options
Posted: Sat Nov 13, 2021 3:02 pm
I would love to have the possibility to customize menu options, specifically under "Account". See the following image
Ideally there would be two additional items in that dropdown, "Deposit" and "Withdraw". "Deposit" would allow users to click a button to generate a crypto address. "Withdraw" would allow users to input a crypto address and amount before clicking a button to submit.
Just like how we can specify a callback URL, the server admin could specify an "Account Event" URL that will be invoked for the above actions.
In the "Deposit" flow, an API call is made to the specified URL to retrieve the address for the user (this would be implemented by my own backend server). All mavens needs to do is display some result of that call. In other words, my server responds with the address to display to the user.
In the "Withdraw" flow, similarly an API call is made to a specified URL to submit the request, and the actual actions for decrementing account balance and doing the crypto work would be implemented by my own backend server.
Mavens could use whatever API conventions/contract desired for the above, I can work around whatever contract is designed.
This feature would be immensely helpful. Currently I need to have my own custom site that "wraps" around mavens to handle the above operations. If mavens could handle those two operations by calling some pre-defined APIs, I could do away with a lot of complexity and keep the user always on the mavens client.
Thanks!
Ideally there would be two additional items in that dropdown, "Deposit" and "Withdraw". "Deposit" would allow users to click a button to generate a crypto address. "Withdraw" would allow users to input a crypto address and amount before clicking a button to submit.
Just like how we can specify a callback URL, the server admin could specify an "Account Event" URL that will be invoked for the above actions.
In the "Deposit" flow, an API call is made to the specified URL to retrieve the address for the user (this would be implemented by my own backend server). All mavens needs to do is display some result of that call. In other words, my server responds with the address to display to the user.
In the "Withdraw" flow, similarly an API call is made to a specified URL to submit the request, and the actual actions for decrementing account balance and doing the crypto work would be implemented by my own backend server.
Mavens could use whatever API conventions/contract desired for the above, I can work around whatever contract is designed.
This feature would be immensely helpful. Currently I need to have my own custom site that "wraps" around mavens to handle the above operations. If mavens could handle those two operations by calling some pre-defined APIs, I could do away with a lot of complexity and keep the user always on the mavens client.
Thanks!