Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: joelnet on July 12, 2011, 04:51:53 AM



Title: C# - Creating a unique bitcoin address for each user
Post by: joelnet on July 12, 2011, 04:51:53 AM
I have a website (c# asp.net mvc) that has users.

i need to create a system like the one mt.gox setup.

i want each user to have a unique address to send bitcoins to.  those coins will be credited to their accounts.  each transaction will result in them receiving a new address.  old addresses will continue to work for their account.  credits will appear after X many confirmations.


i'm not familiar with bitcoin development and am looking for open source solutions or developers.

help!


Title: Re: C# - Creating a unique bitcoin address for each user
Post by: EricJ2190 on July 12, 2011, 05:12:21 AM
You con control Bitcoin and generate addresses with the JSON-RPC API (https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)). As for keeping track of users' addresses, you can either use separate accounts (https://en.bitcoin.it/wiki/Accounts_explained) in Bitcoin or just keep track of them in some sort of database yourself.


Title: Re: C# - Creating a unique bitcoin address for each user
Post by: Keninishna on July 12, 2011, 05:13:19 AM
its pretty easy to do actually, check online for json rpc client examples in c# then just connect to the bitcoind server and call getaccountaddress($nick) it will automatically generate a sub wallet address for that user if they don't have one.


Title: Re: C# - Creating a unique bitcoin address for each user
Post by: joelnet on July 12, 2011, 05:58:01 AM
i'll be managing the account myself.

ok.  so it sounds like i need to start with running the bitcoind server.  i'll check that out.