ADA Trans

Returns inputs and outputs on Cardano, where tx hash is 09b94d…981c, sorted by output index, highest first: input index, input address address, value, currency symbol, block height, iso8601, transaction hash and 4 more fields.

By Francesco Gasparetto · saved 18 December 2024 · run 20 times · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  
  "offset": 0,
  "network": "cardano",
  "hash": ["09b94dcfa3b47565f498dfb1ed30d37e3cf577cb45f3da214bb4e296aa30981c"] 
}

Similar queries