issue_9_sort_timestamp

Returns money flows on Bitcoin and Dogecoin, where initial address is DMr3fE…Wn9D, date since 2023-07-17 and date till 2023-10-17, sorted by block timestamp unixtime: sender address, annotation, receiver address, amount, depth, count, unixtime and 2 more fields.

By Xavi · saved 18 October 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", asc: "block.timestamp.unixtime", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount(in: USD)
      depth
      count
      block {
        timestamp {
          unixtime
        }
      }
      currency {
        symbol
        name
      }
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", asc: "block.timestamp.unixtime", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount(in: USD)
      depth
      count
      block {
        timestamp {
          unixtime
        }
      }
      currency {
        symbol
        name
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 5,
  "offset": 0,
  "network": "dogecoin",
  "address": "DMr3fEiVrPWFpoCWS958zNtqgnFb7QWn9D",
  "currency": "",
  "from": "2023-07-17T00:00:00Z",
  "till": "2023-10-17T23:59:59Z",
  "dateFormat": "%Y-%m-%d",
  "sortFilter": "timestamp",
  "sortAsc": true,
  "tradeMinAmount": null,
  "tradeMaxAmount": null,
  "useUsdAmount": true
}

Similar queries