---
title: "Get Litecoin Block by hash or height"
method: GET
path: "/v3/litecoin/block/{hash}"
tags: ["Litecoin - Tatum API"]
---

# Get Litecoin Block by hash or height

`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`

/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](https://github.com/tatumio/tatum-js/tree/v2/examples/ltc-example/src/app/ltc.blockchain.example.ts).

## Path parameters

- `hash` string, required

## Response `200`

OK

- LtcBlock
  - `hash` string: Hash of block.
  - `blockNumber` number: The number of blocks preceding a particular block on a block chain.
  - `version` number: Block version.
  - `prevBlock` string: Hash of the previous block.
  - `merkleRoot` string: The root node of a merkle tree, a descendant of all the hashed pairs in the tree.
  - `time` number: Time of the block.
  - `bits` number
  - `nonce` number: Arbitrary number that is used in Litecoin's proof of work consensus algorithm.
  - `txs` LtcTx[]
    - `hash` string: Transaction hash.
    - `witnessHash` string: Witness hash in case of a SegWit transaction.
    - `fee` string: Fee paid for this transaction, in LTC.
    - `rate` string
    - `ps` number
    - `blockNumber` number: Height of the block this transaction belongs to.
    - `block` string: Hash of the block this transaction belongs to.
    - `time` number: Time of the transaction.
    - `index` number: Index of the transaction in the block.
    - `version` number: Index of the transaction.
    - `flag` number
    - `inputs` object[]: List of transactions, from which assets are being sent.
      - `prevout` object
        - `hash` string: Transaction hash of the input.
        - `index` number: Transaction index of the input.
      - `script` string: Data generated by a spender which is almost always used as variables to satisfy a pubkey script.
      - `witness` string: Transaction witness.
      - `sequence` number
      - `coin` object
        - `version` number
        - `height` number
        - `value` string: Value of the transaction, in LTC.
        - `script` string
        - `address` string: Sender address.
        - `coinbase` boolean: Coinbase transaction - miner fee.
    - `outputs` object[]: List of recipient addresses and amounts to send to each of them.
      - `value` string: Sent amount in LTC.
      - `script` string: Transaction script.
      - `address` string: Recipient address.
    - `locktime` number: Block this transaction was included in.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
- `404`: Block not found.
- `500`: Internal server error. There was an error on the server during the processing of the request.

---

[API](https://skmtc.dev/tatum/apis/blockchain.md) - [All operations](https://skmtc.dev/tatum/apis/blockchain/llms.txt) - [OpenAPI document](https://skmtc.dev/tatum/apis/blockchain/revisions/f9623a85f420?raw)
