Bitcoin input and outputs

Returns 100 inputs and outputs on Bitcoin, where tx hash is 4f8770…8218, sorted by output index: input index, input address address, annotation, value, output index, output address address and output direction.

By gaurav · saved 25 June 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)
    }
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputDirection
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "bitcoin",
  "hash": "4f87709d241bb2a2ce688d56907f364d62afe62921419fde692f4803bb2b8218"
}

Similar queries