Smart Vault CLI

Lightstreams Command Line Tool.

Leth is the Command Line Interface tool for interacting with a Lightstreams node and Smart Vault. Leth also exposes a HTTP API for accessing these same commands from a client.

leth

The Leth tool run at the command line.

leth [flags]

Options

  -h, --help   help for leth

acl

Features Leth Access Control List (ACL) capabilities such as granting file permissions.

leth acl [flags]

Options

  -h, --help   help for acl

acl grant

Grant an ACL permission to another account.

Usage:

leth acl grant --nodeid=1 --network=rinkeby --permission=read --acl=0xd966aa573f8AcBfEb3724B661B420c258ceA5D38 --owner=0xadC486F16F003897fb927e22438cb1b820f79879 --to=0xadc486f16f003897fb927e22438cb1b820f79879

Possible Outputs:

Options

acl grant-public

Grant a read access to everybody.

Usage:

Possible Outputs:

Options

acl revoke-public

Revoke a public read access from everybody.

Usage:

Possible Outputs:

Options

auth

Verifies that an authentication token is valid.

Usage:

Possible Outputs:

Options

docs

Generates LETH / usage docs based on code into the: 'docs/cmd/auto/generated'.

Options

init

Initializes new Lightstreams node for connecting to the chosen network.

Options

run

Runs full Leth node by spawning blockchain and IPFS daemons.

Options

shop

Features capabilities for selling/buying digital content.

Options

shop buy

Allows an account to purchase permission to access a copy of the digital content from a seller.

Usage:

Possible Outputs:

Options

shop create

Creates a smart contract for managing the sale of digital content.

Usage:

Possible Outputs:

Options

shop sell

Specifies digital content for sale that to the smart contract controlling access permissions to the digital content.

Usage:

Possible Outputs:

Options

user

Capabilities for managing a user's account.

Options

user signin

Generates an authentication token to be used verifying a user's identity.

Usage:

Possible Outputs:

Options

user signup

Creates a new user account.

Usage:

Possible Outputs:

Options

version

Returns the version of the Leth tool.

Options

wallet

Capabilities for managing a user's funds.

Options

wallet balance

Get an account balance in Wei.

Usage:

Possible Outputs (3ETH):

Options

wallet transfer

Transfer funds from an account to another.

Usage:

Possible Outputs:

Options

Last updated