Add tx_confirmations to resultset in api/outputs

Adding the count of confirmations (tx_confirmations) enables this
API to prove that an XMR transaction has been both sent and
confirmed in the blockchain.
This commit is contained in:
jmacxx 2020-08-10 11:10:12 -05:00
parent 9c9d9bede8
commit 76bd39a3ec
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B
1 changed files with 1 additions and 0 deletions

View File

@ -5413,6 +5413,7 @@ json_outputs(string tx_hash_str,
j_data["address"] = pod_to_hex(address_info.address);
j_data["viewkey"] = pod_to_hex(prv_view_key);
j_data["tx_prove"] = tx_prove;
j_data["tx_confirmations"] = txd.no_confirmations;
j_response["status"] = "success";