Doge query

Returns 10 outputs and inputs on Bitcoin and Dogecoin, where output address is DQZX73…BgvY and input address is DQZX73…BgvY, sorted by block height transaction index, highest first: block height, timestamp time, transaction hash, output index, output direction, value, output transaction hash and 3 more fields.

By gaurav · saved 22 September 2021 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inflow: outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {desc: ["block.height", "outputIndex"], limit: $limit, offset: $offset}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
      }
      outputIndex
      outputDirection
      value
    }
    outflow: inputs(
      date: {since: $from, till: $till}
      inputAddress: {is: $address}
      options: {desc: ["block.height", "transaction.index"], limit: $limit, offset: $offset}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      outputTransaction {
        hash
        index
      }
      transaction {
        hash
        index
      }
      inputIndex
      value
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "DQZX734M1Dqs2ibnwT4CtbyE8tzgifBgvY",
  "network": "dogecoin",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries