9

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?

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);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.