πŸ”―Nodes

Script Network / Script Node

Script.tv crypto 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: * Node runners are the real actors in web3. * Nodes are your tool for participating in consensus rounds, obtaining rewards based on staked amounts. * Nodes can accept delegation requests, for which users that are not running nodes can participate in consensus in a profit-share model. * Control/automate anything. * 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 Giveaway Winners + NFT holders - March 2025

https://docs.google.com/spreadsheets/d/1ENYCiQ4GZh6ncA47E8pSTlPrSJQFstI8abq-bi0Sg1k/edit?usp=sharing

Node Hardware/OS requirements

  • 16 Gb HD, 2 cores, 8 GB Ram

  • Debian 12 GNU/Linux Operating System.

How To Start Running a Lightning Node

The Easiest way: NaaS

Using a Node-as-a-Service (NaaS) service provider consists in delegating all technical aspects to a service provider.

Nodeops providers who support Script Network nodes:

The 1liner Installer

You would allocate a debian Operating system and run the 1-liner installer, converting it into a node in minutes.

The downloads screen provides access to different method for running a node.

Support for node installations has been discontinued for platforms Windows and Mac.

Here are the steps: https://download.script.tv

screenshot__downloads_1liner

This is the sequence of steps for a manual installation:

  • 1.- get a debian-12 VM in a datacentre or as a raspberry pi or headless computer. (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.

  • 5.- wait for a few minutes… Voila! your node is up and running!.

  • 6.- Follow on-screen instructions on further step like licensing and staking your node.

stv - The CLI interface

stv is the command you’d use to operate the node.

Have a detailed explanation of its functions in the sysop manual, available at

sysop_manual

script_tv__stvtool_manual.pdf

A walkthrough video is also available at

https://x.com/manic_beret/status/1865704546011377953

More on stv below.

Developer node

  • Build it all from sources. for devs and devops.

Follow instructions at our github page: https://github.com/scriptnetwork/script-4

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

screenshot__user_node_root_login
  • switch to user β€˜stv’ and go to home directory /home/stv (stv)

  • run the program stv

screenshot__user_node_stv_scriptcli

Automatic software updates

Automatic software updates feature is enabled by default. It can be disabled deleting the file /etc/cron.d/script_tv_updates and restating cron: systemctl restart cron

Check the Release Notes.

The document can also be found in the node at /var/script_tv/release_notes.md

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/nodeop Role/hat: user root

Available commands for SYSOPs:

SCRIPT P2P Network. Nodeops the linux user stv

Changing to user stv from root

Returning back to root user (SYSOP mode)

stv - the CLI Command-Line-Interface to the script network

the stv command is an alias to the program bin/stvtool. It must always been executed as user stv.

Some of the commands are mentioned here below, but the full documentation for stv with all its functions can be found at

sysop_manual [script_tv__stvtool_manual.pdf](https://download.script.tv](https://download.script.tv/files/script_tv__stvtool_manual.pdf)

check the status:

From the returned information we learn:

  • Our node address is 0x8d1F3236d790415d631d554091dE7A25913FB561

  • we are on testnet network

  • our peer_id is our node address, for node-node communications.

  • The genesis block hash 0x42a81f3f7ef0a5297997c8428ae945d5176f07082224b006f1979a5ebbe2744c must match on all nodes of this network.

  • Other information about the chain: block height, last block (current_hash).

  • Syncing indicates the type of activity that is going on. true/false indicates whether an sync activity is ongoing or not.

Your keys are stored in directory /home/stv/script4/wallet/keys/plain

As protection against loss, we encourage you to backup the keys directory.

Backup

Use stv backup to produce a downloadable file with your keys: It provides with scp commands ready to be executed in remote computers to fetch the backup, either from inside the LAN or from internet (WAN).

testnet Faucet:

Obtain testnet tokens from our faucet at script.tv

Every script node has a faucet service that would -kindly- transfer you funds on request. The objective of testnet is to give users the opportunity to test the system using β€˜play money’.

However if we run a mainnet node we would use an exchange and buy tokens instead.

Using stv CLI tool you would invoke faucet this way:

And seconds after verify balance:

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.

Lightning node. Main setup workflow.

Lightning nodes are nodes that cooperate securing and guaranteeing its resilience and reliability, forming a trustable network of untrusted nodes, following the breakthrough by Satoshi Nakamoto.

In order to become one your just installed node must be upgraded.

The steps for upgrading the software are:

  • acquire 20.000 SCPT (or tSCPT for testnet)

  • purchase a Lightning license.

  • stake the node.

With the stv interface:

An example of such run is:

Lightning node. Alternative setup workflow. Node Sale - FlowHale/easeFlow

screenshot__nodesale

For those who have purchased a license via https://nodesale.script.tv

the steps for upgrading the node to lighning are:

The redeem function will give you a personalized URL you would use to prove the ownership of the wallet with which you did the purchase. Once verified you would obtain a lighniung license for the node.

bring the given URL to the browser holding your wallet (the same wallet you used to purchase) https://redeem-mainnet.script.tv/?ssid=XXeinGjNKa2e1aNRBzbObIIdf0vqZ3fKQQ3Kg1yA7nQflg4K2Ke8nzfMUUNgjwDAoj&msg2=yb2niry46wg6b34j5b9p7v

Follow these 3 steps * connect wallet * sign message to prove ownership * back to stv with further steps explained on screen

screenshot__redeem1 * connect wallet

screenshot__redeem2 * sign message to prove ownership

screenshot__redeem3 * back to stv with further steps explained on screen

[Advanced]: Build from sources

For developers, code enthusiasts and those who might not trust our pre-compiled distribution consider visiting our github repository.

RPC API

The following endpoints are available for testnet nodes:

Subsystem ethereum bridge

script.CallSmartContract

Simulates the smart contract execution locally without submitting the smart contract transaction to the blockchain. It is useful to evaluate the execution result, calculate the gas cost, etc.

Subsystem backend wallet - be/wallet

API RPC function Spec:

Subsystem backend explorer - be/explorer

API RPC function Spec:

Testnet Node. Browser. Fund new wallet accout from your faucet

We learnt how to fund the node account in the previous section. In this section we will learn to fund a new account from our own faucet.

Go to https://wallet-testnet. and create a new wallet. Save the keystore in a controlled directory and login.

As you unlock the wallet you’ll see the address at the top of your screen besides the label β€œMy address”. In this example we’ll assume it is 0xeeF1966D1b39E35A08975255138A020239Ea30d6.

Rehearsing

Balances should show up zero.

Click Receive - Faucet, then confirm and wait 15 seconds to see your balance updated.

screenshot__receive_from_own_faucet

We can check the node account has been decreased in the same amounts - off by 0.000001 SPAY fees

Your node account has payed for your faucet transfer of 1000 SCPT + 100 SPAY, and its balance is now:

Testnet Node. Browser. Send Funds to a given accout.

From your web wallet let’s give back 500 SCPT to anyone, for example our node address (0x8d1F3236d790415d631d554091dE7A25913FB561)

Click Send buttond and fill the fields:

screenshot__send_scpt_own_node

The transaction should be reflected on screen in seconds, and on the recipient account

We can confirm we received 500 SCPT from the browser wallet.

Testnet Node. Shell. Send Funds from your node wallet (the wallet safeguarding the node key).

In order to make transfers from console you’d need to have available the source and recipient addresses and the sequence number of the source account, the account where source funds sit.

In our case, the source address is our node account (0x8d1F3236d790415d631d554091dE7A25913FB561), and the recipient address is our browser-wallet address (0xeeF1966D1b39E35A08975255138A020239Ea30d6).

We obtain the sequence number using the source address:

For the sequence value we will take the value of the field β€œsequence” plus one, as we obtained β€œ1” we will then use sequence number 2.

For the amount we will transfer 10000 SCPT.

At this point your browser wallet should show this balances:

screenshot__browser_wallet_ready2stake

With a balance of 10000 SCPT you can stake your lightning node from the browser wallet.

Testnet Node. Browser. Stake your lightning node.

Click on On-Chain Stakes, then Deposit Stake and then continue with Lightning Node.

screenshot__browser_wallet_stakes_io

In the following screen click on the helper button labeled This node to autofill the node fingerprint with the one corresponding to this node (double check URL to make sure which node you’re operating with and which one you want to stake).

Enter 10000 SCPT.

The node fingetprint can alternatively be obtained on the shell in the field β€œSummary” of the response.

screenshot__browser_wallet_stake_deposit_form

Confirm

screenshot__browser_wallet_stake_confirm

You will verify after a few seconds that sadly your balance has dropped, as it can be seen on your explorer:

We can pay a visit to the explorer to do some verifications.

You can use either your explore (serviced by your node) or any other node including the one behind script.tv. https://explorer-testnet.<your domain|script.tv>/account/0xeeF1966D1b39E35A08975255138A020239Ea30d6

As a result of your transaction you are queued waiting for inclusion.

If you are like me you would need to access such queue and check my address is reflected there.

We would need first to obtain the current_height of the blockchain:

With it, we can print the waiting queue querying lcp (Lightning Candidate Pool):

We can be pleased to find our candidacy included in this list.

screenshot__explorer_browser_wallet_address

Our balance of 500 SCPT, 100 SPAY checks out.

We easily spot our last transaction Deposit Stake.

Node Web2.0 Interface

Script Web Wallet

https://wallet-testnet.script.tv

Wallets are privacy-first programs that manage your β€œsecrets”, among them are your keys, used to unlock addresses and needed to move tokens around.

The Script Wallet can be found on any node. Script Network node provide the following URLs for the wallet service:

Your secrets, represented by the keystore file, are never transmitted throught the wire. and shall be backed up and kept secret by the user.

Access the wallet using the main menu of the desired network, e.g. Testnet -> Testnet wallet.

screenshot__script_wallet_unlock

Creating a new wallet

New users would need to go through the process of creating a new keystore file.

Click the link β€œcreate a wallet” that you’d find at the bottom of the unlock-wallet screen.

Complete a set of easy steps following on-screen instructions.

This process will end-up in a keystore file containig your secret keys.

It’s your responsibility to safeguard this file, keeping it backed up and secret being aware that leaked secrets may produce loss of tokens.

Unlocking your wallet

3 methods are available to get access to your funds.

  • keystore

You would normally unlock your wallet using your keystore file. In case this file is lost or not accessible the process can alternativamente be fulfilled using two remaining recovery methods.

  • mnemonics

During the process of creating the keystore a copyable paragraph is also created as an alternative method to unlock the wallet.

  • Private key

Raw secret keys (found in the keystore file) can be used as an alternative method to unlock the wallet.

Main wallet screen

screenshot__wallet__new

Informational fields:

At the top of the window is permanently shown the following information together with copy-to-clipboard buttons.

  • This Node address: is the address of the node providing the backend service.

  • My address: is your address unlocked from your private keystore

Balances

This screen shows your SCPT and SPAY balances and the history of transactions.

screenshot__faucet_transfer

Receive (faucet). (Only Testnet).

screenshot__receive_faucet

Faucet is a testnet-only feature that allows testing applications and mature monet-handling algorithms using play money, instead of risking real-money in the mainnet. Only if your current balance is under 100000 SCP every time to click on Receive button 1000 SCPT and 100 SPAY are transferred to your balances. # 15 seconds after clicling the receive button you balance screen would reflect your new balances and a new entry in the transaction history list.

On-Chain Stakes

Invest in the network. The network will reward you.

Deposit

screenshot__deposit_stake_menu

Select lightning node and continue.

Explorer

screenshot__explorer_home

Last updated

Was this helpful?