This question might have already been answered. If so, can someone send me the link to it.

Let's say I create a blockchain wallet. It gives me a bitcoin address to deposit coins. Once I send bitcoins to the address that is given how does the system know what account is associated with that bitcoin address.

I wanted to develop a site where you can deposit bitcoins into your account and I want to know how that is done.

  • I suggest you not to create any such site if you cannot figure that out (no sarcasm I swear but you should not) Feb 24, 2014 at 9:51

1 Answer 1


There are no accounts as far as the block chain is conerned. A transaction will show up in any wallet that contains a private key associated with one of the transaction outputs. So if you create a wallet, export the private key and then import the private key into a different wallet, a transaction sending coins to the address associated with that private key will show up in both wallets. Either wallet can spend the coins although this can lead to synchronization problems with the other wallet.

A wallet is responsible for scanning the block chain and recognizing relevant transactions. If the wallet is online, it is notified when a new block is broadcast so that it can update its wallet transactions. if the wallet is offline, it needs to scan the block chain when it comes online to pick up any blocks that it missed.

So the answer to your question is the private keys control which wallets contain a specified transaction. In your case, you would need to create a different private key for each of your customers.

  • Thanks. could you send me a link to where I can find out how to write a script to create a private key for each account that registers.
    – user11419
    Dec 26, 2013 at 2:24
  • The Bitcoin client (bitcoind or Bitcoin-Qt) will create a private key and assign it to an account using the getnewaddress RPC command. If you are using some other means to connect to the Bitcoin network, you'll need to check out the provided API. Dec 26, 2013 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.