jimbursch
Well-known member
I'm working on getting familiar with dash-cli on the command line and I have a pretty basic question(s).
I understand addresses, but I'm not clear on what are "accounts". Here is what I'm looking at and don't understand:
$ ./dash-cli getaddressesbyaccount ""
[
"XdKNPvjvAVN3eLdqx4k1jKyJ5HSYSuXr5Y",
"Xg15zFBxyQt5Bqk7PP28HrfuEQ6NJrx2nt",
"XvTuFvFfo8aUUsMT1VHECKK3BH9Y85gRSR"
]
$ ./dash-cli listaccounts
{
"": 0.00000000,
"Xg15zFBxyQt5Bqk7PP28HrfuEQ6NJrx2nt": 0.00000000
}
Xg15... is an address that I created with getnewaddress.
What are "accounts"?
My understanding is that getaddressesbyaccount "" returns all addresses in my wallet. Why does the address I created appear in listaccounts?
I understand addresses, but I'm not clear on what are "accounts". Here is what I'm looking at and don't understand:
$ ./dash-cli getaddressesbyaccount ""
[
"XdKNPvjvAVN3eLdqx4k1jKyJ5HSYSuXr5Y",
"Xg15zFBxyQt5Bqk7PP28HrfuEQ6NJrx2nt",
"XvTuFvFfo8aUUsMT1VHECKK3BH9Y85gRSR"
]
$ ./dash-cli listaccounts
{
"": 0.00000000,
"Xg15zFBxyQt5Bqk7PP28HrfuEQ6NJrx2nt": 0.00000000
}
Xg15... is an address that I created with getnewaddress.
What are "accounts"?
My understanding is that getaddressesbyaccount "" returns all addresses in my wallet. Why does the address I created appear in listaccounts?