<p>It looks like the code that you're running expects to be able to connect to localhost and download the blockchain. Since there is no litecoin instance listening locally, this will not work.</p>

<p>Install <a href="https://litecoin.org/" rel="nofollow noreferrer">litecoin</a>, and run it.</p>

CC BY-SA 3.0
2017-08-17T06:11:59.967Z
I Download the litecoin client and run it,this is litecoin wallet client , I want to use run litecoin java code , should I use litecoin wallet client and change this wallet network to test ?
Lee
CC BY-SA 3.0
2017-08-17T03:55:56.823Z
2017-08-17T03:55:56.823Z
Nick ODell
<p><a href="https://i.sstatic.net/nXzx5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nXzx5.png" alt="Use createWalletAPI buy litecoinj"></a></p>

<p>why in this line(peerGroup.downloadBlockChain();) I can't connection peer?? I'm confuse.</p>

CC BY-SA 3.0
2017-08-17T03:45:12.330Z
Do you have a local litecoind instance?
Nick ODell
CC BY-SA 3.0
2017-08-17T03:51:11.213Z
No,But I Download litecoinj in github,how can i get the litecoin instance client ? I gratitude that, buy the way, I run bitcoinj use the main.class in java, and i can see the bitcoin wallet , how can litecoind use it ? i'm confuse.
Lee
<litecoin>
How can i use litecoinj(carete wallet return public address &send money to another address)?
Lee
# How can i use litecoinj(carete wallet return public address &send money to another address)?

(Asked by: username_0 on 2017-08-17)

[![Use createWalletAPI buy litecoinj](https://i.sstatic.net/nXzx5.png)](https://i.sstatic.net/nXzx5.png)

why in this line(peerGroup.downloadBlockChain();) I can't connection peer?? I'm confuse.

**Tags:** litecoin

> **Comments:**
> **username_1**: Do you have a local litecoind instance?  
> **username_0**: No,But I Download litecoinj in github,how can i get the litecoin instance client ? I gratitude that, buy the way, I run bitcoinj use the main.class in java, and i can see the bitcoin wallet , how can litecoind use it ? i'm confuse.  

---

## 1 answers

### Answer by username_1 on 2017-08-17. Score: 1

It looks like the code that you're running expects to be able to connect to localhost and download the blockchain. Since there is no litecoin instance listening locally, this will not work.

Install [litecoin](https://litecoin.org/), and run it.

> **Comments:**
> **username_0**: I Download the litecoin client and run it,this is litecoin wallet client , I want to use run litecoin java code , should I use litecoin wallet client and change this wallet network to test ?  

---

