Metadata-Version: 2.4
Name: netlithic-starter-kit
Version: 0.5.5
Summary: Starter kit for the Netlithic test network: make a wallet, run a node, help out, send test coins. Test coins have no value.
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=42
Dynamic: license-file

# Netlithic starter kit

Try the Netlithic **test network** from your own computer: make a wallet, run your own node, help the
network, check your points, and send a test transfer. Works on Mac, Linux and Windows.

> **Test coins have no value.** This is a test network. It can be reset at any time.

## 1. Install (one command)

You need Python 3.10 or newer ([python.org](https://www.python.org/downloads/)). Then run one command. The kit is a single
file (a "wheel") that anyone can download, so there's nothing to sign up for:

```
pipx install https://github.com/Netlithicchain/netlithic-testnet/releases/download/starter-kit-v0.5.5/netlithic_starter_kit-0.5.5-py3-none-any.whl
```

Don't have pipx? Plain pip does the same job (best inside a virtual environment):

```
pip install https://github.com/Netlithicchain/netlithic-testnet/releases/download/starter-kit-v0.5.5/netlithic_starter_kit-0.5.5-py3-none-any.whl
```

The same file is also available from the test network's site: https://testnet.netlithicchain.com/starter-kit/

Check it worked:

```
netlithic --version
```

(On Windows, if `netlithic` isn't found, close and reopen the terminal, or use `py -m netlithic_kit` instead.)

## 2. Make a wallet

```
netlithic wallet new
```

It makes a wallet called `main` and shows your **address**, like an account number. It is safe to share.
Your **secret key** stays on your computer, in a file only you can open. Nobody, including us, can get it back
if you lose it, so save a copy somewhere private:

```
netlithic wallet backup main my-wallet-backup.json
```

Want a second wallet? `netlithic wallet new savings`. See them all with `netlithic wallet list`.

## 3. Run your own node

```
netlithic run
```

Your node copies the test network from the public servers. The first time it takes a few minutes, and it prints
how far along it is ("block 2400 of 6900"). When it says **Connected and up to date**, you are on the network.
Leave the window open while you use it. Press **Ctrl-C** to stop. Next time it starts quickly.

Only want to copy the network once and stop? `netlithic sync`.

## 4. Help the network (optional)

```
netlithic run --mine-to main
```

This also **mines** test blocks, and the rewards go to the wallet you name (or any address). It waits until your node has caught
up, then makes one try about every minute. Please keep it gentle; the kit won't go faster than once every 10 seconds on the public network.

## 5. Check on things

```
netlithic status      how the network and your node are doing
netlithic balance     your test coins and your points
```

Points are how the network keeps track of who has helped. You earn them by mining blocks and sending transfers.

## 6. Send a test transfer

Get some free test coins from the public faucet (one request per address per day):

```
netlithic coins
```

Wait about a minute, check with `netlithic balance`, then send some to another address, or to another of your own wallets:

```
netlithic send <address-or-wallet-name> 2.5
```

It shows you what it is about to do and asks before sending (use `--yes` to skip the question). Your wallet signs the transfer
on your computer; only the signed transfer is sent.

## Where things are kept

| What | Where |
| --- | --- |
| Windows | `%LOCALAPPDATA%\Netlithic\starter` |
| Mac | `~/Library/Application Support/Netlithic/starter` |
| Linux | `~/.local/share/Netlithic/starter` |

Inside: `wallets.json` (your secret keys, owner-only; never share it), `node/` (your copy of the chain) and `node.log`.
Use `--home FOLDER` to keep everything somewhere else. Your node listens only on your own computer (port 47120; change it with `--port`).

## If something goes wrong

- **"Port ... is already in use"**: another node is running. Close it, or pick another port: `netlithic --port 47130 run`.
- **"Can't reach the Netlithic test network"**: check your internet connection and try again in a minute.
- **Stuck or odd after a crash**: run `netlithic run` again. If your saved copy of the chain can't be used, the node sets it aside in a
  backup folder and downloads it again. Your wallet is never touched.
- The last lines of `node.log` are printed if your node can't start. Share those (never `wallets.json`) when asking for help.

## For builders

- The kit adds **no rules of its own**. It packages the repository's node and wallet code unchanged, so the network's rules
  (points and difficulty fingerprints `4f2922c0…` / `06df462a…`, version 0.5.5, chain `netlithic-dev-1`) are the same ones the network runs.
- Run `netlithic <command> --help` for every option. The full command-line tool for node operators is still `netlithic.py` in the repository.
- Working from the source code instead? `pip install -e .` in the repository root.
