Added details on spending tx when spending

This commit is contained in:
kexkey
2020-03-18 18:03:40 -04:00
parent fdf65ba080
commit 9d4c703485
3 changed files with 13 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ spend() {
trace_rc $?
data="{\"status\":\"accepted\""
data="${data},\"hash\":\"${txid}\"}"
data="${data},\"hash\":\"${txid}\",\"details\":{\"firstseen\":${tx_ts_firstseen},\"amount\":${amount},\"size\":${tx_size},\"vsize\":${tx_vsize},\"replaceable\":${tx_replaceable},\"fee\":${fees}}}"
# Delete the temp file containing the raw tx (see above)
rm spend-rawtx-${txid}.blob