Litecoin - Tatum API

Get Litecoin Block by hash or height

/v3/litecoin/block/{hash}

5 credits per API call.

Get Litecoin Block detail by block hash or height.

Examples of using this endpoint with the Tatum JS SDK can be found in Tatum LTC SDK.

get/v3/litecoin/block/{hash}

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v3/litecoin/block/{hash}
  • Auth
    API key in header x-api-key

Path parameters

hashstring required
Example:1234314

Block hash or height.

Response

OK

hashstring

Hash of block.

blockNumbernumber

The number of blocks preceding a particular block on a block chain.

versionnumber

Block version.

prevBlockstring

Hash of the previous block.

merkleRootstring

The root node of a merkle tree, a descendant of all the hashed pairs in the tree.

timenumber

Time of the block.

bitsnumber
noncenumber

Arbitrary number that is used in Litecoin's proof of work consensus algorithm.

Example response

{
  "hash": "6178dda07b94becb118f67b21aa72f60d85c1029e9e9b8ae56a25d684de66078",
  "blockNumber": 1234314,
  "version": 536870912,
  "prevBlock": "a3047a060e5d586a9b26779ebe62fc57ce7323745da8f28761ab755454d89c52",
  "merkleRoot": "a1634a42a8e956a5fb5225d06c3af6207e7f6fe5a00fa45229edfd0ddfa587f0",
  "time": 1572865501,
  "bits": 503452237,
  "nonce": 2278594841,
  "txs": [
    {
      "hash": "5f83d51c8d3054012cea3011fa626b85d89442788721afd60719ab1f9ab8f78a",
      "witnessHash": "d819688a3ac77cb6d2751808e5411baf7e20fa3eeeccf65867554a09beddd9a3",
      "fee": "0.00001682",
      "rate": "0.00010011",
      "ps": 1572703011,
      "blockNumber": 1233224,
      "block": "b540bf37450eae0fb9fb7f190009ca890f0dd17cb19521c6241a0dc5e70f67dc",
      "time": 1572694484,
      "index": 2,
      "version": 2,
      "flag": 1,
      "inputs": [
        {
          "prevout": {
            "hash": "0db5a2881f26f7dce20222f9c2538dc296ab562e134a72052596bdf4bb6913b4",
            "index": 1
          },
          "script": "1600148c65244f095f3689aebb70981d102e33036fe786",
          "witness": "0247304402202cad8f03fd061fbdd19d285f528dd7451c3818f4a1d0f5f9f559f141fb910c6e02203fb62fc770cf54ae53e4b488b589f9f096d28c1bd24dc8e4d80783dd58041826012102c44d21e840b24c786a7eff2980e35f51c4abcc9a032e7a132ca258f90ee4a19d",
          "sequence": 4294967294,
          "coin": {
            "version": 2,
            "height": 1232869,
            "value": "0.0989946",
            "script": "a91472593295cfe5e7ea466e43822167cabcb2cb103387",
            "address": "2N3fqsiA5Nk4pZGWcfZApATGhXfn9B74oXK"
          }
        }
      ],
      "outputs": [
        {
          "value": "0.0015",
          "script": "76a914fc8f50c952da910f473a0533561311ad140c989b88ac",
          "address": "n4YNG8q5JyxkeWf7zMi1bMyRZbRKK1W7or"
        }
      ],
      "locktime": 1233222
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.