Command-Line-Options

我可以使用什麼命令代替ListAccounts

  • December 19, 2018

在文件中說:“listaccounts 將在更高版本的比特幣核心中刪除”

<https://bitcoin.org/en/developer-reference#listaccounts>

在“另見”部分:

GetAccount - 不返回列表帳戶

GetAddressesByAccount [deprecated]

ListReceivedByAccount [deprecated]

我們有替代命令嗎?

您仍然可以使用相同的命令來獲取帳戶和地址列表

getaddressesayaccount: returns a list of every address assigned to a particular account.

listreceivedbyaccount: lists the total number of bitcoins received by each account.

或者作為一種解決方法,您可以嘗試以下技巧:

listaddressgroupings: lists groups of addresses that may have had their common ownership made public by common use as inputs in the same transaction or from being used as change from a previous transaction.

listtransactions "*" 1 0 true: List the most recent transaction from all accounts including watch-only addresses.

有關列出帳戶/地址的可用命令的更多資訊:https ://bitcoin.org/en/developer-reference

希望這可以幫助,

親切的問候。

集群2k

listaddressgroupings返回錢包中的所有地址和用於coincontrol的資訊

它基本上將輸出作為包含地址和相應餘額的列表返回

[
 "2NCX68pyD9Hcp4FVtpoGYqG8GegDEiYBvNp",
 1.99939120
],
[
 "2NE6ee6nVjsmqTVy8WUqR9Krk84PH82KqV1",
 0.00000000
],
[
 "2NEPfREuzAZbVJNMfPR9gr8jfKCGZE24Xjw",
 42.99996200
]

引用自:https://bitcoin.stackexchange.com/questions/62430