@@ -219,8 +219,9 @@ UniValue blockToJSON(BlockManager& blockman, const CBlock& block, const CBlockIn
219
219
220
220
static RPCHelpMan getblockcount ()
221
221
{
222
- return RPCHelpMan{" getblockcount" ,
223
- " \n Returns the height of the most-work fully-validated chain.\n "
222
+ return RPCHelpMan{
223
+ " getblockcount" ,
224
+ " Returns the height of the most-work fully-validated chain.\n "
224
225
" The genesis block has height 0.\n " ,
225
226
{},
226
227
RPCResult{
@@ -240,8 +241,9 @@ static RPCHelpMan getblockcount()
240
241
241
242
static RPCHelpMan getbestblockhash ()
242
243
{
243
- return RPCHelpMan{" getbestblockhash" ,
244
- " \n Returns the hash of the best (tip) block in the most-work fully-validated chain.\n " ,
244
+ return RPCHelpMan{
245
+ " getbestblockhash" ,
246
+ " Returns the hash of the best (tip) block in the most-work fully-validated chain.\n " ,
245
247
{},
246
248
RPCResult{
247
249
RPCResult::Type::STR_HEX, " " , " the block hash, hex-encoded" },
@@ -260,8 +262,9 @@ static RPCHelpMan getbestblockhash()
260
262
261
263
static RPCHelpMan waitfornewblock ()
262
264
{
263
- return RPCHelpMan{" waitfornewblock" ,
264
- " \n Waits for any new block and returns useful info about it.\n "
265
+ return RPCHelpMan{
266
+ " waitfornewblock" ,
267
+ " Waits for any new block and returns useful info about it.\n "
265
268
" \n Returns the current block on timeout or exit.\n "
266
269
" \n Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
267
270
{
@@ -305,8 +308,9 @@ static RPCHelpMan waitfornewblock()
305
308
306
309
static RPCHelpMan waitforblock ()
307
310
{
308
- return RPCHelpMan{" waitforblock" ,
309
- " \n Waits for a specific new block and returns useful info about it.\n "
311
+ return RPCHelpMan{
312
+ " waitforblock" ,
313
+ " Waits for a specific new block and returns useful info about it.\n "
310
314
" \n Returns the current block on timeout or exit.\n "
311
315
" \n Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
312
316
{
@@ -365,8 +369,9 @@ static RPCHelpMan waitforblock()
365
369
366
370
static RPCHelpMan waitforblockheight ()
367
371
{
368
- return RPCHelpMan{" waitforblockheight" ,
369
- " \n Waits for (at least) block height and returns the height and hash\n "
372
+ return RPCHelpMan{
373
+ " waitforblockheight" ,
374
+ " Waits for (at least) block height and returns the height and hash\n "
370
375
" of the current tip.\n "
371
376
" \n Returns the current block on timeout or exit.\n "
372
377
" \n Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
@@ -427,8 +432,9 @@ static RPCHelpMan waitforblockheight()
427
432
428
433
static RPCHelpMan syncwithvalidationinterfacequeue ()
429
434
{
430
- return RPCHelpMan{" syncwithvalidationinterfacequeue" ,
431
- " \n Waits for the validation interface queue to catch up on everything that was there when we entered this function.\n " ,
435
+ return RPCHelpMan{
436
+ " syncwithvalidationinterfacequeue" ,
437
+ " Waits for the validation interface queue to catch up on everything that was there when we entered this function.\n " ,
432
438
{},
433
439
RPCResult{RPCResult::Type::NONE, " " , " " },
434
440
RPCExamples{
@@ -446,8 +452,9 @@ static RPCHelpMan syncwithvalidationinterfacequeue()
446
452
447
453
static RPCHelpMan getdifficulty ()
448
454
{
449
- return RPCHelpMan{" getdifficulty" ,
450
- " \n Returns the proof-of-work difficulty as a multiple of the minimum difficulty.\n " ,
455
+ return RPCHelpMan{
456
+ " getdifficulty" ,
457
+ " Returns the proof-of-work difficulty as a multiple of the minimum difficulty.\n " ,
451
458
{},
452
459
RPCResult{
453
460
RPCResult::Type::NUM, " " , " the proof-of-work difficulty as a multiple of the minimum difficulty." },
@@ -521,8 +528,9 @@ static RPCHelpMan getblockfrompeer()
521
528
522
529
static RPCHelpMan getblockhash ()
523
530
{
524
- return RPCHelpMan{" getblockhash" ,
525
- " \n Returns hash of block in best-block-chain at height provided.\n " ,
531
+ return RPCHelpMan{
532
+ " getblockhash" ,
533
+ " Returns hash of block in best-block-chain at height provided.\n " ,
526
534
{
527
535
{" height" , RPCArg::Type::NUM, RPCArg::Optional::NO, " The height index" },
528
536
},
@@ -550,8 +558,9 @@ static RPCHelpMan getblockhash()
550
558
551
559
static RPCHelpMan getblockheader ()
552
560
{
553
- return RPCHelpMan{" getblockheader" ,
554
- " \n If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.\n "
561
+ return RPCHelpMan{
562
+ " getblockheader" ,
563
+ " If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.\n "
555
564
" If verbose is true, returns an Object with information about blockheader <hash>.\n " ,
556
565
{
557
566
{" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " The block hash" },
@@ -715,8 +724,9 @@ const RPCResult getblock_vin{
715
724
716
725
static RPCHelpMan getblock ()
717
726
{
718
- return RPCHelpMan{" getblock" ,
719
- " \n If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n "
727
+ return RPCHelpMan{
728
+ " getblock" ,
729
+ " If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n "
720
730
" If verbosity is 1, returns an Object with information about block <hash>.\n "
721
731
" If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\n "
722
732
" If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\n " ,
@@ -954,8 +964,9 @@ static std::optional<kernel::CCoinsStats> GetUTXOStats(CCoinsView* view, node::B
954
964
955
965
static RPCHelpMan gettxoutsetinfo ()
956
966
{
957
- return RPCHelpMan{" gettxoutsetinfo" ,
958
- " \n Returns statistics about the unspent transaction output set.\n "
967
+ return RPCHelpMan{
968
+ " gettxoutsetinfo" ,
969
+ " Returns statistics about the unspent transaction output set.\n "
959
970
" Note this call may take some time if you are not using coinstatsindex.\n " ,
960
971
{
961
972
{" hash_type" , RPCArg::Type::STR, RPCArg::Default{" hash_serialized_3" }, " Which UTXO set hash should be calculated. Options: 'hash_serialized_3' (the legacy algorithm), 'muhash', 'none'." },
@@ -1109,8 +1120,9 @@ static RPCHelpMan gettxoutsetinfo()
1109
1120
1110
1121
static RPCHelpMan gettxout ()
1111
1122
{
1112
- return RPCHelpMan{" gettxout" ,
1113
- " \n Returns details about an unspent transaction output.\n " ,
1123
+ return RPCHelpMan{
1124
+ " gettxout" ,
1125
+ " Returns details about an unspent transaction output.\n " ,
1114
1126
{
1115
1127
{" txid" , RPCArg::Type::STR, RPCArg::Optional::NO, " The transaction id" },
1116
1128
{" n" , RPCArg::Type::NUM, RPCArg::Optional::NO, " vout number" },
@@ -1188,8 +1200,9 @@ static RPCHelpMan gettxout()
1188
1200
1189
1201
static RPCHelpMan verifychain ()
1190
1202
{
1191
- return RPCHelpMan{" verifychain" ,
1192
- " \n Verifies blockchain database.\n " ,
1203
+ return RPCHelpMan{
1204
+ " verifychain" ,
1205
+ " Verifies blockchain database.\n " ,
1193
1206
{
1194
1207
{" checklevel" , RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf (" %d, range=0-4" , DEFAULT_CHECKLEVEL)},
1195
1208
strprintf (" How thorough the block verification is:\n %s" , MakeUnorderedList (CHECKLEVEL_DOC))},
@@ -1570,8 +1583,9 @@ static RPCHelpMan getchaintips()
1570
1583
1571
1584
static RPCHelpMan preciousblock ()
1572
1585
{
1573
- return RPCHelpMan{" preciousblock" ,
1574
- " \n Treats a block as if it were received before others with the same work.\n "
1586
+ return RPCHelpMan{
1587
+ " preciousblock" ,
1588
+ " Treats a block as if it were received before others with the same work.\n "
1575
1589
" \n A later preciousblock call can override the effect of an earlier one.\n "
1576
1590
" \n The effects of preciousblock are not retained across restarts.\n " ,
1577
1591
{
@@ -1631,8 +1645,9 @@ void InvalidateBlock(ChainstateManager& chainman, const uint256 block_hash) {
1631
1645
1632
1646
static RPCHelpMan invalidateblock ()
1633
1647
{
1634
- return RPCHelpMan{" invalidateblock" ,
1635
- " \n Permanently marks a block as invalid, as if it violated a consensus rule.\n " ,
1648
+ return RPCHelpMan{
1649
+ " invalidateblock" ,
1650
+ " Permanently marks a block as invalid, as if it violated a consensus rule.\n " ,
1636
1651
{
1637
1652
{" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " the hash of the block to mark as invalid" },
1638
1653
},
@@ -1675,8 +1690,9 @@ void ReconsiderBlock(ChainstateManager& chainman, uint256 block_hash) {
1675
1690
1676
1691
static RPCHelpMan reconsiderblock ()
1677
1692
{
1678
- return RPCHelpMan{" reconsiderblock" ,
1679
- " \n Removes invalidity status of a block, its ancestors and its descendants, reconsider them for activation.\n "
1693
+ return RPCHelpMan{
1694
+ " reconsiderblock" ,
1695
+ " Removes invalidity status of a block, its ancestors and its descendants, reconsider them for activation.\n "
1680
1696
" This can be used to undo the effects of invalidateblock.\n " ,
1681
1697
{
1682
1698
{" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " the hash of the block to reconsider" },
@@ -1700,8 +1716,9 @@ static RPCHelpMan reconsiderblock()
1700
1716
1701
1717
static RPCHelpMan getchaintxstats ()
1702
1718
{
1703
- return RPCHelpMan{" getchaintxstats" ,
1704
- " \n Compute statistics about the total number and rate of transactions in the chain.\n " ,
1719
+ return RPCHelpMan{
1720
+ " getchaintxstats" ,
1721
+ " Compute statistics about the total number and rate of transactions in the chain.\n " ,
1705
1722
{
1706
1723
{" nblocks" , RPCArg::Type::NUM, RPCArg::DefaultHint{" one month" }, " Size of the window in number of blocks" },
1707
1724
{" blockhash" , RPCArg::Type::STR_HEX, RPCArg::DefaultHint{" chain tip" }, " The hash of the block that ends the window." },
@@ -1846,8 +1863,9 @@ static constexpr size_t PER_UTXO_OVERHEAD = sizeof(COutPoint) + sizeof(uint32_t)
1846
1863
1847
1864
static RPCHelpMan getblockstats ()
1848
1865
{
1849
- return RPCHelpMan{" getblockstats" ,
1850
- " \n Compute per block statistics for a given window. All amounts are in satoshis.\n "
1866
+ return RPCHelpMan{
1867
+ " getblockstats" ,
1868
+ " Compute per block statistics for a given window. All amounts are in satoshis.\n "
1851
1869
" It won't work for some heights with pruning.\n " ,
1852
1870
{
1853
1871
{" hash_or_height" , RPCArg::Type::NUM, RPCArg::Optional::NO, " The block hash or height of the target block" ,
@@ -2204,8 +2222,9 @@ static RPCHelpMan scantxoutset()
2204
2222
// raw() descriptor corresponding to mainnet address 12cbQLTFMXRnSzktFkuoG3eHoMeFtpTu3S
2205
2223
const std::string EXAMPLE_DESCRIPTOR_RAW = " raw(76a91411b366edfc0a8b66feebae5c2e25a7b6a5d1cf3188ac)#fm24fxxy" ;
2206
2224
2207
- return RPCHelpMan{" scantxoutset" ,
2208
- " \n Scans the unspent transaction output set for entries that match certain output descriptors.\n "
2225
+ return RPCHelpMan{
2226
+ " scantxoutset" ,
2227
+ " Scans the unspent transaction output set for entries that match certain output descriptors.\n "
2209
2228
" Examples of output descriptors are:\n "
2210
2229
" addr(<address>) Outputs whose output script corresponds to the specified address (does not include P2PK)\n "
2211
2230
" raw(<hex script>) Outputs whose output script equals the specified hex-encoded bytes\n "
@@ -2415,8 +2434,9 @@ static bool CheckBlockFilterMatches(BlockManager& blockman, const CBlockIndex& b
2415
2434
2416
2435
static RPCHelpMan scanblocks ()
2417
2436
{
2418
- return RPCHelpMan{" scanblocks" ,
2419
- " \n Return relevant blockhashes for given descriptors (requires blockfilterindex).\n "
2437
+ return RPCHelpMan{
2438
+ " scanblocks" ,
2439
+ " Return relevant blockhashes for given descriptors (requires blockfilterindex).\n "
2420
2440
" This call may take several minutes. Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
2421
2441
{
2422
2442
scan_action_arg_desc,
@@ -2603,8 +2623,9 @@ static RPCHelpMan scanblocks()
2603
2623
2604
2624
static RPCHelpMan getdescriptoractivity ()
2605
2625
{
2606
- return RPCHelpMan{" getdescriptoractivity" ,
2607
- " \n Get spend and receive activity associated with a set of descriptors for a set of blocks. "
2626
+ return RPCHelpMan{
2627
+ " getdescriptoractivity" ,
2628
+ " Get spend and receive activity associated with a set of descriptors for a set of blocks. "
2608
2629
" This command pairs well with the `relevant_blocks` output of `scanblocks()`.\n "
2609
2630
" This call may take several minutes. If you encounter timeouts, try specifying no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
2610
2631
{
@@ -2832,8 +2853,9 @@ static RPCHelpMan getdescriptoractivity()
2832
2853
2833
2854
static RPCHelpMan getblockfilter ()
2834
2855
{
2835
- return RPCHelpMan{" getblockfilter" ,
2836
- " \n Retrieve a BIP 157 content filter for a particular block.\n " ,
2856
+ return RPCHelpMan{
2857
+ " getblockfilter" ,
2858
+ " Retrieve a BIP 157 content filter for a particular block.\n " ,
2837
2859
{
2838
2860
{" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " The hash of the block" },
2839
2861
{" filtertype" , RPCArg::Type::STR, RPCArg::Default{BlockFilterTypeName (BlockFilterType::BASIC)}, " The type name of the filter" },
@@ -3322,7 +3344,7 @@ static RPCHelpMan getchainstates()
3322
3344
{
3323
3345
return RPCHelpMan{
3324
3346
" getchainstates" ,
3325
- " \n Return information about chainstates.\n " ,
3347
+ " Return information about chainstates.\n " ,
3326
3348
{},
3327
3349
RPCResult{
3328
3350
RPCResult::Type::OBJ, " " , " " , {
0 commit comments