OpenApi docs + make JQ output for spending raw

This commit is contained in:
g-homebase
2020-01-03 08:38:41 -05:00
committed by kexkey
parent ae3e6ce9c5
commit 1be01c301e
2 changed files with 167 additions and 58 deletions

View File

@@ -10,7 +10,7 @@ spend() {
local request=${1}
local address=$(echo "${request}" | jq -r ".address")
trace "[spend] address=${address}"
local amount=$(echo "${request}" | jq ".amount" | awk '{ printf "%.8f", $0 }')
local amount=$(echo "${request}" | jq -r ".amount" | awk '{ printf "%.8f", $0 }')
trace "[spend] amount=${amount}"
local response
local id_inserted