Event published on spend

This commit is contained in:
kexkey
2019-12-02 13:19:41 -05:00
committed by kexkey
parent 08d221274b
commit 8021864f93
2 changed files with 19 additions and 1 deletions

View File

@@ -257,7 +257,7 @@ main() {
;;
spend)
# POST http://192.168.111.152:8080/spend
# BODY {"address":"2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp","amount":0.00233}
# BODY {"address":"2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp","amount":0.00233,"eventMessage":"eyJib3VuY2VfYWRkcmVzcyI6InRiMXE2czBwcHdrMm1zZGV3YWwzbXU5MGFoZmhweWVwYXdudzZ3ZGs4dCIsIm5iX2NvbmYiOjZ9Cg=="}
response=$(spend "${line}")
response_to_client "${response}" ${?}