LTO Network
  • Getting started
  • What is LTO Network?
  • Tutorials
    • Buying and staking LTO
      • Exchanges
        • Binance
        • AscendEX (Bitmax)
        • Uniswap
        • PancakeSwap
        • Other exchanges
      • Creating your LTO web wallet
      • Using the LTO token bridge
      • Staking LTO tokens
    • Mining
      • Setup your node wallets
      • Node management
      • Public community nodes
    • Anchoring
      • Hashing
    • LetsFlow
  • Wallets
    • LTO Web Wallet
      • Using Ledger
    • Universal Wallet
    • LTO CLI
    • Third-Party Wallets
      • Stakely.io wallet
        • Web wallet
        • Commandline
    • ERC20 Token Swap
  • Running a node
    • Public node
      • Installation Guide
        • Mainnet & Testnet
        • Requirements
        • Configuration
        • (Virtual) Machine
        • Nginx reverse proxy (optional)
        • Troubleshooting FAQ
      • Cloud installation
        • Alibaba Cloud
        • AWS Elastic Beanstalk
        • Google Cloud
        • IBM Cloud
        • Microsoft Azure
        • OKD (OpenShift)
        • Raspberry Pi (Expert)
        • Ubuntu Linux with Container
        • Windows with Container
      • REST API
        • Address
        • Wallet
        • Lease Transactions
        • Peers
        • Blocks
        • Utils
        • FAQ
      • Security Notes
      • FAQ
      • Exchange integration guide
    • Anchor node
      • Installation Guide
        • Linux
        • MacOS
        • Windows
      • REST API
    • Identity node
      • Installation guide
        • Linux
        • MacOs
        • Windows
      • Configuration
        • Trust network
      • REST API
    • Workflow node
      • Installation Guide
        • MacOS
        • Windows
        • Ubuntu Linux
      • REST API
  • Ownables
    • What are Ownables?
    • Making your first ownable
    • Ownables SDK
      • Prerequisites
      • Setup
    • Ownables Architecture
      • Smart Contract
      • Widget
    • Ownables Bridge
  • Templates Overview
  • Libraries
    • JavaScript
      • Accounts
      • Transactions
      • Event chain
      • Messages
      • Identities
      • HTTP Authentication
    • Python
      • Accounts
      • Public layer
    • PHP
      • Accounts
      • Identities
      • Public layer
      • Private layer
      • HTTP Authentication
      • Commandline scripts
    • Java
  • Protocol
    • Cryptography
    • Accounts
      • ED25519
      • secp256k1
      • secp256r1
    • Identities
      • Decentralized identifiers (DID)
      • Trust network
      • Verifiable credentials
    • Public layer
      • Transactions
        • Transfer
        • Lease
        • Cancel Lease
        • Mass Transfer
        • Set Script
        • Data
        • Anchor
        • Association
        • Revoke Association
        • Sponsorship
        • Cancel Sponsorship
        • Register
        • Burn
        • Mapped Anchor
        • Statement
      • Transaction fees
      • Consensus protocol
      • Activation Protocol
      • Data Structures
    • Private layer
      • Event chain
        • Event
      • Messaging
        • Sending messages
Powered by GitBook
On this page
  • 1. Is there actually a page where all the resources concerning nodes are mentioned ? Like all the different commands and their effects ?
  • 2. My Digital Ocean node is fully synced. I have managed to lease 1000+ LTO to the node. How can I know if it is already mining?
  • 3. How can you GET the LTO balance of a Wallet via API?
  • 4. I am unable to connect to my nodes API endpoint after successful setup of my node when I try a get request http://my_server_ip_address:6868/addresses/balance/ wallet_address it gives an error "Error: Failed sending data to the peer".
  • 5. How can I sign a transaction with a private key using the REST API?
  1. Running a node
  2. Public node
  3. REST API

FAQ

PreviousUtilsNextSecurity Notes

Last updated 5 years ago

1. Is there actually a page where all the resources concerning nodes are mentioned ? Like all the different commands and their effects ?

Yes, in this section .

2. My Digital Ocean node is fully synced. I have managed to lease 1000+ LTO to the node. How can I know if it is already mining?

There is a method but the API key is needed: GET /debug/minerInfo which shows all miners who has enough generating balance to be able to generate block.

3. How can you GET the LTO balance of a Wallet via API?

  1. GET /addresses/balance/details/{address}

  2. GET /addresses/balance/{address}

4. I am unable to connect to my nodes API endpoint after successful setup of my node when I try a get request wallet_address it gives an error "Error: Failed sending data to the peer".

API port is 6869 by default, make sure you have enabled it in your config. You can enable and configure your node API using the optional LTO_ENABLE_REST_API and LTO_API_KEY environment variable.

5. How can I sign a transaction with a private key using the REST API?

There are 2 ways to sign transactions:

  1. Use a node. But that node should know the private key of your address. In other words, it should be your node, because you should never send your private key to anybody else.

  2. Use libraries for different languages (Python, C#, JavaScript, Java). Libraries can sign transactions with the provided private key and send to the network already signed transactions.

NODE API
http://my_server_ip_address:6868/addresses/balance/