1

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?

  • Does BIK_api (I don't know it) even use the accounts feature of bitcoind? – Pieter Wuille Jun 24 '13 at 17:22
  • 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 Jun 25 '13 at 5:37
  • 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 Jun 25 '13 at 8:24
  • 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 Jun 25 '13 at 8:40
  • 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 Jun 25 '13 at 9:00
1

From the API page that you linked:

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

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.