relationship b/w two addresses

Returns money flows on Bitcoin, where initial address is 36sTQq…XCjg, receiver is bc1q6y…cfde and initial address is bc1q6y…cfde, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth and count.

By gaurav · saved 22 March 2022 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address1: String!, $address2: String!, $inboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound1: coinpath(
      initialAddress: {is: $address1}
      receiver: {is: $address2}
      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
    }
    inbound2: coinpath(
      initialAddress: {is: $address2}
      receiver: {is: $address1}
      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
    }
  }
}

Variables

{
  "inboundDepth": 5,
  "outboundDepth": 5,
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "address1": "36sTQqNG46EehVkSE4yZdaQtpPhBGBXCjg",
  "address2": "bc1q6ygwynykcrm0vxuwgmqu3nnlm4rky8jxe7cfde",
  "from": "2021-03-01",
  "till": "2022-03-22T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries