Added validateaddress endpoint

This commit is contained in:
kexkey
2021-11-15 16:49:13 -05:00
parent f62a7f4cf9
commit 4d4bee3fca
4 changed files with 62 additions and 0 deletions

View File

@@ -349,6 +349,13 @@ main() {
response_to_client "${response}" ${?}
break
;;
validateaddress)
# GET http://192.168.111.152:8080/validateaddress/tb1p5cyxnuxmeuwuvkwfem96lqzszd02n6xdcjrs20cac6yqjjwudpxqp3mvzv
response=$(validateaddress $(echo "${line}" | cut -d ' ' -f2 | cut -d '/' -f3))
response_to_client "${response}" ${?}
break
;;
spend)
# POST http://192.168.111.152:8080/spend
# BODY {"address":"2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp","amount":0.00233,"eventMessage":"eyJ3aGF0ZXZlciI6MTIzfQo=","confTarget":6,"replaceable":true,"subtractfeefromamount":false}