D
D
drveb12021-11-05 14:00:26
API
drveb1, 2021-11-05 14:00:26

Is there an API for Litecoin?

Hello!

Task: you need to make an auto-replenishment of Litecoin on the site. As far as I understand, you need to find some service with an API, and through this service make requests

Help with information, who is in the subject

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
inFureal, 2021-11-05
@inFureal


> Most of the Litecoin API calls are the same as they are in Bitcoin

S
Sergey, 2021-11-05
@KingstonKMS

Set up a litecoin console wallet, synchronize with the network and work with the local blockchain api

R
rPman, 2021-11-06
@rPman

The ideologically correct solution is to install a Litecoin wallet (in order not to take up much space, it seems up to 500mb, you need to use the -prune=max_blockchain_size_in_mb option ).
using the
-walletnotify=<cmd>
command line switch, you can receive alerts about changes in the balance
using rpc commands (see bitcoin for examples, since litecoin is an almost identical fork) make a request for specifics, for example, creating an address for receiving coins, address balance, creating a new transaction or the number of confirmations
ps I strongly recommend that you do not store all balances on a wallet hosted on a web service, you need to divide it into a hot wallet (operational balance) and a cold wallet (most of the balance, which can only be handled manually or under special conditions).
The reason is to protect the main balance when the web server is hacked.
Even better - do not place the wallet in the same place as the web service, but separate it by servers, between which your own communication protocol will go, and the server with the wallet should simultaneously analyze the translation base of the main one and look for inconsistencies (this is not absolute protection, but it will create very big difficulties attacker, plus you can place traps, rpc requests or parameter values, at which an alert will be sent to the owner that the service has been attacked).
Any outgoing transactions only to a predetermined list of addresses, but if you need to send money to the user, then adding a new address and the amount to withdraw to it must undergo an additional audit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question