Output scripts

Returns 10 outputs on Bitcoin and Dogecoin, where tx hash is ada7bd…b72e, sorted by output index: output index, output address address, annotation, value, output direction, pattern, output script type type and output script.

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) {
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      outputDirection
      outputScriptType {
        annotation
        pattern
        type
      }
      outputScript
    }
  }
}

Variables

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

Similar queries