bitcoin coinpath example

bitcoin coinpath senders count and receivers count

Returns money flows on Bitcoin, where initial address is bc1qwq…vzej, date since 2022-11-15 and date till 2022-11-22, sorted by amount, highest first: sender address, annotation, receiver address, depth and amount.

By Divyasshree N · saved 26 January 2023 · run 9 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      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
      
      }
      depth
      amount
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      
      }
      receiver {
        address
        annotation
       
      }
      depth
      amount
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "address": "bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej",
  "from": "2022-11-15",
  "till": "2022-11-22T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries