mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 13:14:56 +01:00
Add missing routes to api.properties and 'all' prop to ln_withdraw
This commit is contained in:
@@ -515,6 +515,10 @@ ln_withdraw() {
|
||||
local destination=$(echo "${request}" | jq -r ".destination")
|
||||
local satoshi=$(echo "${request}" | jq -r ".satoshi")
|
||||
local feerate=$(echo "${request}" | jq -r ".feerate")
|
||||
local all=$(echo "${request}" | jq -r ".all")
|
||||
if [ "${all}" == true ] || [ "${all}" == "true" ] ; then
|
||||
satoshi="all"
|
||||
fi
|
||||
result=$(./lightning-cli withdraw ${destination} ${satoshi} ${feerate})
|
||||
returncode=$?
|
||||
trace_rc ${returncode}
|
||||
|
||||
@@ -437,7 +437,7 @@ main() {
|
||||
;;
|
||||
ln_withdraw)
|
||||
# POST http://192.168.111.152:8080/ln_withdraw
|
||||
# BODY {"destination":"segwitAddress","satoshi":"100000","feerate":0}
|
||||
# BODY {"destination":"segwitAddress","satoshi":"100000","feerate":0,all: false}
|
||||
response=$(ln_withdraw "${line}")
|
||||
response_to_client "${response}" ${?}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user