比特幣(Bitcoin) RPC Util API中getdescriptorinfo的用法及代碼示例。
用法:
getdescriptorinfo "descriptor"
分析描述符。
參數1 - descriptor
類型:字符串,必填
描述符。
返回結果
{
"descriptor" : "desc", (string) The descriptor in canonical form, without private keys
"isrange" : true|false, (boolean) Whether the descriptor is ranged
"issolvable" : true|false, (boolean) Whether the descriptor is solvable
"hasprivatekeys" : true|false, (boolean) Whether the input descriptor contained at least one private key
}
示例
分析描述符:
bitcoin-cli getdescriptorinfo "wpkh([d34db33f/84h/0h/0h]0279be667ef9dcbbac55a06295Ce870b07029Bfcdb2dce28d959f2815b16f81798)"
相關用法
- Bitcoin createmultisig用法及代碼示例
- Bitcoin deriveaddresses用法及代碼示例
- Bitcoin estimatesmartfee用法及代碼示例
- Bitcoin signmessagewithprivkey用法及代碼示例
- Bitcoin validateaddress用法及代碼示例
- Bitcoin verifymessage用法及代碼示例
注:本文由純淨天空篩選整理自bitcoin.org大神的英文原創作品 Bitcoin getdescriptorinfo。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。