Input scripts

Returns 10 inputs on Bitcoin and Dogecoin, where tx hash is ada7bd…b72e, sorted by input index: input index, input address address, annotation, value, output transaction hash, output transaction index, pattern and 2 more fields.

By Mann · saved 12 December 2021 · 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
      outputTransaction {
        hash
        index
      }
      inputScriptType {
        pattern
        annotation
        type
      }
      inputScript
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "dogecoin",
  "hash": "ada7bde98b2be18f336d81efa41cf4d04fa5806421d692ce8c8726f173e4b72e"
}

Similar queries