Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 902 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
{ | { | ||||
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, | {"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, | ||||
"The hex string of the raw transaction"}, | "The hex string of the raw transaction"}, | ||||
{"maxfeerate", RPCArg::Type::AMOUNT, | {"maxfeerate", RPCArg::Type::AMOUNT, | ||||
/* default */ | /* default */ | ||||
FormatMoney(DEFAULT_MAX_RAW_TX_FEE_RATE.GetFeePerK()), | FormatMoney(DEFAULT_MAX_RAW_TX_FEE_RATE.GetFeePerK()), | ||||
"Reject transactions whose fee rate is higher than the specified " | "Reject transactions whose fee rate is higher than the specified " | ||||
"value, expressed in " + | "value, expressed in " + | ||||
CURRENCY_UNIT + "/kB\n"}, | CURRENCY_UNIT + "/kB\nSet to 0 to accept any fee rate.\n"}, | ||||
}, | }, | ||||
RPCResult{"\"hex\" (string) The transaction hash in hex\n"}, | RPCResult{"\"hex\" (string) The transaction hash in hex\n"}, | ||||
RPCExamples{ | RPCExamples{ | ||||
"\nCreate a transaction\n" + | "\nCreate a transaction\n" + | ||||
HelpExampleCli( | HelpExampleCli( | ||||
"createrawtransaction", | "createrawtransaction", | ||||
"\"[{\\\"txid\\\" : \\\"mytxid\\\",\\\"vout\\\":0}]\" " | "\"[{\\\"txid\\\" : \\\"mytxid\\\",\\\"vout\\\":0}]\" " | ||||
"\"{\\\"myaddress\\\":0.01}\"") + | "\"{\\\"myaddress\\\":0.01}\"") + | ||||
▲ Show 20 Lines • Show All 1,127 Lines • Show Last 20 Lines |