api

Returns 50 transactions and outputs on Bitcoin, where tx hash is 70bf60…d67c, sorted by input index: block height, timestamp time, index, input count, output count, input value, output value and 15 more fields.

By gaurav · saved 16 February 2026 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    transactions(txHash: {is: $hash}) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      index
      inputCount
      outputCount
      inputValue
      input_value_usd: inputValue(in: USD)
      outputValue
      output_value_usd: outputValue(in: USD)
      feeValue
      fee_value_usd: feeValue(in: USD)
      minedValue
      mined_value_usd: minedValue(in: USD)
      txCoinbase
      txLocktime
      txSize
      txVsize
      txWeight
      txVersion
    }
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputDirection
    }
    inputs(
      txHash: {is: $hash}
      options: {asc: "inputIndex", limit: $limit, offset: $offset}
    ) {
      inputIndex
      address: inputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
    }
  }
}

Variables

{
    "network": "bitcoin",
    "hash": "70bf606007c7eca7ddd42c180fa6b7bc5d23236e260b5f5808b5b5333f1fd67c",
    "limit": 50,
    "offset": 0
  }

Similar queries