Cardano Query

Returns 10 outputs and inputs on Cardano, where output address is addr1q…6g7f and input address is addr1q…6g7f, sorted by block height transaction index, highest first: block height, timestamp time, transaction hash, output index, output direction, value, currency symbol and 4 more fields.

By gaurav · saved 13 September 2021 · run 14 times · Bitquery API v1

What it returns

Filters

The query

{
  cardano(network: cardano) {
   inbound: outputs(
      date: {since: null, till: null}
      outputAddress: {is: "addr1q8z5phgn2zz9uf5gdupkjqf0qsthk75wyanwkr3hauc760m0cj80un9u5txhdpml5txj47efj64qulpky4g8wa8pn72qr46g7f"}
      options: {desc: ["block.height", "outputIndex"], limit: 10, offset: 0}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
      }
      outputIndex
      outputDirection
      value
      currency {
        symbol
      }
    }
    outbound:  inputs(date: {since: null, till: null}, inputAddress: {is: "addr1q8z5phgn2zz9uf5gdupkjqf0qsthk75wyanwkr3hauc760m0cj80un9u5txhdpml5txj47efj64qulpky4g8wa8pn72qr46g7f"}, options: {desc: ["block.height", "transaction.index"], limit: 10, offset: 0}) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      outputTransaction {
        hash
        index
      }
      transaction {
        hash
        index
      }
      inputIndex
      value
      currency {
        symbol
      }
    }
  }
}

Similar queries