Features replaceable and subtractfeefromamount on spend (#178)

* Added replaceable param to spend

* Added subtractfeefromamount param to the spend endpoint
This commit is contained in:
kexkey
2020-03-25 16:15:10 -04:00
committed by GitHub
parent 0a5526e8b4
commit 874c42daca
4 changed files with 16 additions and 6 deletions

View File

@@ -284,7 +284,7 @@ main() {
;;
spend)
# POST http://192.168.111.152:8080/spend
# BODY {"address":"2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp","amount":0.00233,"eventMessage":"eyJ3aGF0ZXZlciI6MTIzfQo=","confTarget":6}
# BODY {"address":"2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp","amount":0.00233,"eventMessage":"eyJ3aGF0ZXZlciI6MTIzfQo=","confTarget":6,"replaceable":true,"subtractfeefromamount":false}
response=$(spend "${line}")
response_to_client "${response}" ${?}