zcash

Returns inputs and outputs on Bitcoin and Zcash, 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 26 November 2024 · run 1 time · Bitquery API v1

What it returns

The query

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

Variables

{
  
  "offset": 0,
  "network": "zcash",
  "hash": ["0f732340e1a7252edd8edde3e6d0b3e00b763398f9fe3cbad0788c2a5f4b2b0f"] 
}

Similar queries