Public layer

Executing Transactions

Create transaction

First a transaction needs to be created.

from src.LTO.Transactions.Transfer import Transfer
transaction = Transfer(recipient, amount)

The Transaction needs then to be signed. In order to sign a transaction an account is needed.

Sign transaction

transaction.sign_with(account)

Broadcast transaction

For last the transaction needs to be broadcasted to the node. In order to do so we need to connect to the node using the PublicNode class.

from src.LTO.PublicNode import PublicNode
node = PublicNode(url)

The url refers to the node, there are many nodes available, here there are two examples, one for the mainnet and one for the testnet

  • https://nodes.lto.network

  • https://testnet.lto.network

Transactions

Transfer Transaction

Mass Transfer Transaction

Anchor Transaction

Lease Transaction

Cancel Lease Transaction

SetScript Transaction

Sponsorship transaction

Cancel Sponsorship transaction

Association transaction

Revoke Association transaction

Data transaction

Register transaction

Burn transaction

Last updated