<p>From the API page that you linked:</p>

<p><code>getaccount &lt;bitcoinaddress&gt;</code> Returns the account associated with the given address.</p>

CC BY-SA 3.0
2013-06-26T16:29:29.360Z
2013-06-26T16:29:29.360Z
7anner
<p>I have setup the BIK_php API of  <a href="http://bitcoindevkit.com/" rel="nofollow">http://bitcoindevkit.com/</a>  in PHP.
Now, I am able to connect and generate new addresses, but when I am going to call some functions like getaddressesbyaccount, sendfrom etc as given in Bitcoin API call list at <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list" rel="nofollow">https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list</a> , these functions requires "account" parameter as , but I could not understand where from I can get the account value?
So, Please let me know what will be the value of , and how can I get the   value from?</p>

CC BY-SA 3.0
2013-06-24T17:22:57.330Z
Does BIK_api (I don't know it) even use the accounts feature of bitcoind?
Pieter Wuille
CC BY-SA 3.0
2013-06-25T05:37:42.607Z
Thanks to comment! Is the Bitcoin Address Label is known as account name here? If we use External Bitcoin address then How can get the account name?
Jagdish Ram
CC BY-SA 3.0
2013-06-25T08:24:50.007Z
Addresses are not accounts. Accounts is for when for example you want to implement several users' wallets shared in one real wallet. They're just virtual balances, and have nothing to do with coin selection. There are few use cases for it, and few systems use it.
Pieter Wuille
CC BY-SA 3.0
2013-06-25T08:40:35.693Z
Thanks! Yes addresses are not accounts but when I call getaccount(<bitcoinaddress>) of BIK_api API by passing bitcoinaddress then it returns bitcoinaddress Label. So, I just want to confirm that the bitcoinaddress Label is the account name?
Jagdish Ram
CC BY-SA 3.0
2013-06-25T09:00:33.983Z
If a receive address R has label L, then payments sent to R will credit the account with label L. So yes, they coincide, but are not the same thing.
Pieter Wuille
CC BY-SA 3.0
2013-06-25T09:42:24.307Z
Ok, But if not same thing then what is the account name? and  in your case if we run getaccount(R) then it will return account L, so very confuse here between Label and Account?
Jagdish Ram
<api><bitcoin-core-accounts>
How can get Bitcoin client API account(<account>) name
Jagdish Ram
# How can get Bitcoin client API account(<account>) name

(Asked by: username_0 on 2013-06-24)

I have setup the BIK\_php API of <http://bitcoindevkit.com/> in PHP.
Now, I am able to connect and generate new addresses, but when I am going to call some functions like getaddressesbyaccount, sendfrom etc as given in Bitcoin API call list at <https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list> , these functions requires "account" parameter as , but I could not understand where from I can get the account value?
So, Please let me know what will be the value of , and how can I get the value from?

**Tags:** api, bitcoin-core-accounts

> **Comments:**
> **username_1**: Does BIK_api (I don't know it) even use the accounts feature of bitcoind?  
> **username_0**: Thanks to comment! Is the Bitcoin Address Label is known as account name here? If we use External Bitcoin address then How can get the account name?  
> **username_1**: Addresses are not accounts. Accounts is for when for example you want to implement several users' wallets shared in one real wallet. They're just virtual balances, and have nothing to do with coin selection. There are few use cases for it, and few systems use it.  
> **username_0**: Thanks! Yes addresses are not accounts but when I call getaccount(<bitcoinaddress>) of BIK_api API by passing bitcoinaddress then it returns bitcoinaddress Label. So, I just want to confirm that the bitcoinaddress Label is the account name?  
> **username_1**: If a receive address R has label L, then payments sent to R will credit the account with label L. So yes, they coincide, but are not the same thing.  
> **username_0**: Ok, But if not same thing then what is the account name? and  in your case if we run getaccount(R) then it will return account L, so very confuse here between Label and Account?  

---

## 1 answers

### Answer by username_2 on 2013-06-26. Score: 1

From the API page that you linked:

`getaccount <bitcoinaddress>` Returns the account associated with the given address.


---

