litecoin input script

Returns 10 inputs on Bitcoin and Litecoin, where tx hash is 0eb381…bac8, sorted by input index: input index, input address address, annotation, value, output transaction hash, output transaction index, pattern and 2 more fields.

By Aparna Sridhar · saved 20 February 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    inputs(
      txHash: {is: $hash}
      options: {asc: "inputIndex", limit: $limit, offset: $offset}
    ) {
      inputIndex
      address: inputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputTransaction {
        hash
        index
      }
      inputScriptType {
        pattern
        annotation
        type
      }
      inputScript
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "litecoin",
  "hash": "0eb381091066a31aa306737012c76f03478f31da566bc1314a7e9f6ebbeebac8"
}

Similar queries