CLI client
LTO wallet for the commandline terminal. Great for automating tasks.

Installation

1
pip install lto-cli
Copied!
pip is the package installer for Python.

Setup

Manage accounts

1
lto accounts create
2
echo "my seed" | lto accounts seed --name foobar
3
lto accounts list
4
lto accounts set-default foobar
5
lto accounts remove 3JuijVBB7NCwCz2Ae5HhCDsqCXzeBLRTyeL
Copied!

Public node

1
lto set-node https://nodes.lto.network
Copied!

Transactions

Anchor

1
lto anchor --hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Copied!

Associations

1
lto association issue --recipient 3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK --type 1 --hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2
lto association revoke --recipient 3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK --type 1 --hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Copied!

Transfer

1
lto transfer --recipient 3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK --amount 1000000000
Copied!

Mass-transfer

1
echo "3N6MFpSbbzTozDcfkTUT5zZ2sNbJKFyRtRj:1000000000
2
3NBC7ETcdPbf4QAXSop5UCJ53yX34aGPXoz:800000000" | lto mass-transfer
Copied!
Recipient/amount pairs are read from stdin.

Leasing

1
lto lease create --recipient 3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK --amount 1000000000
2
lto lease cancel --leaseid 6XmeG7SRWiw8pD6Uad6D9AAaY354v5TV6AJMhPpHMkqy
Copied!

Sponsorship

1
lto sponsorship create --recipient 3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK
2
lto sponsorship cancel --recipient 3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK
Copied!

Common options

1
--network CHAINID
2
--account NAME|ADDRESS
3
--sponsor NAME|ADDRESS
4
--no-broadcast
5
--unsigned
Copied!
--network
Use --network 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.
This feature is not yet available as it requires the Cobalt update to be activated.
--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 modified 24d ago