multiple address query

Returns money flows on Bitcoin, where initial address is bc1q7t…jwaa or 14AUg5…rczq, date since 2017-03-01 and date till 2019-02-28, sorted by amount, highest first: sender address, receiver address, amount, block height, timestamp time, transaction hash, depth and count.

By gaurav · saved 17 April 2026 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork, $inboundDepth: Int, $outboundDepth: Int, $limit: Int, $dateFormat: String, $initialAddresses: [String!]) {
  bitcoin(network: $network) {
    inbound: coinpath(
      date: {since: "2017-03-01", till: "2019-02-28"}
      initialAddress: {in: $initialAddresses}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}, seed: 10}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount(in: BTC)
      block {
        height
        timestamp {
          time(format: $dateFormat)
        }
      }
      transaction {
        hash
      }
      depth
      count
    }
    outbound: coinpath(
      date: {since: "2017-03-01", till: "2019-02-28"}
      initialAddress: {in: $initialAddresses}
      depth: {lteq: $outboundDepth}
      options: {direction: outbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}, seed: 10}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount(in: BTC)
      block {
        height
        timestamp {
          time(format: $dateFormat)
        }
      }
      transaction {
        hash
      }
      depth
      count
    }
  }
}

Variables

{
  "inboundDepth": 2,
  "outboundDepth": 2,
  "limit": 10000,
  "dateFormat": "%Y-%m-%d",
  "network": "bitcoin",
  "initialAddresses": [
    "bc1q7t8lhxur645euz5eantzqftx3yp9yrtua2jwaa",
    "14AUg5fvNeoJmhLm7mvBcNsrxVB8xgrczq"
  ]
}

Similar queries