Cardano tx

Returns inputs and outputs on Cardano, where tx hash is eb025d…da04, 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 9 December 2024 · 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

{
  "limit": 10,
  "offset": 0,
  "network": "cardano",
  "hash": ["eb025d66ac04ec76c8688c6b39c9165b2207e84d945efd9fc3c1284c088cda04"]
}

Similar queries