All inboard transactions for Bitcoin address

Returns money flows on Bitcoin, where initial address is bc1qcj…4hwp, sorted by amount, highest first: receiver address, amount, depth, tx hash and count.

By Stanislas · saved 30 June 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $limit: Int!) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
    ) {
      receiver {
        address
      }
      amount
      depth
      transactions {
        txHash
      }
      count
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 100,
  "offset": 0,
  "network": "bitcoin",
  "address": "bc1qcj9ujyvrf94wu0902g2lnklzlyn5j5nrr44hwp",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries