all input output of a cardano tx

Returns 10 outputs and inputs on Cardano, where tx hash is 1687e6…de0b, sorted by input index: output index, output address address, annotation, value, currency symbol, output direction, input index and input address address.

By gaurav · saved 3 December 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: CardanoNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  cardano(network: $network) {
    outputs: outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      currency {
        symbol
      }
      outputDirection
    }
    inputs: inputs(
      txHash: {is: $hash}
      options: {asc: "inputIndex", limit: $limit, offset: $offset}
    ) {
      inputIndex
      address: inputAddress {
        address
        annotation
      }
      value
      currency {
        symbol
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "cardano",
  "hash": "1687e6fe16afb2b5dbe97e920614fbd997ad3a8a747f694699aa52cf3345de0b"
}

Similar queries