Example Cardano with TX fees as output

Returns money flows on Cardano, where initial address is addr1q…6g7f and currency is ADA, sorted by amount, highest first: sender address, receiver address, transaction hash, value in, value out, amount, currency symbol and 2 more fields.

By Aleksey · saved 22 September 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: CardanoNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  cardano(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {asc: "depth", desc: "amount", direction: inbound }
      date: {since: $from, till: $till}
      currency: {is: "ADA"}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
        valueIn
        valueOut
      }
      
      amount
      currency {symbol}
      depth
      count

    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", direction: outbound }
      date: {since: $from, till: $till}
      currency: {is: "ADA"}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
        valueIn
        valueOut
      }
      amount
      currency {symbol}
      depth
      count
      
    }
  }
}

Variables

{
  "address": "addr1q8z5phgn2zz9uf5gdupkjqf0qsthk75wyanwkr3hauc760m0cj80un9u5txhdpml5txj47efj64qulpky4g8wa8pn72qr46g7f",
  "network": "cardano",
  "inboundDepth": 1, "outboundDepth": 1,
  "from": null, "till": null
}

Similar queries