mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 13:14:56 +01:00
Added details on spending tx when spending
This commit is contained in:
@@ -656,7 +656,16 @@ Proxy response:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"status": "accepted",
|
"status": "accepted",
|
||||||
"hash": "af867c86000da76df7ddb1054b273ca9e034e8c89d049b5b2795f9f590f67648"
|
"hash": "af867c86000da76df7ddb1054b273ca9e034e8c89d049b5b2795f9f590f67648",
|
||||||
|
"details":
|
||||||
|
{
|
||||||
|
"firstseen": 1584568841,
|
||||||
|
"amount": 0.00233,
|
||||||
|
"size": 222,
|
||||||
|
"vsize": 141,
|
||||||
|
"replaceable": 0,
|
||||||
|
"fee": 0.00000141
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1110,6 +1110,8 @@ paths:
|
|||||||
type: "string"
|
type: "string"
|
||||||
hash:
|
hash:
|
||||||
$ref: '#/components/schemas/TypeHashString'
|
$ref: '#/components/schemas/TypeHashString'
|
||||||
|
details:
|
||||||
|
type: "object"
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
'405':
|
'405':
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ spend() {
|
|||||||
trace_rc $?
|
trace_rc $?
|
||||||
|
|
||||||
data="{\"status\":\"accepted\""
|
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)
|
# Delete the temp file containing the raw tx (see above)
|
||||||
rm spend-rawtx-${txid}.blob
|
rm spend-rawtx-${txid}.blob
|
||||||
|
|||||||
Reference in New Issue
Block a user