You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (request.fHelp || request.params.size() != 1) {
1838
+
throwstd::runtime_error(
1839
+
RPCHelpMan{"analyzepsbt",
1840
+
"\nAnalyzes and provides information about the current status of a PSBT and its inputs\n",
1841
+
{
1842
+
{"psbt", RPCArg::Type::STR, RPCArg::Optional::NO, "A base64 string of a PSBT"}
1843
+
},
1844
+
RPCResult {
1845
+
"{\n"
1846
+
"\"inputs\" : [ (array of json objects)\n"
1847
+
" {\n"
1848
+
"\"has_utxo\" : true|false (boolean) Whether a UTXO is provided\n"
1849
+
"\"is_final\" : true|false (boolean) Whether the input is finalized\n"
1850
+
"\"missing\" : { (json object, optional) Things that are missing that are required to complete this input\n"
1851
+
"\"pubkeys\" : [ (array)\n"
1852
+
"\"keyid\" (string) Public key ID, hash160 of the public key, of a public key whose BIP 32 derivation path is missing\n"
1853
+
" ]\n"
1854
+
"\"signatures\" : [ (array)\n"
1855
+
"\"keyid\" (string) Public key ID, hash160 of the public key, of a public key whose signature is missing\n"
1856
+
" ]\n"
1857
+
"\"redeemscript\" : \"hash\" (string) Hash160 of the redeemScript that is missing\n"
1858
+
"\"witnessscript\" : \"hash\" (string) SHA256 of the witnessScript that is missing\n"
1859
+
" }\n"
1860
+
"\"next\" : \"role\" (string) Role of the next person that this input needs to go to\n"
1861
+
" }\n"
1862
+
" ,...\n"
1863
+
" ]\n"
1864
+
"\"estimated_vsize\" : vsize (numeric) Estimated vsize of the final signed transaction\n"
1865
+
"\"estimated_feerate\" : feerate (numeric, optional) Estimated feerate of the final signed transaction. Shown only if all UTXO slots in the PSBT have been filled.\n"
1866
+
"\"fee\" : fee (numeric, optional) The transaction fee paid. Shown only if all UTXO slots in the PSBT have been filled.\n"
1867
+
"\"next\" : \"role\" (string) Role of the next person that this psbt needs to go to\n"
1868
+
"}\n"
1869
+
},
1870
+
RPCExamples {
1871
+
HelpExampleCli("analyzepsbt", "\"psbt\"")
1872
+
}}.ToString());
1873
+
}
1874
+
1875
+
RPCTypeCheck(request.params, {UniValue::VSTR});
1876
+
1877
+
// Unserialize the transaction
1878
+
PartiallySignedTransaction psbtx;
1879
+
std::string error;
1880
+
if (!DecodeBase64PSBT(psbtx, request.params[0].get_str(), error)) {
0 commit comments