correct_query

Returns outputs on Bitcoin, where output direction is mining, output script type is nulldata or nonstandard and tx index is 0, sorted by date date: date date, count big int, value, pattern, short, simple pattern and output script type type.

By Omkar Acharekar · saved 28 June 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {in: ["nulldata", "nonstandard"]}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: addresses)
      value
      outputScriptType {
        pattern
        short
        simplePattern
        type
      }
    }
  }
}

Variables

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

Similar queries