Shared node infrastructure for top blockchains using JSON-RPC.
Dedicated nodes infrastructure for leading blockchains using JSON-RPC
Test EVM transactions, optimize gas fees and identify security flaws
Unified data from a single point using REST APIs. Execution time of 25ms.
Real-time notifications for events on top blockchains. Response under 100ms.
A set of prepared cryptographic APIs with unified endpoints which save time and effort.
Get access to unified market data using REST APIs from top crypto exchanges.
As an ever increasing number of individuals are grasping the universe of digital money, individuals are searching for alternatives to Bitcoin and Ethereum. A clear popular decision is Litecoin.
In the technical point of view, Litecoin is very similar to Bitcoin. It is a fork of Bitcoin with these essential differences:
Litecoin has gained quite a momentum since its first release in 2011. It was the first to implement a solution, out of all top 5 blockchains by market cap, for the transaction space in the block which also affected its pose towards threats. This solution consists of Segwit. Litecoin was also used to complete the very first Lightning Network transaction from Zürich to San Francisco in under one second (check out our glossary if not familiar).
Hence, surely Litecoin couldn’t miss among the blockchains that CryptoAPIs supports through its Blockchain as a service APIs.
Its use cases match the ones of Bitcoin API, such as:
Litecoin API allows you to look up information about unconfirmed transactions, query transactions based on hash, create and propagate your own transactions, including multisignature transactions, and embed data on the blockchain—all based on the Litecoin resource.
If you are not familiar with Bitcoin and the process of transaction, here is a quick recap on it:
Firstly, the information on such transactions goes through one of the endpoints based on the Txid, which is a string representing the id of the block you want to query, for example:
924e34052a093da9c9bb74ff1802034be5c98df811333a5da31437116ab81b5e
Secondly, the returned object contains information about the transaction in JSON format, including its block information, the total amount transacted with it (in litecoins), the inputs and outputs, and more.
Payment Forwarding is an automatic way to move any received funds to another wallet, it mainly serves to move funds once cold wallets “receives” them.
CryptoAPIs do not take a fee on payment forwarding, other than the required miner fee; payments are free.
In order to create a payment forwarding you need to include the following data (POST request)
– wallet – from – to – callback (url) – wallet password – confirmations – fee (optional)
If field fee is not set, the payment forwarding will be executed with the recommended fee from the Transactions Fee Endpoint.
When payment forwarding is triggered you will receive a notification on the callback(url) you’ve specified when the payment forwarding was created.
Instead of requiring the users to continuously poll resources, CryptoAPIs provides push Litecoin APIs to facilitate the process, and supports both WebSockets and Webhooks. Therefore, webhooks are the most reliable way to get event notifications but requires running a server to receive the callbacks. The trigger automatically retries HTTP requests 5 times.
Finally, a Webhook request expects a response with status code 200 (OK) or it will retry the request.
For instance, by creating New Block Webhook, user receives a notification after every new block.
The request object will be as follows:
{ “event”: “NEW_BLOCK”, “url”:{CALLBACK_URL}
And the query parameters will be the network, event and callback url.
Hence, these are a few examples of how endpoints help in integrating the Litecoin API into your website. They provide the backbone into the complete process of participating in this blockchain.