比特幣(Bitcoin) RPC Wallet API中walletprocesspsbt的用法及代碼示例。
用法:
walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )
使用我們錢包中的輸入信息更新PSBT,然後簽名我們可以簽名的輸入。
參數1 - psbt
類型:字符串,必填
交易base64字符串
參數2 - sign
類型:布爾值,可選,默認= true
同時在更新時簽署交易
參數3 - sighashtype
類型:字符串,可選,默認= ALL
- 如果PSBT未指定,則使用要簽名的簽名哈希類型。必須是以下之一
“ALL” “NONE” “SINGLE” “ALL|ANYONECANPAY” “NONE|ANYONECANPAY” “SINGLE|ANYONECANPAY”
參數4 - bip32derivs
類型:布爾值,可選,默認= false
如果為true,則在知道公鑰的情況下包括公鑰的BIP 32派生路徑
返回結果
{
"psbt" : "value", (string) The base64-encoded partially signed transaction
"complete" : true|false, (boolean) If the transaction has a complete set of signatures
]
}
示例
bitcoin-cli walletprocesspsbt "psbt"
相關用法
- Bitcoin abandontransaction用法及代碼示例
- Bitcoin abortrescan用法及代碼示例
- Bitcoin addmultisigaddress用法及代碼示例
- Bitcoin backupwallet用法及代碼示例
- Bitcoin bumpfee用法及代碼示例
- Bitcoin createwallet用法及代碼示例
- Bitcoin dumpprivkey用法及代碼示例
- Bitcoin dumpwallet用法及代碼示例
- Bitcoin encryptwallet用法及代碼示例
- Bitcoin getaddressesbylabel用法及代碼示例
- Bitcoin getaddressinfo用法及代碼示例
- Bitcoin getbalance用法及代碼示例
- Bitcoin getnewaddress用法及代碼示例
- Bitcoin getrawchangeaddress用法及代碼示例
- Bitcoin getreceivedbyaddress用法及代碼示例
- Bitcoin getreceivedbylabel用法及代碼示例
- Bitcoin gettransaction用法及代碼示例
- Bitcoin getwalletinfo用法及代碼示例
- Bitcoin importaddress用法及代碼示例
- Bitcoin importmulti用法及代碼示例
- Bitcoin importprivkey用法及代碼示例
- Bitcoin importpubkey用法及代碼示例
- Bitcoin importwallet用法及代碼示例
- Bitcoin keypoolrefill用法及代碼示例
- Bitcoin listaddressgroupings用法及代碼示例
注:本文由純淨天空篩選整理自bitcoin.org大神的英文原創作品 Bitcoin walletprocesspsbt。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。