Bitcoin inflow outflow in an address

Returns outputs and inputs on Bitcoin, where output address is bc1pnq…7t24, input address is bc1pnq…7t24 and date since 2024-01-17, sorted by date date: date date, count big int and value.

By gaurav · saved 24 January 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inflow: outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: transactions)
      value
    }
    outflow: inputs(
      date: {since: $from, till: $till}
      inputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: transactions)
      value
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "bc1pnqds23rudzv7zvn74mhwv3hvgeqrq6ml4lvm4022zu6x0vj34c5shk7t24",
  "network": "bitcoin",
  "from": "2024-01-17",
  "till": "2024-01-24T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries