My BTC total query

Returns money flows on Bitcoin, where initial address is bc1qz5…h6xk, date since 2023-09-08 and date till 2024-01-30, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth, count, transactions amount and timestamp.

By Konstantin Konson · saved 6 February 2024 · run 8 times · 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", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      transactions {
        amount
        timestamp
      }
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      transactions {
        amount
        timestamp
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 9,
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "address": "bc1qz5rpc20n3xq4pxttaaj5ena8sl6h67nmj8h6xk",
  "from": "2023-09-08",
  "till": "2024-01-30T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries