Transactions
列表賬戶下未顯示比特幣多重簽名餘額
我通過比特幣cli( Testnet)將2-2 MultiSig地址添加到錢包中
addmultisigaddress <’[“key”,“key”]’> [account]
目前錢包的 1 個密鑰和來自不同節點錢包的其他公鑰。
帳戶正在顯示
0.000000
最重要的是
listaccounts
沒有列出與 MultiSig 地址關聯的帳戶。
getaddressesbyaccount [MultiSigAccount]
顯示了上面創建的 MultiSig 地址。如何通過 bitcoin-cli 獲取 MultiSig 地址的餘額?
編輯1:
此命令返回什麼:
$ bitcoin-cli -testnet validateaddress <your-multisig-address>?
{ “有效”:是的, "地址": "2Mv4iYeyQtVV1M7rqzgUc68QzQ21vy1o36Z", "scriptPubKey": "a9141eeba411eae41a1a3dc7456ec4d599aef84afd7687", “主義”:錯誤, “iswatchonly”:是的, “isscript”:是的, “證人”:假的, “腳本”:“見證_v0_scripthash”, “十六進制”:“00206e908e1cca44b136fbf666f356114ca6a84c1fbed0327a155c204580310a7a11”, “嵌入”:{ “isscript”:是的, “證人”:是的, "witness_version": 0, “witness_program”:“6e908e1cca44b136fbf666f356114ca6a84c1fbed0327a155c204580310a7a11”, “腳本”:“多重簽名”, “十六進制”:“52210240d4ae4819e35e346560efe665f79453210a0b26184e08705964c5eb89e885ca2103fcc7e4690f7bd3a51db7ed438ef9a7ffb0bf316467f39b3854935befeeb20854935befee4e, “需要簽名”:2, “公鑰”:[ "0240d4ae4819e35e346560efe665f79453210a0b26184e08705964c5eb89e885ca", “03fcc7e4690f7bd3a51db7ed438ef9a7ffb0bf316467f39b384935befee4eb2085” ], “地址”:“tb1qd6ggu8x2gjcnd7lkvme4vy2v565yc8a76qe8592uypzcqvg20ggslwnwl8”, “scriptPubKey”:“00206e908e1cca44b136fbf666f356114ca6a84c1fbed0327a155c204580310a7a11” }, “地址”:[ “tb1qd6ggu8x2gjcnd7lkvme4vy2v565yc8a76qe8592uypzcqvg20ggslwnwl8” ], “帳戶”:“multisig22”, “時間戳”:0 }
關於
addmultisigaddress
狀態的文件:此功能僅適用於非只看地址。參見
importaddress
watchonly p2sh 地址支持。由於錢包沒有兩個私鑰,所以除非你使用
importaddress
. 注意 中的ismine: false
屬性validateaddress
,這意味著你的錢包沒有能力消費(沒有私鑰)。addmultisigaddress nrequired ["key",...] ( "account" "address_type" ) Add a nrequired-to-sign multisignature address to the wallet. Requires a new wallet backup. Each key is a Bitcoin address or hex-encoded public key. This functionality is only intended for use with non-watchonly addresses. See `importaddress` for watchonly p2sh address support. If 'account' is specified (DEPRECATED), assign address to that account.
要查看多重簽名地址(獲取餘額),您應該使用
importaddress
:importaddress "address" ( "label" rescan p2sh ) Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup. Arguments: 1. "script" (string, required) The hex-encoded script (or address) 2. "label" (string, optional, default="") An optional label 3. rescan (boolean, optional, default=true) Rescan the wallet for transactions 4. p2sh (boolean, optional, default=false) Add the P2SH version of the script as well Note: This call can take minutes to complete if rescan is true, during that time, other rpc calls may report that the imported address exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes. If you have the full public key, you should call importpubkey instead of this. Note: If you import a non-standard raw script in hex form, outputs sending to it will be treated as change, and not show up in many RPCs. Examples: Import a script with rescan > bitcoin-cli importaddress "myscript" Import using a label without rescan > bitcoin-cli importaddress "myscript" "testing" false As a JSON-RPC call > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/