<p>Technically you don't <em>need</em> to have an updated blockchain to receive coins: just create an address and anyone will be able to send to that address. Until the blockchain is updated, you won't see those incoming coins, so you won't be able to spend them, but you will as soon as the update finishes.</p>

CC BY-SA 3.0
2013-03-18T16:33:41.203Z
2013-03-18T16:33:41.203Z
o0'.
<p>I am a real noob with bitcoin and bitcoin. I have a lot of questions and I don't know where to start. Let me try.</p>

<p>I have a bitcoin-qt client and I downloaded the chain (took me one day) and now I am playing with bitcoinj.</p>

<ul>
<li>Can I use the block chain downloaded with bitcoin-qt with bitcoinj ? If yes how ?</li>
</ul>

<p>I created a wallet with bitcoinj client and I get the adress inside it and send money from my bitcoin-qt client to this address.</p>

<ul>
<li>Do I need to download the block chain to receive this btc ? </li>
</ul>

<p>There is this code: </p>

<pre><code>// We want to know when the balance changes.
wallet.addEventListener(new AbstractWalletEventListener() {
    public void onCoinsReceived(Wallet w, Transaction tx, BigInteger prevBalance, BigInteger newBalance) {
        // Running on a peer thread.
    }
}
</code></pre>

<ul>
<li>Do this code need the block chain ?</li>
</ul>

<p>Thanks for your answers and the help.</p>

<blockchain><wallet><bitcoin-core><bitcoinj>
How to receive transaction in bitcoinj wallet
Baptiste Pernet
# How to receive transaction in bitcoinj wallet

(Asked by: username_0 on 2013-03-18)

I am a real noob with bitcoin and bitcoin. I have a lot of questions and I don't know where to start. Let me try.

I have a bitcoin-qt client and I downloaded the chain (took me one day) and now I am playing with bitcoinj.

* Can I use the block chain downloaded with bitcoin-qt with bitcoinj ? If yes how ?

I created a wallet with bitcoinj client and I get the adress inside it and send money from my bitcoin-qt client to this address.

* Do I need to download the block chain to receive this btc ?

There is this code:

```
// We want to know when the balance changes.
wallet.addEventListener(new AbstractWalletEventListener() {
    public void onCoinsReceived(Wallet w, Transaction tx, BigInteger prevBalance, BigInteger newBalance) {
        // Running on a peer thread.
    }
}

```

* Do this code need the block chain ?

Thanks for your answers and the help.

**Tags:** blockchain, wallet, bitcoin-core, bitcoinj


---

## 1 answers

### Answer by username_1 on 2013-03-18. Score: 1 | Accepted answer

Technically you don't *need* to have an updated blockchain to receive coins: just create an address and anyone will be able to send to that address. Until the blockchain is updated, you won't see those incoming coins, so you won't be able to spend them, but you will as soon as the update finishes.


---

