Validator / Lightning Node Setup
Script Network / Script Node
Script Network is based on nodes and made only by the aggregation of more and more nodes, we call them lightning nodes because they are responsible for block finalization and blockchain settlement.
The accountability is trusted because the network is resilient against attacks or games executed by evil nodes without single-points-of-failure.
Blockchain implies nascent technology that leverages untrusted nodes that are publicly executing a distributed consensus algorithm in order to amazingly form a trustable, resilient and censorship resistant settlement system.
Benefits of running nodes:
Nodes are your tool for participating in consensus rounds, and obtain rewards based on staked amounts.
With a Node you can accept delegation requests, for which users that are not running nodes can participate in consensus with a profit-share model.
Control/automate anything related to your relation among other nodes in the Script Network and TV users
Use/customize your own wallet backend/frontend, e.g. automating interations with other’s wallets.
Use/customize your own blockchain explorer backend/frontend.
For improved privacy run your node in trusted hardware, e.g. the preferred choice for privacy-exigent users is to run the node in dedicated hardware. A VM in a datacenter or computer at home is a good-enough option for many.
Node Hardware/OS requirements
16 Gb HD
2 cores
8 GB Ram
Debian/Debian-based GNU/Linux Operating System.
[Advanced]: Build from sources
For developers, code enthusiasts and those who might not trust our pre-compiled distribution consider visiting our github repository.
Downloads
Provides access to different method for running a Linux node.
Support for node installations has been discontinued for platforms Windows and Mac.
Build and run your node in console mode. Ideal for developers.
Follow instructions at our github page: https://github.com/scriptnetwork/script-4
Install a precompiled OS/image on a fresh Operating System. Fully featured with Web GUI Wallet/Explorer interface. Ideal for professional or stable node runners.
Follow on-screen instructions until you reach the 1-liner installer. Copy that line.
Major sequence of steps to follow for stable installations:
1.- get debian-12 VM at datacentre. (e.g linode.com, digitalocean.com)
2.- ssh as root. (Priviledged access to the VM command shell).
3.- paste the 1-liner installer you copied from downloads page. Press Enter. (watch: this process is showcased in manic_beret’s asciinema video
4.- Provide your DNS domain (e.g. my_scriptnode.com) and public IP address.
5.- wait 1 minute… Voila! your node is up and running!.
5.5 - Play around with commands… it’s your node! everything is transparent.
6.- Stake your node.
You have successfully completed your node setup.
All following items check out:
ssh as root to your node. This action is perfomed ideally by muscle memory, but much better providing seamless experience is to set up passwordless authentication
switch to user ‘stv’ and go to home directory /home/stv (
su stv
,cd
)run the program
scriptcli
The program stv
described below provides a function for starting a software upgrade automatically.
Node bash shell
About GNU/Linux
Main SYSOP interface: Text Command-line console, also known as shell.
Linux prompts. Line Prefixes is given by the computer to indicate us context: user and path
SYSOP role operates under user root
, and can control all aspects of the operating system. This prompt indicates that our path in the filesystem is /root
(root
home directory)
This prompt indicate we are SYSOP, although our current path in the filesystem is /home/stv
(stv
user’s home directory again)
Finally, this prompt indicates our hat is Script-Network user
and that our current directory is home (/home/stv
)
SYSOP Role/hat: user root
Available commands for SYSOPs:
SCRIPT P2P Network User/Community Role/hat: user stv
Changing to user stv from root
Returning back to root
user (SYSOP mode)
If you exited change again to user stv. The following command are defined in the file .bashrc as aliases and active only during sessions as user stv:
These two commands are the lowest-level console interface to operate the script L1 private and public daemons respectively.
L1. core applications
scriptcli - Core Wallet Client
the scriptcli command must be executed as user stv
.
use this command to check the status:
From the returned information we learn:
The core wallet manages the node_address. It can be verified:
We can use the scriptcli command line tool to send Script tokens from one address to another by executing the following command.
The balance of an address can be retrieved with the following query command, after the transaction has been included in the blockchain, it should take only a few seconds.
Now let’s send 20 more Script tokens. We need to increment the seq
parameter. The sequence seq
is a monotonic counter associated with each account determining the transaction execution order.
We can query the recipient address again to verify the account balance changes calling scriptcli query account
.
Account/Key Management
The scriptcli is a wallet that can manage keys for multiple accounts.
Create a new account/address and store the key in ~/script4/wallet/keys:
List all the keys in the wallet:
Delete the account/address.
Invocation of script
and scriptcli
programs are meant to be done always as user stv
from its home directory (stv:~$
or stv:/home/stv$
).
Your keys are stored in directory /home/stv/script4/wallet/keys/plain
As protection against loss, it is encouraged to backup the keys directory.
testnet Faucet:
Obtain funds from script.tv
It’s natural we want to fund our node address.
If we run a testnet node we would use a faucet
or token fountain, usually found in testnet nodes.
Every script node has a faucet service that would kindly transfer you funds on request. No questions. The objective of testnet is to give users the opportunity to test the system with ‘play money’
However if we run a mainnet node we would use an exchange and buy tokens instead.
Before asking the faucet let’s use an address we control.
If you wanted to fund this-node address, your node, such address can be obtained in the following way:
Our address can be found on the response, 0x8d1F3236d790415d631d554091dE7A25913FB561
.
Let’s then invoke stvtool to obtain funds for this aforementioned address, we do it with the command query_faucet, passing the recipient address as argument:
The command can be repeated as many times as wished up to a balance limit of 1M. We can easy earn tokens this way.
By feeding with tokens your node address
your faucet is automatically enabled using it as source of funds and making the faucet service available to other participants in the script network.
After a few seconds from ordering the transfer we can check our balance:
Which effectively shows the expected amounts given to us by the remote faucet.
Removing 18 trailing zeroes we obtain our balance of tokens (provided you called the faucet 12 times)
The command will use by default the Script Network reference Node at https://backend-wallet-testnet.script.tv
Other nodes offer the same service on URsL:
Last updated