Added destination address to spend details

This commit is contained in:
kexkey
2020-03-19 09:47:39 -04:00
parent 9d4c703485
commit e9321b64f3
2 changed files with 3 additions and 2 deletions

View File

@@ -659,8 +659,9 @@ Proxy response:
"hash": "af867c86000da76df7ddb1054b273ca9e034e8c89d049b5b2795f9f590f67648",
"details":
{
"firstseen": 1584568841,
"address": "2N8DcqzfkYi8CkYzvNNS5amoq3SbAcQNXKp",
"amount": 0.00233,
"firstseen": 1584568841,
"size": 222,
"vsize": 141,
"replaceable": 0,

View File

@@ -72,7 +72,7 @@ spend() {
trace_rc $?
data="{\"status\":\"accepted\""
data="${data},\"hash\":\"${txid}\",\"details\":{\"firstseen\":${tx_ts_firstseen},\"amount\":${amount},\"size\":${tx_size},\"vsize\":${tx_vsize},\"replaceable\":${tx_replaceable},\"fee\":${fees}}}"
data="${data},\"hash\":\"${txid}\",\"details\":{\"address\":\"${address}\",\"amount\":${amount},\"firstseen\":${tx_ts_firstseen},\"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