Welcome!

LTCchain.com is a free service that provides quick access to the litecoin blockchain via a RESTful api and a low latency websocket, allowing developers to get started coding for litecoin.

This is an open source project, so if you want to contribute to the community just visit the github repo and fork. Hopefully in the future we will be able to provide api calls similar to blockchain.info and help the litecoin developer community thrive.

This services are provided free of charge. Please do not abuse them. Donations are always welcome Lb5QpaR5UnnzyVzKyPCUM3VVCE5zd56ue5

Data on Transactions & Blocks

  • Single Block: http://ws.ltcchain.com/block/BLOCKHASH
  • Single Block: http://ws.ltcchain.com/block/BLOCKINDEX
  • Latest Block: http://ws.ltcchain.com/latestblock
RESPONSE
{
    "hash":"ca13a990e105133175fa6956d2b2c8d5be02e0be9ffa4b0b42e85d3e40c2c8c0",
    "confirmations":1,
    "size":410,
    "height":428366,
    "version":2,
    "merkleroot":"05abad0b12cc47327dbdbf5ca083c3cb042dfd43664fd83149950cf5c6c72038",
    "tx":[
        --Array of Transaction Hash--
    ],
    "time":1379742310,
    "nonce":3825206016,
    "bits":"1b3a7b18",
    "difficulty":1120.62353494,
    "previousblockhash":"10eb6ae6dfc5b5348df1aff13f668193a0a547f848281893b607cb528d2d6b67"
}                                                                        
                                
  • Single Transaction: http://ws.ltcchain.com/tx/TRANSACTIONHASH
  • Latest Transaction: http://ws.ltcchain.com/latesttx
RESPONSE
{
    "hex":"010000000322c1ca4328fd97cd8bf6cded73f2d972fbeadce0df5873f89669a3f1d99ae1cb000000006b483045022100b6e7a85a92e2e1b67175a9a9f70c13e272fb744f3fa9b4ccda11d055e4fa466602205d6859c28080c8b57d0dc95d0bc8d613f533c02cf3161e43dc568e32c96f5d770121038317fd398e9a1ab01859e27b2a4e54ac9e03058e0b86380a1528e017bfddddafffffffffecb6d20ae51e27e35802270889157ffab22991085932b971662d545ab3a424b4000000006c49304602210093be5a3cde0da502349ffdbcc2e68e5490263cff2af2e5be4829854cafe0dd6302210092a161e074b6da34f98a4c4ef309b5e7126f6bcf1a577814cf1336af2f5bf3d60121032d401109e8ad429228d552e0fc4f75ba9f6f5fd868e28dbb2a29571a4ec65a38ffffffff4a5216d6f728b1c49db25cf810ef61e506193a43fb62d4b6514bcd799ada3655010000006c493046022100dfd5f874435d3027a6d770323013baef47cd8d0d6499c9f3922aebf54bdd2a4c022100eb9adf2acfb5dba363415aa800bc6f69cc3d0af23742379841c7ed4fed0581ca01210244b16b5bc16861bc88b3c5f702f1826ed935143c7b20439172af891ab699be91ffffffff021e603200000000001976a914ce641523606c4a2b52f832aec010398fd09a4bf088ace811d51d000000001976a914c4c0d2fbb933f4446535332cc5a38e8450ac22e488ac00000000",
    "txid":"4e9a59504ab5550961cc04161cffe16a58978e704c771053b6f5a4597f51c58c",
    "version":1,
    "locktime":0,
    "vin":[
        {
            "txid":"cbe19ad9f1a36996f87358dfe0dceafb72d9f273edcdf68bcd97fd2843cac122",
            "vout":0,
            "scriptSig":{
                "asm":"3045022100b6e7a85a92e2e1b67175a9a9f70c13e272fb744f3fa9b4ccda11d055e4fa466602205d6859c28080c8b57d0dc95d0bc8d613f533c02cf3161e43dc568e32c96f5d7701 038317fd398e9a1ab01859e27b2a4e54ac9e03058e0b86380a1528e017bfddddaf",
                "hex":"483045022100b6e7a85a92e2e1b67175a9a9f70c13e272fb744f3fa9b4ccda11d055e4fa466602205d6859c28080c8b57d0dc95d0bc8d613f533c02cf3161e43dc568e32c96f5d770121038317fd398e9a1ab01859e27b2a4e54ac9e03058e0b86380a1528e017bfddddaf"
            },
            "sequence":4294967295
        },
        --Array of ins--
    ],
    "vout":[
        {
            "value":0.03301406,
            "n":0,
            "scriptPubKey":{
                "asm":"OP_DUP OP_HASH160 ce641523606c4a2b52f832aec010398fd09a4bf0 OP_EQUALVERIFY OP_CHECKSIG",
                "hex":"76a914ce641523606c4a2b52f832aec010398fd09a4bf088ac",
                "reqSigs":1,
                "type":"pubkeyhash",
                "addresses":[
                    "Le3FMb7jfap5Yg5Avbq7bgpdBTMyZxiSBN"
                ]
            }
        },
        --Array of outs--
    ],
    "blockhash":"cf1ac60b7f9e77dfd91428d465eb3211d9c51a37cd3f2d49731b0dd48713696d",
    "confirmations":1,
    "time":1379744631,
    "blocktime":1379744631
}
                                

ws://ws.ltcchain.com:8000

{"op":"tx_sub"}

RESPONSE
{
    "op":"utx",
    "block_hash":"3470c82a5b7cf4329172b907c62c82bb1889e3b94257b73f029d04a4dd381132",
    "x":{
        "hash":"6b45ecfa627d855218c69693af21193dbebfcd53faa5170dcd50c6133c490073",
        "ver":1,
        "time":1379819681,
        "lock_time":0,
        "vin_sz":1,
        "vout_sz":2,
        "inputs":[
            {
                "prev_out":{
                    "value":39.73118243,
                    "addr":"LKpPiGUSNuVbjRJnGSvoZdM426MDzUVaYK",
                    "type":"pubkeyhash"
               }
            }
        ],
        "out":[
            {
                "value":37.65619698,
                "addr":"LP1xDKF3NLgV4vD3ZCFuFM69Xs7u6Egacb",
                "type":"pubkeyhash"
            },
            {
                "value":2.05498545,
                "addr":"LRoaU1Kb7nXKRBkR4GyvdfPtKka6HmXDpE",
                "type":"pubkeyhash"
            }
        ]
    }
}
                                

{"op":"block_sub"}

RESPONSE
{
    "op":"block",
    "x":{
        "hash":"cf6568e5e47e0c7cf5216fbbca4dd9833d231757e4dac858acea64be43548164",
        "confirmations":1,
        "size":3336,
        "height":428874,
        "version":2,
        "merkleroot":"94012c7c04effc431a1dfbc023798133d8d4e3860cbc7526a2dbe568cf5e7358",
        "tx":[
            "aab159a9fc13d57767fa7921bc52fca6f8e1efcc89cb5ec4e6848a7d3943522a",
            "7881e7efe1e6988bcb621645f931c7b71d2851eb39b6d90d76bed0c5fae42d24"
        ],
        "time":1379819690,
        "nonce":1457275392,
        "bits":"1b3a7b18",
        "difficulty":1120.62353494,
        "previousblockhash":"3470c82a5b7cf4329172b907c62c82bb1889e3b94257b73f029d04a4dd381132",
        "nTx":2
    }
}