<p>bitcoin core version 0.20.0 has: <code>bitcoin-cli setlabel 16ga2uqnF1NqpAuQeeg7sTCAdtDUwDyJav brainwallets</code></p>

CC BY-SA 4.0
2021-02-24T16:52:52.460Z
2021-02-24T16:52:52.460Z
jcomeau_ictx
<p>accounts are groups of addresses and the label you see is the name of an account. you may list this with rpc <code>listaddressgroupings</code>. a key that you "relabel" with <code>setaccount</code> will be "moved" to the account with the new label but all other addresses stay with the other account. of course you may move all addresses to another account. basically an address can only belong to one account at a time, not vice versa.</p>

<p>also see <a href="https://bitcoin.stackexchange.com/questions/35431/">How do you delete an account in Bitcoin Core?</a> </p>

CC BY-SA 4.0
2018-08-02T01:12:37.107Z
2018-08-02T01:21:24.763Z
2018-08-02T01:21:24.763Z
vv01f
<p>I am trying to edit the label of a bitcoin address in my wallet outside of bitcoin-qt. Currently I only know of 'setaccount' but it results in two addresses after editing one, it assigns a new address to the old label for some reason?</p>

<p>Does anyone know if there is a way to accomplish my goal?</p>

<bitcoin-core><address><json-rpc><address-reuse>
How to edit the label of an existing address exactly like in bitcoin-qt but instead using RPC calls?
Eliot
# How to edit the label of an existing address exactly like in bitcoin-qt but instead using RPC calls?

(Asked by: username_0 on 2018-07-31)

I am trying to edit the label of a bitcoin address in my wallet outside of bitcoin-qt. Currently I only know of 'setaccount' but it results in two addresses after editing one, it assigns a new address to the old label for some reason?

Does anyone know if there is a way to accomplish my goal?

**Tags:** bitcoin-core, address, json-rpc, address-reuse


---

## 2 answers

### Answer by username_1 on 2021-02-24. Score: 1

bitcoin core version 0.20.0 has: `bitcoin-cli setlabel 16ga2uqnF1NqpAuQeeg7sTCAdtDUwDyJav brainwallets`


---

### Answer by username_2 on 2018-08-02. Score: 1

accounts are groups of addresses and the label you see is the name of an account. you may list this with rpc `listaddressgroupings`. a key that you "relabel" with `setaccount` will be "moved" to the account with the new label but all other addresses stay with the other account. of course you may move all addresses to another account. basically an address can only belong to one account at a time, not vice versa.

also see [How do you delete an account in Bitcoin Core?](https://bitcoin.stackexchange.com/questions/35431/)


---

