BIT-1363

coinpath query inbounds

Returns money flows on Bitcoin, where initial address is 3731Qc…t6Ms, date since 2020-03-14 and date till 2020-03-16, sorted by amount, highest first: sender address, annotation, receiver address, transaction hash, block height, amount, depth and 2 more fields.

By Andrey · saved 20 May 2022

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", seed: 1}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      transaction {
        hash
      }
      block {
        height
      }
      amount
      depth
      count
      sender_receivers_count
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "network": "bitcoin",
  "address": "3731QcRZTXqdEpjXVjyf9T8zXeSAqZt6Ms",
  "from": "2020-03-14",
  "till": "2020-03-16T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries