bitcoin - Counter Party Vol

Returns 10 money flows on Bitcoin, where initial address is bc1ppd…eupw, receiver is bc1ppd…eupw and sender is bc1ppd…eupw, sorted by amount, highest first: sender address, annotation, amount and receiver address.

By gaurav · saved 9 January 2024 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query counterparty_volume($address: String!, $limit: Int) {
  bitcoin {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {is: 1}
      options: {direction: inbound, desc: "amount", limit: $limit}
      sender: {not: ""}
      receiver: {is: $address}
    ) {
      sender {
        address
        annotation
      }
      amount(in: USD)
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {is: 1}
      options: {direction: outbound, desc: "amount", limit: $limit}
      receiver: {not: ""}
      sender: {is: $address}
    ) {
      receiver {
        address
        annotation
      }
      amount(in: USD)
    }
  }
}

Variables

{
  "address": "bc1ppda9haszjdr0n3pmxqzzkq24pxjfhdwzjy47g03ce0e5pasp7ucsyfeupw",
  "limit": 10
}

Similar queries