Skip to content

Commit e982f0b

Browse files
committed
Add all category options to wallet rpc help
1 parent ed12fd8 commit e982f0b

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

src/wallet/rpcwallet.cpp

+27-12
Original file line numberDiff line numberDiff line change
@@ -1458,9 +1458,14 @@ UniValue listtransactions(const JSONRPCRequest& request)
14581458
"[\n"
14591459
" {\n"
14601460
" \"address\":\"address\", (string) The bitcoin address of the transaction.\n"
1461-
" \"category\":\"send|receive\", (string) The transaction category.\n"
1461+
" \"category\": (string) The transaction category.\n"
1462+
" \"send\" Transactions sent.\n"
1463+
" \"receive\" Non-coinbase transactions received.\n"
1464+
" \"generate\" Coinbase transactions received with more than 100 confirmations.\n"
1465+
" \"immature\" Coinbase transactions received with 100 or fewer confirmations.\n"
1466+
" \"orphan\" Orphaned coinbase transactions received.\n"
14621467
" \"amount\": x.xxx, (numeric) The amount in " + CURRENCY_UNIT + ". This is negative for the 'send' category, and is positive\n"
1463-
" for the 'receive' category,\n"
1468+
" for all other categories\n"
14641469
" \"label\": \"label\", (string) A comment for the address/transaction, if any\n"
14651470
" \"vout\": n, (numeric) the vout value\n"
14661471
" \"fee\": x.xxx, (numeric) The amount of the fee in " + CURRENCY_UNIT + ". This is negative and only available for the \n"
@@ -1592,20 +1597,25 @@ static UniValue listsinceblock(const JSONRPCRequest& request)
15921597
"\nResult:\n"
15931598
"{\n"
15941599
" \"transactions\": [\n"
1595-
" \"address\":\"address\", (string) The bitcoin address of the transaction. Not present for move transactions (category = move).\n"
1596-
" \"category\":\"send|receive\", (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts.\n"
1597-
" \"amount\": x.xxx, (numeric) The amount in " + CURRENCY_UNIT + ". This is negative for the 'send' category, and for the 'move' category for moves \n"
1598-
" outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds.\n"
1600+
" \"address\":\"address\", (string) The bitcoin address of the transaction.\n"
1601+
" \"category\": (string) The transaction category.\n"
1602+
" \"send\" Transactions sent.\n"
1603+
" \"receive\" Non-coinbase transactions received.\n"
1604+
" \"generate\" Coinbase transactions received with more than 100 confirmations.\n"
1605+
" \"immature\" Coinbase transactions received with 100 or fewer confirmations.\n"
1606+
" \"orphan\" Orphaned coinbase transactions received.\n"
1607+
" \"amount\": x.xxx, (numeric) The amount in " + CURRENCY_UNIT + ". This is negative for the 'send' category, and is positive\n"
1608+
" for all other categories\n"
15991609
" \"vout\" : n, (numeric) the vout value\n"
16001610
" \"fee\": x.xxx, (numeric) The amount of the fee in " + CURRENCY_UNIT + ". This is negative and only available for the 'send' category of transactions.\n"
1601-
" \"confirmations\": n, (numeric) The number of confirmations for the transaction. Available for 'send' and 'receive' category of transactions.\n"
1611+
" \"confirmations\": n, (numeric) The number of confirmations for the transaction.\n"
16021612
" When it's < 0, it means the transaction conflicted that many blocks ago.\n"
1603-
" \"blockhash\": \"hashvalue\", (string) The block hash containing the transaction. Available for 'send' and 'receive' category of transactions.\n"
1604-
" \"blockindex\": n, (numeric) The index of the transaction in the block that includes it. Available for 'send' and 'receive' category of transactions.\n"
1613+
" \"blockhash\": \"hashvalue\", (string) The block hash containing the transaction.\n"
1614+
" \"blockindex\": n, (numeric) The index of the transaction in the block that includes it.\n"
16051615
" \"blocktime\": xxx, (numeric) The block time in seconds since epoch (1 Jan 1970 GMT).\n"
1606-
" \"txid\": \"transactionid\", (string) The transaction id. Available for 'send' and 'receive' category of transactions.\n"
1616+
" \"txid\": \"transactionid\", (string) The transaction id.\n"
16071617
" \"time\": xxx, (numeric) The transaction time in seconds since epoch (Jan 1 1970 GMT).\n"
1608-
" \"timereceived\": xxx, (numeric) The time received in seconds since epoch (Jan 1 1970 GMT). Available for 'send' and 'receive' category of transactions.\n"
1618+
" \"timereceived\": xxx, (numeric) The time received in seconds since epoch (Jan 1 1970 GMT).\n"
16091619
" \"bip125-replaceable\": \"yes|no|unknown\", (string) Whether this transaction could be replaced due to BIP125 (replace-by-fee);\n"
16101620
" may be unknown for unconfirmed transactions not in the mempool\n"
16111621
" \"abandoned\": xxx, (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the 'send' category of transactions.\n"
@@ -1746,7 +1756,12 @@ static UniValue gettransaction(const JSONRPCRequest& request)
17461756
" \"details\" : [\n"
17471757
" {\n"
17481758
" \"address\" : \"address\", (string) The bitcoin address involved in the transaction\n"
1749-
" \"category\" : \"send|receive\", (string) The category, either 'send' or 'receive'\n"
1759+
" \"category\" : (string) The transaction category.\n"
1760+
" \"send\" Transactions sent.\n"
1761+
" \"receive\" Non-coinbase transactions received.\n"
1762+
" \"generate\" Coinbase transactions received with more than 100 confirmations.\n"
1763+
" \"immature\" Coinbase transactions received with 100 or fewer confirmations.\n"
1764+
" \"orphan\" Orphaned coinbase transactions received.\n"
17501765
" \"amount\" : x.xxx, (numeric) The amount in " + CURRENCY_UNIT + "\n"
17511766
" \"label\" : \"label\", (string) A comment for the address/transaction, if any\n"
17521767
" \"vout\" : n, (numeric) the vout value\n"

0 commit comments

Comments
 (0)