api/v2/tx-specific - Litecoin

This endpoint returns the transaction exactly as the Litecoin Core node reports it, in the node's own JSON shape rather than the indexer's normalized schema. Use it for fields that the shared schema does not carry, such as MWEB flags and full script decoding.

Parameters

ParameterTypeLocationRequiredDescription
txidstringpathYesThe transaction id

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx-specific/51a31c4236a99bfd17cda606f079c9c4814851119e7593ab7c739bd5972b1969'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx-specific/51a31c4236a99bfd17cda606f079c9c4814851119e7593ab7c739bd5972b1969'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx-specific/51a31c4236a99bfd17cda606f079c9c4814851119e7593ab7c739bd5972b1969')

print(response.json())

Response

json{
    "txid": "51a31c4236a99bfd17cda606f079c9c4814851119e7593ab7c739bd5972b1969",
    "hash": "51a31c4236a99bfd17cda606f079c9c4814851119e7593ab7c739bd5972b1969",
    "version": 2,
    "size": 73090,
    "vsize": 73090,
    "weight": 292360,
    "locktime": 0,
    "vin": [
        {
            "ismweb": false,
            "txid": "4c3d9548bb03a42551c10f2472e99cd86776ed00fd3bfb530c4466b93e7ddac7",
            "vout": 2121,
            "sequence": 4294967295
        }
    ],
    "vout": [
        {
            "ismweb": false,
            "value": 83.24080358,
            "n": 0,
            "scriptPubKey": {
                "asm": "OP_DUP OP_HASH160 182c25bf95cacc04fd35d1ea8ea49539251bd552 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914182c25bf95cacc04fd35d1ea8ea49539251bd55288ac",
                "reqSigs": 1,
                "type": "pubkeyhash",
                "addresses": [
                    "LMRmNEdhi5F43vtW5qPdv1q9s7xsMp4XK5"
                ]
            }
        }
    ],
    "blockhash": "0fc24234c2379a5262023a4b4a653ff3a11df6bb1c12851aff820d27ea02b0b6",
    "confirmations": 17,
    "time": 1789699786,
    "blocktime": 1789699786
}

Response Parameters

FieldTypeDescription
txidstringThe transaction id
hashstringWitness transaction id, equal to txid for non-SegWit transactions
versionintegerTransaction version
sizeintegerSerialized size in bytes
vsizeintegerVirtual size in vbytes
weightintegerSegWit transaction weight
locktimeintegerTransaction lock time
vin[].ismwebbooleanTrue when the input comes from the MWEB extension block
vout[].ismwebbooleanTrue when the output is held in the MWEB extension block
vout[].valuenumberOutput value in LTC as a decimal, not in litoshis
vout[].scriptPubKeyobjectFull node-native script, with asm, hex, type, and addresses
blockhashstringHash of the containing block
confirmationsintegerNumber of confirmations
blocktimeintegerBlock time as a Unix timestamp

ismweb is Litecoin-specific and has no equivalent in the normalized api/v2/tx schema, which is shared across all coins. MWEB (MimbleWimble Extension Blocks, LIP-0002) holds confidential outputs whose amounts are not visible on the canonical chain, so an output with ismweb: true will not carry an ordinary address and value the way a regular output does. Integrations that total balances from raw outputs should check this flag.

Values under vout are denominated in LTC as decimal numbers, not in litoshis as integer strings; the normalized endpoint reports litoshis instead.

Use Cases

  • Node Parity: Read the node's exact transaction JSON for compatibility
  • Script Inspection: Access asm and reqSigs fields absent from the normalized schema
  • MWEB Handling: Detect inputs and outputs that live in the MimbleWimble extension block
  • Debugging: Compare normalized and node-native views of a transaction

Error Handling

HTTP StatusMessageDescription
400Bad requestThe transaction id is not a valid 64-character hex string
403ForbiddenMissing or invalid ACCESS-TOKEN
404Not foundNo transaction with the requested id is indexed
500Internal errorThe indexer failed to read the transaction