In Bitcoin core 0.21, which command replaces getaccountaddress?

Is there any way to get the same data as getaccountaddress in 0.21?

  • That very much depends on what you were using getaccountaddress (and accounts in general for). Depending on the answer to that, there may be solutions that replace it with getnewaddress, possibly combined with setaddresslabel, separate wallets, or an entirely different custom solution. Commented May 11, 2021 at 21:49
  • Can give an example ?
    – Dam Yi
    Commented May 13, 2021 at 11:43

1 Answer 1


which command replace getaccountaddress ?

None, see the notification two and a half years ago in https://bitcoincore.org/en/releases/0.17.0/

Deprecated Method New Method Notes
getaccount getaddressinfo getaddressinfo returns a json object with address information instead of just the name of the account as a string.
getaccountaddress n/a There is no replacement for getaccountaddress since labels do not have an associated receive address.
getaddressesbyaccount getaddressesbylabel getaddressesbylabel returns a json object with the addresses as keys, instead of a list of strings.


  • is there any way to integrate getaccountaddress to new release BTC ?
    – Dam Yi
    Commented May 12, 2021 at 3:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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