<p>The getaccountadress command needs an argument: a string giving  the name of the account with which you want the new address to be associated.</p>

CC BY-SA 3.0
2014-10-06T13:27:05.117Z
2014-10-06T13:27:05.117Z
Nate Eldredge
<p>You can find all the arguments and commands <a href="http://pastebin.com/B7R7MFjQ" rel="nofollow">here</a>. </p>

<p>The correct format is: <code>getaccountaddress "account name" 1Addressgoeshere</code> where <code>account name</code> is either empty by default ie "" and <code>1Addressgoeshere</code> is the public BTC address</p>

CC BY-SA 3.0
2014-10-09T09:42:24.450Z
2014-10-09T09:42:24.450Z
Wizard Of Ozzie
<p>You can also type <code>help getaccountaddress</code> , or any method for more information of the usage of this method.</p>

CC BY-SA 3.0
2014-10-09T07:48:28.470Z
2014-10-09T07:48:28.470Z
Mohamed Farrag
<p>When I run</p>

<p>bitcoind getaccountaddress</p>

<p>I get this error</p>

<pre><code>error: {"code":-1,"message":"getaccountaddress \"account\"\n\nReturns the current Bitcoin address for receiving payments to this account.\n\nArguments:\n1. \"account\"       (string, required) The account name for the address. It ca     n also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created and a new address created  if there is no account by the given name.\n\nResult:\n\"bitcoinaddress\"   (s     tring) The account bitcoin address\n\nExamples:\n&gt; bitcoin-cli getaccountaddress \n&gt; bitcoin-cli getaccountaddress \"\"\n&gt; bitcoin-cli getaccountaddress \"myaccount\"\n&gt; curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \     "id\":\"curltest\", \"method\": \"getaccountaddress\", \"params\": [\"myaccount\"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n"}
</code></pre>

<bitcoind>
Running bitcoind getaccountaddress
robin
# Running bitcoind getaccountaddress

(Asked by: username_0 on 2014-10-06)

When I run
bitcoind getaccountaddress
I get this error
error: {"code":-1,"message":"getaccountaddress \"account\"\n\nReturns the current Bitcoin address for receiving payments to this account.\n\nArguments:\n1. \"account\"       (string, required) The account name for the address. It ca     n also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created and a new address created  if there is no account by the given name.\n\nResult:\n\"bitcoinaddress\"   (s     tring) The account bitcoin address\n\nExamples:\n> bitcoin-cli getaccountaddress \n> bitcoin-cli getaccountaddress \"\"\n> bitcoin-cli getaccountaddress \"myaccount\"\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \     "id\":\"curltest\", \"method\": \"getaccountaddress\", \"params\": [\"myaccount\"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n"}

**Tags:** bitcoind


---

## 3 answers

### Answer by username_1 on 2014-10-06. Score: 3

The getaccountadress command needs an argument: a string giving the name of the account with which you want the new address to be associated.


---

### Answer by username_2 on 2014-10-09. Score: 1

You can find all the arguments and commands [here](http://pastebin.com/B7R7MFjQ).

The correct format is: `getaccountaddress "account name" 1Addressgoeshere` where `account name` is either empty by default ie "" and `1Addressgoeshere` is the public BTC address


---

### Answer by username_3 on 2014-10-09. Score: 0

You can also type `help getaccountaddress` , or any method for more information of the usage of this method.


---

