@@ -167,6 +167,8 @@ static void WalletTxToJSON(interfaces::Chain& chain, const CWalletTx& wtx, UniVa
167
167
entry.pushKV (" chainlock" , chainlock);
168
168
if (wtx.IsCoinBase ())
169
169
entry.pushKV (" generated" , true );
170
+ if (wtx.IsWithdrawal ())
171
+ entry.pushKV (" withdrawal" , true );
170
172
if (confirms > 0 )
171
173
{
172
174
entry.pushKV (" blockhash" , wtx.m_confirm .hashBlock .GetHex ());
@@ -1419,6 +1421,10 @@ static void ListTransactions(const CWallet* const pwallet, const CWalletTx& wtx,
1419
1421
else
1420
1422
entry.pushKV (" category" , " generate" );
1421
1423
}
1424
+ else if (wtx.IsWithdrawal ())
1425
+ {
1426
+ entry.pushKV (" category" , " withdrawal" );
1427
+ }
1422
1428
else
1423
1429
{
1424
1430
entry.pushKV (" category" , " receive" );
@@ -1483,7 +1489,8 @@ static RPCHelpMan listtransactions()
1483
1489
" \" receive\" Non-coinbase transactions received.\n "
1484
1490
" \" generate\" Coinbase transactions received with more than 100 confirmations.\n "
1485
1491
" \" immature\" Coinbase transactions received with 100 or fewer confirmations.\n "
1486
- " \" orphan\" Orphaned coinbase transactions received.\n " },
1492
+ " \" orphan\" Orphaned coinbase transactions received.\n "
1493
+ " \" withdrawal\" Withdrawal transactions received.\n " },
1487
1494
{RPCResult::Type::STR_AMOUNT, " amount" , " The amount in " + CURRENCY_UNIT + " . This is negative for the 'send' category, and is positive\n "
1488
1495
" for all other categories" },
1489
1496
{RPCResult::Type::STR, " label" , " A comment for the address/transaction, if any" },
@@ -1599,7 +1606,8 @@ static RPCHelpMan listsinceblock()
1599
1606
" \" receive\" Non-coinbase transactions received.\n "
1600
1607
" \" generate\" Coinbase transactions received with more than 100 confirmations.\n "
1601
1608
" \" immature\" Coinbase transactions received with 100 or fewer confirmations.\n "
1602
- " \" orphan\" Orphaned coinbase transactions received.\n " },
1609
+ " \" orphan\" Orphaned coinbase transactions received.\n "
1610
+ " \" withdrawal\" Withdrawal transactions received.\n " },
1603
1611
{RPCResult::Type::STR_AMOUNT, " amount" , " The amount in " + CURRENCY_UNIT + " . This is negative for the 'send' category, and is positive\n "
1604
1612
" for all other categories" },
1605
1613
{RPCResult::Type::NUM, " vout" , " the vout value" },
@@ -1740,7 +1748,8 @@ static RPCHelpMan gettransaction()
1740
1748
" \" receive\" Non-coinbase transactions received.\n "
1741
1749
" \" generate\" Coinbase transactions received with more than 100 confirmations.\n "
1742
1750
" \" immature\" Coinbase transactions received with 100 or fewer confirmations.\n "
1743
- " \" orphan\" Orphaned coinbase transactions received.\n " },
1751
+ " \" orphan\" Orphaned coinbase transactions received.\n "
1752
+ " \" withdrawal\" Withdrawal transactions received.\n " },
1744
1753
{RPCResult::Type::STR_AMOUNT, " amount" , " The amount in " + CURRENCY_UNIT},
1745
1754
{RPCResult::Type::STR, " label" , " A comment for the address/transaction, if any" },
1746
1755
{RPCResult::Type::NUM, " vout" , " the vout value" },
0 commit comments