add option in ajax request in send coins transaction for auto-sign enable/disable

This commit is contained in:
einhornimmond 2021-02-23 13:50:23 +01:00
parent 5c77a9871b
commit 16af5409fd
3 changed files with 9 additions and 5 deletions

@ -1 +1 @@
Subproject commit 164e1e715bd773814fba10dade7a4b3aff65d0ed
Subproject commit 7ebc7909eaf9e74ca81f561b0aac64797c3d0112

View File

@ -73,11 +73,12 @@ Normally a forwarding to login-server check transactions side is neccessary to m
POST http://localhost/transaction-send-coins/ajaxCreate
```json
{"session_id" : -127182, "amount": 2000000, "email": "maxim.mustermann@gmail.com", "memo":"Thank you :)"}
{"session_id" : -127182, "amount": 2000000, "email": "maxim.mustermann@gmail.com", "memo":"Thank you :)", "auto_sign": true}
```
- amout: amount to transfer, 2000000 = 200,00 GDD
- email: receiver email address, must be differ from user email
- memo: Details about transaction
- auto_sign: set to true to directly sign transaction if unsecure.allow_auto_sign_transactions = 1 is set
return if everything is ok:
```json
@ -85,8 +86,11 @@ return if everything is ok:
```
- timeUsed: time used for getting data from db in seconds, only for analyse backend performance
Than the transaction was created on community server, send to login-server, signed (if unsecure.allow_auto_sign_transactions = 1)
Than the transaction was created on community server, send to login-server, signed (if unsecure.allow_auto_sign_transactions = 1 and auto_sign = true)
and send back to community server and put into db.
After you get this answear you see the new transaction if you list transactions or call for the balance
After you get this answear you see the new transaction if you list transactions or call for the balance.
Without auto-sign the transaction is pending on login-server and waits for the user to review it at
http://localhost/account/checkTransactions

@ -1 +1 @@
Subproject commit 98d52617c896a1a50c0a2bab2305eb6e890e882b
Subproject commit 9b9115290c8d2ead756d64b70ae63a6571aa4693