Home Node Command Line Interface
Post
Cancel

Command Line Interface

Getting Started

Once SASEUL is installed, you can operate your node using the saseul-script CLI.

For Docker-installed nodes:

1
sudo docker exec -it saseul-node saseul-script <command>

For source-installed nodes:

1
2
cd <path-to-source>
./src/saseul-script <command>

To see a list of all available commands:

1
saseul-script help


Command Overview

Node Control

CommandDescription
infoDisplay node status.
startStart the node.
stopStop the node.
restartRestart the node.
killTerminate all running processes.
monitorDisplay live node status.
versionDisplay version.
logDisplay service logs.

Configuration

CommandDescription
envManage node environment settings.
miningManage mining settings.
walletManage wallets.

Network & Data

CommandDescription
trackerManage peers and update tracker data.
dataManage blockchain data and status.

Transactions & Requests

CommandDescription
sendtransactionBroadcast a transaction to the network.
localrequestExecute a smart contract method using local node data.
refineConvert accumulated resource into SL.


Node Control

info

Display the current status of the node.

1
saseul-script info

Example output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[Node]
  Version: 2.2.0.3
  Mining:  on
[Services]
  master: running
  peer_search: running
  block_sync: running
  chaining: running
  consensus: running
[Chain Status]
  Committed:        resource=2036197, main=3410001
  Fixed checkpoint: resource=2036183, main=3409963
  Branches: 2
[Main Chain]
  height: 3410001
  s_timestamp: 1773044862000000
  blockhash: 064c932d2b9b...
  transaction_count: 1
[Resource Chain]
  height: 2036197
  blockhash: 064c931f0d1c...
  difficulty: 720140924964913
  validator: 826922964218...
  miner: d2c6a8c5b212...
[Peers]
  Active: 107
  Staled: 483
[Miners]
  1. ef7dbd8ba726...
  ...
[Validators]
  1. 1776a8365493...
  ...
SectionDescription
NodeVersion and mining status.
ServicesService daemon statuses. All should show running.
Chain StatusBlock confirmation progress (see below).
Main / Resource ChainLatest block data for each chain. See Dual-chain architecture.
PeersActive and stale peer counts.
Miners / ValidatorsRecent consensus participants.

Chain Status fields:

  • Committed — latest height confirmed by validators. Re-org is possible at shallow depths.
  • Fixed checkpoint — height after which re-org is not allowed (~10 blocks behind committed).
  • Branches — number of chain branches currently tracked.


start / stop / restart / kill

Process control commands for the node.

CommandDescription
saseul-script startStart the node. Mining does not start automatically.
saseul-script stopStop the node gracefully. If the stop command fails, the process will be killed.
saseul-script restartRestart the node (executes stop then start).
saseul-script killForce-terminate all running processes. Use when stop is unresponsive.


monitor / version

CommandDescription
saseul-script monitorDisplay live node status in real time. Press Ctrl+C to exit.
saseul-script versionDisplay the current SASEUL version.


log

Display service logs.

1
saseul-script log [options]

Three log types are available:

OptionLog type
(default)Service logs
-e, --errorError logs
-m, --minerExternal miner logs

Combine with an action:

OptionAction
-f, --followStream logs in real time.
-n, --count <N>Show last N lines (0 for all).
-c, --clearClear logs. Requires --force in non-interactive mode.

Examples:

1
2
3
4
5
saseul-script log -f          # follow service logs
saseul-script log -e -f       # follow error logs
saseul-script log -m -f       # follow miner logs
saseul-script log -e -n 500   # last 500 error log lines
saseul-script log -m -c       # clear miner logs


Environment

env

Manage node environment settings.

1
saseul-script env <subcommand>
SubcommandDescription
getDisplay current environment settings.
endpointGet or set the node endpoint.
minerGet or set the miner address.

Running env with no subcommand also displays the current settings.

env endpoint

1
saseul-script env endpoint [options]
OptionDescription
-g, --getPrint current endpoint value.
-s, --set <value>Set endpoint (host:port or "anonymous").

env miner

1
saseul-script env miner [options]
OptionDescription
-g, --getPrint current miner address.
-s, --set <address>Set miner address. Use "wallet" for the primary wallet.


Mining

mining

Manage mining settings.

1
saseul-script mining <subcommand>
SubcommandDescription
startStart mining.
stopStop mining.
checkDisplay current mining status.
externalManage external miner mode.
gpuManage GPU miner process.

Running mining with no subcommand also displays the current status.

mining external

1
saseul-script mining external <command>
CommandDescription
checkDisplay external miner status.
onEnable external miner mode.
offDisable external miner mode.

mining gpu

