The "importprivkey" API call allows one to import a private key and save it with a label. Is the "label" in the API call synonymous with an account used in the wallet?
Asked
Active
Viewed 624 times
1 Answers
7
Though the terminiology is unclear, in code "label" and "account" are the same thing:
importprivkey function (src/rpcdump.cpp):
pwalletMain->SetAddressBookName(vchAddress, strLabel);
from getnewaddress function (src/rpcwallet.cpp):
pwalletMain->SetAddressBookName(keyID, strAccount);
aland
- 1,388
- 8
- 18