Run a Smart Vault Node

Connecting to the Test Network

You will initialize and connect your node to the Lightstreams test blockchain network called Sirius. The nodes use the blockchain network for deploying and controlling smart contracts.
Smart Vault uses smart contracts for managing files access permissions.

Initialize the node

leth init --nodeid=1 --network=sirius --lightclient=true --blockchain_url= --federation=false --demo=true
This command initializes a node in "Light client" mode, connecting to the Lightstreams Test blockchain network, Sirius. In Light client mode, syncing to the blockchain network is skipped and blockchain operations are routed to a full blockchain node located at: If you would like to synchronize the complete blockchain locally, which will take some time, then see: Run a Smart Vault with the Full Blockchain

Start the node

leth run --nodeid=1 --network=sirius --https
2020-03-30T16:49:46.650+0200 INFO lethnode/node.go:162 Starting Leth Node online/offline services...
2020-03-30T16:49:46.652+0200 INFO lethnode/node.go:186 Starting Leth Blockchain online service...
2020-03-30T16:49:46.653+0200 INFO lethnode/node.go:189 Waiting for Leth Blockchain service to start...
2020-03-30T16:49:46.822+0200 INFO lethexec/exec.go:21 LN-SIRIUS: Running '/Users/enchanterio/go/bin/lightchain' with args: 'lightchain, run, --datadir=/Users/enchanterio/.lightstreams_2/sirius, --tmt_rpc_port=26757, --tmt_p2p_port=26756, --rpc, --rpcaddr=, --rpcport=8645, --rpcapi, eth,net,web3,personal,debug, --rpcvhosts=localhost, --rpccorsdomain=*, --ws, --wsaddr=, --wsport=8646'
2020-03-30T16:49:56.653+0200 INFO lethnode/node.go:192 Connecting to SIRIUS network...
2020-03-30T16:49:56.664+0200 INFO lethnode/node.go:448 Ethereum client is now fully synced and available!
2020-03-30T16:49:58.197+0200 INFO lethnode/node.go:230 Starting Leth IPFS online service...
2020-03-30T16:49:58.198+0200 INFO lethnode/node.go:233 Starting Leth RegistryDB offline service...
2020-03-30T16:49:58.199+0200 INFO lethnode/node.go:240 Starting Leth SmartVault online service...
2020-03-30T16:49:58.199+0200 INFO lethregistry/registry.go:323 RegistryDB is at the latest migration version {"version": "1"}
2020-03-30T16:49:58.225+0200 INFO lethnode/node.go:270 Starting Leth HTTP online service on port 9092...
2020-03-30T16:49:58.225+0200 INFO lethnode/node.go:254 Starting Leth RevokedFiles offline service...
2020-03-30T16:49:58.225+0200 INFO lethnode/node.go:265 Starting Leth TokenCache offline service...
2020-03-30... All Leth online/offline services are up and running!
By running the Smart Vault node with a --https flag, you can control the node via a build-in HTTP server interface. Checkout our HTTP API documentation to learn about all the possible Smart Vault features such as: user manager, storage, wallet, acl manager or a shop module for monetizing your content.
By running the Smart Vault node with a --demo flag, you can use the demo interface by navigating to: http://localhost:9091/

Stopping the node

You can stop a node at any time by pressing Ctrl+C

OPTIONAL: Create a Second Node

Smart Vault is all about peer-to-peer content sharing. If you are interested in Smart Vault, sooner or later you will want to share a file between two nodes. To have two Smart Vault nodes running locally on the same computer to test the peer-to-peer behaviour of sharing files then run the following commands:

Initialize the node

In a new command window, start the second node:
leth init --nodeid=1 --network=sirius --lightclient=true --blockchain_url=

Start the node

Run the secord node:
leth run --nodeid=2 --network=sirius --https