@@ -206,7 +206,16 @@ static UniValue gettxoutproof(const JSONRPCRequest& request)
206
206
{
207
207
if (request.fHelp || (request.params .size () != 1 && request.params .size () != 2 ))
208
208
throw std::runtime_error (
209
- " gettxoutproof [\" txid\" ,...] ( blockhash )\n "
209
+ RPCHelpMan{" gettxoutproof" ,
210
+ {
211
+ {" txids" , RPCArg::Type::ARR,
212
+ {
213
+ {" txid" , RPCArg::Type::STR_HEX, false },
214
+ },
215
+ false },
216
+ {" blockhash" , RPCArg::Type::STR_HEX, true },
217
+ }}
218
+ .ToString () +
210
219
" \n Returns a hex-encoded proof that \" txid\" was included in a block.\n "
211
220
" \n NOTE: By default this function only works sometimes. This is when there is an\n "
212
221
" unspent output in the utxo for this transaction. To make it always work,\n "
@@ -673,10 +682,17 @@ static void TxInErrorToJSON(const CTxIn& txin, UniValue& vErrorsRet, const std::
673
682
674
683
static UniValue combinerawtransaction (const JSONRPCRequest& request)
675
684
{
676
-
677
685
if (request.fHelp || request.params .size () != 1 )
678
686
throw std::runtime_error (
679
- " combinerawtransaction [\" hexstring\" ,...]\n "
687
+ RPCHelpMan{" combinerawtransaction" ,
688
+ {
689
+ {" txs" , RPCArg::Type::ARR,
690
+ {
691
+ {" hexstring" , RPCArg::Type::STR_HEX, false },
692
+ },
693
+ false },
694
+ }}
695
+ .ToString () +
680
696
" \n Combine multiple partially signed transactions into one transaction.\n "
681
697
" The combined transaction may be another partially signed transaction or a \n "
682
698
" fully signed transaction."
@@ -899,7 +915,30 @@ static UniValue signrawtransactionwithkey(const JSONRPCRequest& request)
899
915
{
900
916
if (request.fHelp || request.params .size () < 2 || request.params .size () > 4 )
901
917
throw std::runtime_error (
902
- " signrawtransactionwithkey \" hexstring\" [\" privatekey1\" ,...] ( [{\" txid\" :\" id\" ,\" vout\" :n,\" scriptPubKey\" :\" hex\" ,\" redeemScript\" :\" hex\" },...] sighashtype )\n "
918
+ RPCHelpMan{" signrawtransactionwithkey" ,
919
+ {
920
+ {" hexstring" , RPCArg::Type::STR, false },
921
+ {" privkyes" , RPCArg::Type::ARR,
922
+ {
923
+ {" privatekey" , RPCArg::Type::STR_HEX, false },
924
+ },
925
+ false },
926
+ {" prevtxs" , RPCArg::Type::ARR,
927
+ {
928
+ {" " , RPCArg::Type::OBJ,
929
+ {
930
+ {" txid" , RPCArg::Type::STR_HEX, false },
931
+ {" vout" , RPCArg::Type::NUM, false },
932
+ {" scriptPubKey" , RPCArg::Type::STR_HEX, false },
933
+ {" redeemScript" , RPCArg::Type::STR_HEX, false },
934
+ {" amount" , RPCArg::Type::AMOUNT, false },
935
+ },
936
+ true },
937
+ },
938
+ true },
939
+ {" sighashtype" , RPCArg::Type::STR, true },
940
+ }}
941
+ .ToString () +
903
942
" \n Sign inputs for raw transaction (serialized, hex-encoded).\n "
904
943
" The second argument is an array of base58-encoded private\n "
905
944
" keys that will be the only keys used to sign the transaction.\n "
@@ -1454,7 +1493,15 @@ UniValue combinepsbt(const JSONRPCRequest& request)
1454
1493
{
1455
1494
if (request.fHelp || request.params .size () != 1 )
1456
1495
throw std::runtime_error (
1457
- " combinepsbt [\" psbt\" ,...]\n "
1496
+ RPCHelpMan{" combinepsbt" ,
1497
+ {
1498
+ {" txs" , RPCArg::Type::ARR,
1499
+ {
1500
+ {" psbt" , RPCArg::Type::STR_HEX, false },
1501
+ },
1502
+ false },
1503
+ }}
1504
+ .ToString () +
1458
1505
" \n Combine multiple partially signed Bitcoin transactions into one transaction.\n "
1459
1506
" Implements the Combiner role.\n "
1460
1507
" \n Arguments:\n "
@@ -1570,7 +1617,37 @@ UniValue createpsbt(const JSONRPCRequest& request)
1570
1617
{
1571
1618
if (request.fHelp || request.params .size () < 2 || request.params .size () > 4 )
1572
1619
throw std::runtime_error (
1573
- " createpsbt [{\" txid\" :\" id\" ,\" vout\" :n},...] [{\" address\" :amount},{\" data\" :\" hex\" },...] ( locktime ) ( replaceable )\n "
1620
+ RPCHelpMan{" createpsbt" ,
1621
+ {
1622
+ {" inputs" , RPCArg::Type::ARR,
1623
+ {
1624
+ {" " , RPCArg::Type::OBJ,
1625
+ {
1626
+ {" txid" , RPCArg::Type::STR_HEX, false },
1627
+ {" vout" , RPCArg::Type::NUM, false },
1628
+ {" sequence" , RPCArg::Type::NUM, true },
1629
+ },
1630
+ false },
1631
+ },
1632
+ false },
1633
+ {" outputs" , RPCArg::Type::ARR,
1634
+ {
1635
+ {" " , RPCArg::Type::OBJ,
1636
+ {
1637
+ {" address" , RPCArg::Type::AMOUNT, false },
1638
+ },
1639
+ true },
1640
+ {" " , RPCArg::Type::OBJ,
1641
+ {
1642
+ {" data" , RPCArg::Type::STR_HEX, false },
1643
+ },
1644
+ true },
1645
+ },
1646
+ false },
1647
+ {" locktime" , RPCArg::Type::NUM, true },
1648
+ {" replaceable" , RPCArg::Type::BOOL, true },
1649
+ }}
1650
+ .ToString () +
1574
1651
" \n Creates a transaction in the Partially Signed Transaction format.\n "
1575
1652
" Implements the Creator role.\n "
1576
1653
" \n Arguments:\n "
0 commit comments