add listpays

This commit is contained in:
g-homebase
2020-03-03 09:24:03 -05:00
committed by kexkey
parent 1e1b2f1eb7
commit f79e6c09d4
3 changed files with 17 additions and 0 deletions

View File

@@ -482,6 +482,16 @@ ln_listfunds() {
echo "${result}"
return ${returncode}
}
ln_listpays() {
trace "Entering ln_listpays()..."
local result
result=$(./lightning-cli listpays)
returncode=$?
trace_rc ${returncode}
trace "[ln_listpays] result=${result}"
echo "${result}"
return ${returncode}
}
ln_getroute() {
trace "Entering ln_getroute()..."
# Defaults used from c-lightning documentation