Copy of New Query

Returns money flows on Bitcoin, where initial address is 1PYYpb…pRj2, date since 1970-01-01 and date till 2020-11-18, sorted by amount, highest first: sender address, receiver address, amount, depth, currency address, currency name, decimals and 8 more fields.

By Shannon Fletcher · saved 15 July 2025 · Bitquery API v1

What it returns

Filters

The query

query btcPopulate($network: BitcoinNetwork!, $addresses: [String!], $inboundDepth: Int!, $outboundDepth: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount"}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount
      amountUSD: amount(in: USD)
      depth
      currency {
        address
        name
        decimals
        symbol
        tokenId
      }
      transactions {
        amount
        txHash
        txValue
        timestamp
      }
    }
    outbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount"}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      amountUSD: amount(in: USD)
      depth
      count
      currency {
        address
        name
        decimals
        symbol
        tokenId
      }
      transactions {
        amount
        txHash
        txValue
        timestamp
      }
    }
  }
}

Variables

{
  "network": "bitcoin",
  "addresses": [
    "1PYYpbNzkXWVUVFK1Cua4YPyJdSKSvpRj2"
  ],
  "currency": [],
  "outboundDepth": 1,
  "inboundDepth": 1,
  "from": "1970-01-01T00:00:00.000Z",
  "till": "2020-11-18T23:59:59.000Z"
}

Similar queries