Hey Guys,
I know this should probably be in the Development section but I am not able to post there because im a newbie to this forum.
Anyway, I am trying to mess around with opening a webpage for users to hold their wallet. I am a little bit confused about a few things that I hope somebody can help me clarify. I understand how to install bitcoind on a VPS and and fluent in PHP. Below are the questions.
These questions pertain to using the jsonRPCClient with PHP.
1) Is it possible to create wallets for my users using PHP? I am a bit confused on whether or not a Wallet is an actual thing that needs to be created with bitcoind or functions as an account in which you just keep track of all of your clients or your own transactions, balances, addresses etc and is just called a "wallet". Almost like a profile.
2) I understand how to get new addresses by using PHP. But I am curious on how an account is assigned. For example, to get a new address you use the getnewaddress (account) function. Can that account name be specified or does it generate from bitcoind? This seems strange to me if it would allow you to specify the account name considering the account name could already be taken and would just give an error.
3) When you are using PHP to generate an address for yourself or your customer where does the private key go? The API Call List that I am looking at (
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list) does not say anything about a private key. Is a private key required in order to send transactions to another address? This is very confusing to me and I cant seem to find an answer. What I do see is using $bitcoin->sendtoaddress(<bitcoinaddress>, <amount>); to send coins, but again no mention of a private key.
Thanks in advance!