Miner tx detail

Returns inputs and outputs on Bitcoin, where tx hash is 748d0d…b5dc, sorted by output index, highest first: input index, input address address, value, block height, iso8601, transaction hash, value decimal and 3 more fields.

By Francesco Gasparetto · saved 9 November 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $hash: [String!], $offset: Int!) {
  bitcoin(network: $network) {
    inputs(
      txHash: {in: $hash}
      options: {asc: "transaction.hash", offset: $offset, desc: "inputIndex"}
    ) {
      inputIndex
      address: inputAddress {
        address
      }
      value(in: USD)
      block {
        height
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
      }
      valueDecimal
    }
    outputs(
      txHash: {in: $hash}
      options: {asc: "transaction.hash", offset: $offset, desc: "outputIndex"}
    ) {
      outputIndex
      address: outputAddress {
        address
      }
      block {
        height
        timestamp {
          iso8601
        }
      }
      outputDirection
      transaction {
        hash
      }
      value
    }
  }
}

Variables

{
  
  "offset": 0,
  "network": "bitcoin",
  "hash": ["748d0d2953734ff69df0a2c1dbce9c5824dd12e3c7a21a58540e14ae3ac7b5dc"] 
}

Similar queries