LTO CLI
LTO wallet for the commandline terminal. Great for automating tasks.
Installation
pip install lto-clipip is the package installer for Python.
On some older operating systems the pip command is linked to Python 2. In that case use pip3 instead.
Setup
Manage accounts
lto account create
echo "my seed" | lto account seed --name foobar
lto account list
lto account show 3JuijVBB7NCwCz2Ae5HhCDsqCXzeBLRTyeL
lto account set-default foobar
lto account remove 3JuijVBB7NCwCz2Ae5HhCDsqCXzeBLRTyeLPublic node
lto node set https://nodes.lto.network
lto node showInformation
Balance
Node
Transactions
Anchor
Associations
Data
Data is read as JSON from stdin.
Transfer
Mass-transfer
Recipient/amount pairs are read from stdin.
Burn
Leasing
Sponsorship
Script
This script will disallow transfer and burn transactions for an account and disable changing the script again. Your tokens will be locked if you use it!
Common options
--network
Use --network T or -T to use testnet instead of mainnet. You need to set up accounts specifically for testnet.
--account
Select one of the accounts configured during setup. The account can be referenced by name or address. The name is only known locally. If this option is omitted, the default account is used.
--sponsor
Choose an account to sponsor the transaction. The sponsor will co-sign the transaction and pay the transaction fee.
--no-broadcast
Create and sign the transaction, but don't broadcast it to the node. The JSON will be outputted.
--unsigned
Create the transaction, but don't sign it. This option should only be used in combination with --no-broadcast.
Last updated