How to Access Litecoin API

Step 1: To access Litecoin, use the following native access endpoints:

  • Network: Litecoin Mainnet
  • Request Type: POST
https://svc.blockdaemon.com/litecoin/mainnet/native
  • Network: Litecoin Testnet
  • Request Type: POST
https://svc.blockdaemon.com/litecoin/testnet/native

Step 2. You should authorize your request. Learn more: Authentication Guide

Step 3. Specify a Litecoin method in the request body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "YOUR_METHOD",
    "params": []
}

Example Request

Here is a cURL example for using getblockcount to get the height of the most-work fully-validated chain in Litecoin Mainnet:

curl -X POST \
https://svc.blockdaemon.com/litecoin/mainnet/native \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getblockcount", "params": []}'

The following is a typical response you will get:

{
    "result": 2313630,
    "error": null,
    "id": 1
}

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.