zcash

Returns 30 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 3 times · Bitquery API v1

What it returns

The query

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

Variables

{
  "limit": 30,
  "offset": 0,
  "network": "zcash"
}

Similar queries