How to use litecoin testnet on fully synced litecoin core on amazon ec2 instance

0

I run a synced litecoind on amazon ec2 linux instance.

[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoind -version
Litecoin Core Daemon version v0.13.2.1  

[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoin-cli getblockcount
1411130

I tried starting daemon with below commands

  • litecoind -testnet -daemon
  • litecoind -daemon , then litecoind -testnet

I want to get litecoin testnet address to test sending LTCT. But when I generate address i get litecoin address. How can I use this core to switch between main net and testnet ?

UPDATE

[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoind --testnet --daemon
Litecoin server starting
[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoin-cli getnewaddress
error: couldn't connect to server

top command shows litecoind running.
5787 ec2-user 20 0 786m 26m 288 S 1.0 2.6 0:00.63 litecoind

Is it okay if i kill the daemon ??

Please Help!

SMJ

Posted 2018-04-27T11:35:39.483

Reputation: 121

Answers

0

litecoind --testnet --daemon

Should be all you need to start in testnet and run as a daemon

Fuzzybear

Posted 2018-04-27T11:35:39.483

Reputation: 447

How will I generate address ? litecoin-cli getnewaddress gave a "Lfq6zA5aTkRNPyBTUAPcevazpupvfkUXnK"SMJ 2018-04-27T12:29:58.003

How to check if this is LTCT address ?SMJ 2018-04-27T12:30:31.580

LTC testnet address should start with an n or m... so that is not a testnet LTC addressFuzzybear 2018-04-27T13:17:53.463

Can I generate testnet address with litecoin-cli getnewaddress command ?SMJ 2018-04-27T13:19:38.303

yup few instructions are here you might find useful https://www.coinpayments.net/help-testnet

Fuzzybear 2018-04-27T13:22:31.197

I actually I wanted to send some LTCT from coinpayments to my core and check whether it goesSMJ 2018-04-27T13:24:12.630

can u try 'litecoin-cli getnewaddress -testnet' and see what that gives... I believe you will need to specify the testnet on each commandFuzzybear 2018-04-27T13:30:42.767

I still get address starting with LSMJ 2018-04-27T13:34:00.763

Hmm yeh you are def not on the testnet :( try stopping the daemon.. and restarting with the testnet commandFuzzybear 2018-04-27T13:36:10.877