btc v1 adds

Returns money flows on Bitcoin, sorted by amount, highest first: transaction hash, timestamp time, sender address, annotation, receiver address, amount, depth and count.

By jhf · saved 25 July 2025 · Bitquery API v2

What it returns

The query

query ($network: BitcoinNetwork!,, $address: [String!], $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      receiver: {in: $address}
      sender: {in: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      transaction{
        hash
      }
      block{
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      
      depth
      count
    }
    outbound: coinpath(
 
            sender: {in: $address}
           receiver: {in: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
       transaction{
        hash
      }
         block{
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
  }
}

Similar queries