Guides / Run a Litecoin testnet node

Run a Litecoin testnet node

Running your own node is the best way to understand a blockchain, and the Litecoin testnet is light and fast to sync. This guide walks through getting one going and driving it over RPC.

On this page

Why run a node

A node lets you validate the chain yourself instead of trusting a third party, and it gives you full RPC access to explore and broadcast. The Litecoin testnet is small, so it's a friendly first node. MWEB is built into Litecoin Core, so you get that too.

Install

Download Litecoin Core from the official Litecoin project and install it. It ships two programs you'll use: litecoind (the daemon) and litecoin-cli (the command-line client).

Configure

Create a litecoin.conf. A minimal, safe testnet config:

# litecoin.conf
testnet=1
server=1

[test]
# Bind RPC to localhost only (this is the default; shown for clarity)
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
# Prefer cookie auth (auto-generated .cookie) over a plaintext password

Leaving rpcpassword out means Litecoin Core uses cookie authentication: it writes a temporary .cookie file that litecoin-cli reads automatically. That's safer than a password in a config file. The [test] section scopes settings to testnet.

Start & sync

litecoind -testnet                       # start the daemon
litecoin-cli -testnet getblockchaininfo  # check sync progress

Watch the block height climb until it matches the network. When getblockchaininfo shows you're at the tip, you're synced.

Use it

litecoin-cli -testnet getnewaddress          # a fresh receive address
litecoin-cli -testnet getbalance             # your balance
litecoin-cli -testnet sendtoaddress <addr> 0.1
litecoin-cli -testnet sendrawtransaction <hex>   # push a signed tx

Fund your address from the faucet, then see broadcasting a raw transaction for the hands-on path.

Never expose RPC to the internet

Even on worthless testnet, an exposed RPC port is a bad habit that has drained real wallets on mainnet. Read use node RPC safely before you open anything up.

The same pattern works for Bitcoin (bitcoind -testnet4, see the Bitcoin guide) and Monero (monerod --stagenet, see the Monero guide).

Litecoin testnet ports

P2P port19335
RPC port19332

Testnet coins are fake money

  • They have no market value, so never buy or sell them.
  • Never use a real seed phrase or import a real wallet on testnet.
  • Never send mainnet BTC, LTC, or XMR to a testnet address.