Ticket_902_Query_OK_small_txt

Returns outputs and inputs on Cardano, where initial address is addr1q…zcka, date since 2000-02-01 and date till 2022-12-30: value, count, minimum of block, maximum of block, receiver address, receivers count and senders count.

By pablo · saved 28 December 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  cardano(network: cardano) {
    outputs(
      date: {since: "2000-02-01T00:00:00", till: "2022-12-30T10:26:36.164291"}
      any: [{outputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}}]
    ) {
      inflows: value(
        calculate: sum
        currency: {is: "ADA"}
        outputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      )
      unique_senders: count(uniq: transactions)
    }
    inputs(date: {since: "2000-02-01T00:00:00", till: "2022-12-30T10:26:36.164291"}) {
      outflows: value(
        calculate: sum
        currency: {is: "ADA"}
        inputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      )
      unique_reciversers: count(
        inputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      )
      unique_recievers: count(
        uniq: addresses
        inputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      )
    }
    transactions(
      any: [{outputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}}, {inputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}}]
    ) {
      first_tx_at: minimum(of: block, get: time)
      last_tx_at: maximum(of: block, get: time)
      outbound_transactions: count(
        inputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      )
      inbound_transactions: count(
        outputAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      )
      unique_days_with_transfers: count(uniq: dates)
    }
    inbound: coinpath(
      initialAddress: {is: "addr1q9zw5q82hys376tjl226jzal0vph5u53arsqk057zy92h7me58vy75jl9gcem6xzuvlrmp5y6p2eeks7qm3hgvvt86pqnpzcka"}
      depth: {lteq: 1}
      options: {direction: inbound}
      date: {since: "2000-02-01T00:00:00", till: "2022-12-30T10:26:36.164291"}
    ) {
      receiver {
        address
        unique_receivers: receiversCount
        unique_senders: sendersCount
      }
    }
  }
}

Similar queries