Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 883 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"", | "", | ||||
{ | { | ||||
{RPCResult::Type::STR_HEX, "hex", | {RPCResult::Type::STR_HEX, "hex", | ||||
"The hex-encoded raw transaction with signature(s)"}, | "The hex-encoded raw transaction with signature(s)"}, | ||||
{RPCResult::Type::BOOL, "complete", | {RPCResult::Type::BOOL, "complete", | ||||
"If the transaction has a complete set of signatures"}, | "If the transaction has a complete set of signatures"}, | ||||
{RPCResult::Type::ARR, | {RPCResult::Type::ARR, | ||||
"errors", | "errors", | ||||
/* optional */ true, | |||||
"Script verification errors (if there are any)", | "Script verification errors (if there are any)", | ||||
{ | { | ||||
{RPCResult::Type::OBJ, | {RPCResult::Type::OBJ, | ||||
"", | "", | ||||
"", | "", | ||||
{ | { | ||||
{RPCResult::Type::STR_HEX, "txid", | {RPCResult::Type::STR_HEX, "txid", | ||||
"The hash of the referenced, previous transaction"}, | "The hash of the referenced, previous transaction"}, | ||||
▲ Show 20 Lines • Show All 1,158 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
Currency::get().ticker + | Currency::get().ticker + | ||||
"/kB. Shown only if all UTXO slots in the PSBT have been " | "/kB. Shown only if all UTXO slots in the PSBT have been " | ||||
"filled"}, | "filled"}, | ||||
{RPCResult::Type::STR_AMOUNT, "fee", /* optional */ true, | {RPCResult::Type::STR_AMOUNT, "fee", /* optional */ true, | ||||
"The transaction fee paid. Shown only if all UTXO slots in " | "The transaction fee paid. Shown only if all UTXO slots in " | ||||
"the PSBT have been filled"}, | "the PSBT have been filled"}, | ||||
{RPCResult::Type::STR, "next", | {RPCResult::Type::STR, "next", | ||||
"Role of the next person that this psbt needs to go to"}, | "Role of the next person that this psbt needs to go to"}, | ||||
{RPCResult::Type::STR, "error", | {RPCResult::Type::STR, "error", /* optional */ true, | ||||
"Error message if there is one"}, | "Error message (if there is one)"}, | ||||
}}, | }}, | ||||
RPCExamples{HelpExampleCli("analyzepsbt", "\"psbt\"")}} | RPCExamples{HelpExampleCli("analyzepsbt", "\"psbt\"")}} | ||||
.Check(request); | .Check(request); | ||||
RPCTypeCheck(request.params, {UniValue::VSTR}); | RPCTypeCheck(request.params, {UniValue::VSTR}); | ||||
// Unserialize the transaction | // Unserialize the transaction | ||||
PartiallySignedTransaction psbtx; | PartiallySignedTransaction psbtx; | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |