Add bonus gettxnslist/count/skip endpoint for spender wallet :)

This commit is contained in:
g-homebase
2019-12-13 12:13:18 -05:00
committed by kexkey
parent e8306f8a8a
commit 29704c20e5
5 changed files with 36 additions and 1 deletions

View File

@@ -238,6 +238,13 @@ main() {
response_to_client "${response}" ${?}
break
;;
gettxnslist)
# curl (GET) http://192.168.111.152:8080/gettxnslist/20/10
response=$(gettxnslist $(echo "${line}" | cut -d ' ' -f2 | cut -d '/' -f3) $(echo "${line}" | cut -d ' ' -f2 | cut -d '/' -f4))
response_to_client "${response}" ${?}
break
;;
getbalance)
# curl (GET) http://192.168.111.152:8080/getbalance