@@ -1233,45 +1233,7 @@ UniValue rawdelegatestake(const JSONRPCRequest& request)
12331233 " 7. \" fForceNotEnabled\" (boolean, optional, default = false) ONLY FOR TESTING: force the creation even if SPORK 17 is disabled (for tests).\n "
12341234
12351235 " \n Result:\n "
1236- " {\n "
1237- " \" txid\" : \" id\" , (string) The transaction id (same as provided)\n "
1238- " \" version\" : n, (numeric) The version\n "
1239- " \" type\" : n, (numeric) The type\n "
1240- " \" size\" : n, (numeric) The serialized transaction size\n "
1241- " \" locktime\" : ttt, (numeric) The lock time\n "
1242- " \" vin\" : [ (array of json objects)\n "
1243- " {\n "
1244- " \" txid\" : \" id\" , (string) The transaction id\n "
1245- " \" vout\" : n, (numeric) \n "
1246- " \" scriptSig\" : { (json object) The script\n "
1247- " \" asm\" : \" asm\" , (string) asm\n "
1248- " \" hex\" : \" hex\" (string) hex\n "
1249- " },\n "
1250- " \" sequence\" : n (numeric) The script sequence number\n "
1251- " }\n "
1252- " ,...\n "
1253- " ],\n "
1254- " \" vout\" : [ (array of json objects)\n "
1255- " {\n "
1256- " \" value\" : x.xxx, (numeric) The value in PIV\n "
1257- " \" n\" : n, (numeric) index\n "
1258- " \" scriptPubKey\" : { (json object)\n "
1259- " \" asm\" : \" asm\" , (string) the asm\n "
1260- " \" hex\" : \" hex\" , (string) the hex\n "
1261- " \" reqSigs\" : n, (numeric) The required sigs\n "
1262- " \" type\" : \" pubkeyhash\" , (string) The type, eg 'pubkeyhash'\n "
1263- " \" addresses\" : [ (json array of string)\n "
1264- " \" pivxaddress\" (string) pivx address\n "
1265- " ,...\n "
1266- " ]\n "
1267- " }\n "
1268- " }\n "
1269- " ,...\n "
1270- " ],\n "
1271- " \" extraPayloadSize\" : n (numeric) Size of extra payload. Only present if it's a special TX\n "
1272- " \" extraPayload\" : \" hex\" (string) Hex encoded extra payload data. Only present if it's a special TX\n "
1273- " \" hex\" : \" data\" , (string) The serialized, hex-encoded data for 'txid'\n "
1274- " }\n "
1236+ " \" transaction\" (string) hex string of the transaction\n "
12751237
12761238 " \n Examples:\n " +
12771239 HelpExampleCli (" rawdelegatestake" , " \" S1t2a3kab9c8c71VA78xxxy4MxZg6vgeS6\" 100" ) +
@@ -1284,10 +1246,7 @@ UniValue rawdelegatestake(const JSONRPCRequest& request)
12841246 CReserveKey reservekey (pwalletMain);
12851247 CreateColdStakeDelegation (request.params , wtx, reservekey);
12861248
1287- UniValue result (UniValue::VOBJ);
1288- TxToUniv (wtx, UINT256_ZERO, result);
1289-
1290- return result;
1249+ return EncodeHexTx (wtx);
12911250}
12921251
12931252
@@ -1753,6 +1712,7 @@ UniValue rawshieldsendmany(const JSONRPCRequest& request)
17531712 " based on the expected transaction size and the current value of -minRelayTxFee.\n "
17541713 " \n Result:\n "
17551714 " \" transaction\" (string) hex string of the transaction\n "
1715+
17561716 " \n Examples:\n "
17571717 + HelpExampleCli (" rawshieldsendmany" ,
17581718 " \" DMJRSsuU9zfyrvxVaAEFQqK4MxZg6vgeS6\" '[{\" address\" : \" ps1ra969yfhvhp73rw5ak2xvtcm9fkuqsnmad7qln79mphhdrst3lwu9vvv03yuyqlh42p42st47qd\" ,\" amount\" : 5.0}]'" )
0 commit comments