比特幣(Bitcoin) RPC Rawtransactions API中analyzepsbt的用法及代碼示例。
用法:
analyzepsbt "psbt"
分析並提供有關PSBT當前狀態及其輸入的信息
參數1 - psbt
類型:字符串,必填
PSBT的base64字符串
返回結果
{
"inputs" : [ (array of json objects)
{
"has_utxo" : true|false (boolean) Whether a UTXO is provided
"is_final" : true|false (boolean) Whether the input is finalized
"missing" : { (json object, optional) Things that are missing that are required to complete this input
"pubkeys" : [ (array, optional)
"keyid" (string) Public key ID, hash160 of the public key, of a public key whose BIP 32 derivation path is missing
]
"signatures" : [ (array, optional)
"keyid" (string) Public key ID, hash160 of the public key, of a public key whose signature is missing
]
"redeemscript" : "hash" (string, optional) Hash160 of the redeemScript that is missing
"witnessscript" : "hash" (string, optional) SHA256 of the witnessScript that is missing
}
"next" : "role" (string, optional) Role of the next person that this input needs to go to
}
,...
]
"estimated_vsize" : vsize (numeric, optional) Estimated vsize of the final signed transaction
"estimated_feerate" : feerate (numeric, optional) Estimated feerate of the final signed transaction in BTC/kB. Shown only if all UTXO slots in the PSBT have been filled.
"fee" : fee (numeric, optional) The transaction fee paid. Shown only if all UTXO slots in the PSBT have been filled.
"next" : "role" (string) Role of the next person that this psbt needs to go to
}
示例
bitcoin-cli analyzepsbt "psbt"
相關用法
- Bitcoin combinepsbt用法及代碼示例
- Bitcoin combinerawtransaction用法及代碼示例
- Bitcoin converttopsbt用法及代碼示例
- Bitcoin createpsbt用法及代碼示例
- Bitcoin createrawtransaction用法及代碼示例
- Bitcoin decodepsbt用法及代碼示例
- Bitcoin decoderawtransaction用法及代碼示例
- Bitcoin decodescript用法及代碼示例
- Bitcoin finalizepsbt用法及代碼示例
- Bitcoin fundrawtransaction用法及代碼示例
- Bitcoin getrawtransaction用法及代碼示例
- Bitcoin joinpsbts用法及代碼示例
- Bitcoin sendrawtransaction用法及代碼示例
- Bitcoin signrawtransactionwithkey用法及代碼示例
- Bitcoin testmempoolaccept用法及代碼示例
- Bitcoin utxoupdatepsbt用法及代碼示例
注:本文由純淨天空篩選整理自bitcoin.org大神的英文原創作品 Bitcoin analyzepsbt。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。