Command‑Line PacketCrypt Coin Wallet

Create, manage and use a PacketCrypt Coin wallet from the terminal. Installation, address generation, sending, folding, and FAQs all in one place.

What is packetcryptwallet?

packetcryptwallet (pktwallet) is the official command‑line wallet for the PacketCrypt (PKTc) network. It lets you create wallets, generate addresses, sync with the blockchain, send coins, fold small payments and more – all from a terminal. For mining it is the recommended wallet; never mine into an Electrum wallet.

First‑Time Installation

Downloading packetcryptwalletd (pktd)

Choose your OS and download the latest release from pktd releases:

PlatformPackageInstructions
Windows ‑windows.zip (e.g. pktd‑v1.4.0‑windows.zip) Unzip, open a command prompt, go to …/pktd/bin and run pktwallet.exe / pktctl.exe
macOS ‑macos.pkg (e.g. pktd‑v1.4.0‑macos.pkg) Double‑click the package, then run ./bin/pktwallet or ./bin/pktctl
Linux Debian/Ubuntu: pktd‑v1.4.0‑linux.deb
Fedora/RedHat: pktd‑v1.4.0‑linux.rpm
Arch/Manjaro: AUR package
Install via dpkg -i / rpm -i or yay -S pktd, then run ./bin/pktwallet / ./bin/pktctl

Creating a New Wallet

After the binaries are installed, create a wallet with the command below. Keep the 12‑word seed on a paper you cleansing later.

./bin/pktwallet --create

Launching pktwallet

Start the wallet and let it sync. Look for a line similar to:

1608294386 [INF] headerlogger.go:64 Processed 1 block… (height 702781 …)

Cross‑check the height value against the PKT explorer. A full sync can take 12+ hours for a fresh install.

Creating a New PKT Address

With pktwallet running, generate a receiving address:

./bin/pktctl --wallet getnewaddress

You will see a string starting with pkt1. That’s your address. To see balances of all addresses (including zero‑balance ones) use:

./bin/pktctl --wallet getaddressbalances 1 1

Running pktwallet

Simply launch the binary in the …/bin directory. Watch the logs for a sync message. When it’s caught up you’ll see a line like:

1608294386 [INF] headerlogger.go:64 Processed 1 block in the last 24.82s (height 702781 …)

Syncing from a new wallet may take 12 + hours; the balance will be inaccurate until the chain is fully up‑to‑date.

Creating a New PKT Address

In a separate terminal while pktwallet is running:

./bin/pktctl --wallet getnewaddress

Remember the address; every getnewaddress call adds a permanent entry in the wallet.

Installing / Starting a CLI Wallet (if you already have a wallet.db)

  1. Download pktd‑v1.5.1‑macos.pkg (or the appropriate release).
  2. Run the installer.
  3. Open a terminal and change to the pktd directory:
    cd pktd
  4. Create a wallet named wallet personal (replace the name as you wish):
    ./bin/pktwallet --create --wallet xxxx
  5. Enter a passphrase (or leave empty). Keep the seed and passphrase written down.
  6. Start the wallet: ./bin/pktwallet --wallet (whatever name you chose).

Common Operations with pktctl

Check Balance

./bin/pktctl --wallet getbalance
./bin/pktctl --wallet getaddressbalances
./bin/pktctl --wallet getaddressbalances 1 1

Unlock / Lock the Wallet

Unlock for a limited time (e.g. 120 s):

./bin/pktctl --wallet walletpassphrase <passphrase> 120

Unlock permanently (timeout 0):

./bin/pktctl --wallet walletpassphrase <passphrase> 0

To lock again: ./bin/pktctl --wallet walletlock. Be careful with special characters – wrap the passphrase in quotes.

Send Coins

Unlock the wallet first, then send to any address:

./bin/pktctl --wallet sendtoaddress pkt1xyz … 10

From a Specific Address (JSON array source)

./bin/pktctl --wallet sendfrom  10 '[""]'

Multiple source addresses can be used, e.g. '["addr1","addr2"]'. Windows CMD requires back‑slashes around the JSON: pktctl.exe --wallet sendfrom … [\"addr\"].

Sweep / Fold

Send 0 PKT to move everything into another address (or the same address to fold):

./bin/pktctl --wallet sendfrom  0 '[""]'

Folding Coins

Consolidate all mining payments into spendable coins. This is a normal transaction and may need to be repeated several times.

./bin/pktctl --wallet sendfrom 
0 '["
"]'

Alternative GUI Wallets

FAQs

I have several machines mining, do I need the wallet running on each machine?

No. The wallet only needs to be running on the machine where you send or fold coins. Mining can occur with any address as long as you control it.

Should I leave pktwallet running?

It is optional. Leaving it running keeps the node synced and speeds up pktctl operations, but remember to lock it when idle.

How often should I fold?

Folding consolidates the ~1440 tiny mining payments per day into spendable coins. Daily or every few days is common. Script it if you prefer.