Trans 748d0d2

Returns inputs and outputs on Bitcoin, where tx hash is e26a47…d16f, sorted by output index, highest first: input index, input address address, value, block height, iso8601, transaction hash, output index and 2 more fields.

By Francesco Gasparetto · saved 18 November 2024 · run 11 times · 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
      block {
        height
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
      }
    }
    outputs(
      txHash: {in: $hash}
      options: {asc: "transaction.hash", offset: $offset, desc: "outputIndex"}
    ) {
      outputIndex
      address: outputAddress {
        address
      }
      value
      block {
        height
        timestamp {
          iso8601
        }
      }
      outputDirection
      transaction {
        hash
      }
    }
  }
}

Variables

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

Similar queries