Trans 748d0d2

Returns 10 inputs and outputs on Bitcoin, where tx hash is fb8045…4f82 or 748d0d…b5dc, 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 24 October 2024 · run 8 times · Bitquery API v1

What it returns

Filters

The query

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

Variables

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

Similar queries