For the complete documentation index, see llms.txt. This page is also available as Markdown.

Python

Python client library for interacting with LTO Network

Installation

pip install lto

Usage

from lto import LTO
from lto.public_node import PublicNode

seed = "manage manual recall harvest series desert melt police rose hollow moral pledge kitten position add"

account = LTO("T").Account(seed='seed')
node = PublicNode("https://testnet.lto.network")

amount = 1000.0 # Amount of LTO to transfer
recipient = "3Jo1JCrBvnWCg37VDxMXAjYhsS9rRDLBSze"

transaction = Transfer(recipient, amount)
transaction.sign_with(account)
transaction.broadcast_to(node)

To check the response from the node is easy, just modify the last line and add a print

Last updated