1
saseul-script mining gpu <command>
CommandDescription
startStart GPU miner process.
stopStop GPU miner process.
checkDisplay GPU miner status.


Network & Peers

tracker

Manage peers and update tracker data.

1
saseul-script tracker <subcommand>
SubcommandDescription
refreshCollect peer list and update tracker data.
addAdd a peer host to the local tracker.
registerRegister this node with known peers in the tracker.
listShow current peer list and tracker status.
resetReset all tracker data.

tracker add

1
saseul-script tracker add [options]
OptionDescription
-p, --peer <endpoint>Peer endpoint (e.g. 1.2.3.4:8080, node.example.com:443). Required.

tracker list

1
saseul-script tracker list [options]
OptionDescription
-a, --allShow all available peers.
-s, --seedShow seed trackers only.
-p, --primeShow prime trackers only.
-q, --queueShow full peer queue (pending discovery).
-f, --fullShow full tracker data (no filters).


Data Management

data

Manage blockchain data and status.

1
saseul-script data <subcommand>
SubcommandDescription
checkCheck data consistency.
indexManage transaction index.
rebuildRebuild status database from block data.
resetReset all blockchain data.
rewindRewind blockchain to a specific resource height.

data index

1
saseul-script data index [options]
OptionDescription
-c, --checkCheck transaction index status.
-e, --enableEnable transaction index.
-d, --disableDisable transaction index.
-r, --rebuildBuild transaction index from block data.

Running data index with no options also displays the current index status.

data reset

1
saseul-script data reset [options]
OptionDescription
-a, --allReset all data (blocks, tree, status).
-t, --treeReset committed data only. Fixed chain data will not be affected.
-s, --statusReset status data only.

data rewind

1
saseul-script data rewind [options]
OptionDescription
-n, --height <int>Target resource height to rewind to.


Wallet

wallet

Manage wallets.

1
saseul-script wallet <subcommand>
SubcommandDescription
listList all available wallets.
createCreate a new wallet.
deleteDelete a wallet.
getinfoShow wallet details.
setdefaultSet the default wallet.
encryptSet a password for the wallet.
decryptRemove the password from the wallet.
dumpExport wallet data to a file.
importImport wallet data from a backup file.

wallet create

1
saseul-script wallet create [options]
OptionDescription
-n, --name <wallet_name>Name of the new wallet.
-k, --key <private_key>Optional private key for the new wallet.
-f, --forceOverwrite if a wallet with the same name already exists.

wallet delete

1
saseul-script wallet delete [options]
OptionDescription
-n, --name <wallet_name>Name of the wallet to delete.
-f, --forceSkip confirmation prompts.

wallet setdefault

1
saseul-script wallet setdefault [options]
OptionDescription
-n, --name <wallet_name>Name to set as the default wallet.

wallet encrypt

1
saseul-script wallet encrypt [options]
OptionDescription
-n, --name <wallet_name>The name of the wallet to encrypt.
-p, --password <new_password>The new password to set.
-o, --old <old_password>Current password if already encrypted.

wallet decrypt

1
saseul-script wallet decrypt [options]
OptionDescription
-n, --name <wallet_name>The name of the wallet to decrypt.
-p, --password <password>Current password of the wallet.

wallet dump

1
saseul-script wallet dump [options]
OptionDescription
-o, --output <path>Path to save the dump file.

wallet import

1
saseul-script wallet import [options]
OptionDescription
-i, --input <path>Path to import the data from.
-f, --forceSkip confirmation for overwriting.


Transactions & Requests

sendtransaction

Broadcast a transaction to the network by calling a smart contract method.

1
saseul-script sendtransaction [options]
OptionDescription
-c, --cid <string>Contract ID to call.
-m, --method <string>Method name to call.
-w, --wallet <string>Wallet name to sign the transaction.
-d, --data <string>Transaction data (JSON format).

Running without options displays the available methods.

Example — send SL:

1
2
saseul-script sendtransaction --method Send \
  --data '{"to":"<address>","amount":"10000000000"}'


localrequest

Execute a smart contract method using data stored in the local node. Unlike sendtransaction, this does not broadcast to the network — it queries local state only.

1
saseul-script localrequest [options]
OptionDescription
-c, --cid <string>Contract ID to call.
-m, --method <string>Method name to call.
-w, --wallet <string>Wallet name to sign the request.
-d, --data <string>Request data (JSON format).

Running without options displays the available methods.

Example — check balance:

1
saseul-script localrequest --method GetBalance
1
2
3
{
    "balance": "10000000000000000000"
}


refine

Convert accumulated resource (mining rewards) into SL.

1
saseul-script refine
This post is licensed under CC BY 4.0 by the author.