commit
51cc19d492
|
@ -1719,6 +1719,7 @@ UniValue gettransaction(const UniValue& params, bool fHelp)
|
|||
"\nResult:\n"
|
||||
"{\n"
|
||||
" \"status\" : \"mined|waiting|expiringsoon|expired\", (string) The transaction status, can be 'mined', 'waiting', 'expiringsoon' or 'expired'\n"
|
||||
" \"version\" : \"x\", (string) The transaction version\n"
|
||||
" \"amount\" : x.xxx, (numeric) The transaction amount in " + CURRENCY_UNIT + "\n"
|
||||
" \"amountZat\" : x (numeric) The amount in " + MINOR_CURRENCY_UNIT + "\n"
|
||||
" \"confirmations\" : n, (numeric) The number of confirmations\n"
|
||||
|
@ -1778,6 +1779,7 @@ UniValue gettransaction(const UniValue& params, bool fHelp)
|
|||
CAmount nNet = nCredit - nDebit;
|
||||
CAmount nFee = (wtx.IsFromMe(filter) ? wtx.GetValueOut() - nDebit : 0);
|
||||
|
||||
entry.pushKV("version", wtx.nVersion);
|
||||
entry.pushKV("amount", ValueFromAmount(nNet - nFee));
|
||||
entry.pushKV("amountZat", nNet - nFee);
|
||||
if (wtx.IsFromMe(filter))
|
||||
|
|
Loading…
Reference in New Issue