Details of Bitcoin Transaction

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

By gaurav · saved 13 June 2025 · run 243 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

{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "hash": "d073b988014c2db2c235575c81f1c522e07770994f920480b6dfa3a1d881dcc5"
}

Similar queries