bitcoin

Returns the latest inputs and outputs on Bitcoin, where input address is bc1qkt…xhjl, output address is bc1qkt…xhjl and receiver is bc1qkt…xhjl: block height, timestamp time, transaction hash, value, annotation, receiver address, sender address and 2 more fields.

By gaurav · saved 4 July 2025 · Bitquery API v1

What it returns

Filters

The query

query ($address: [String!], $since: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: bitcoin) {
    inputs(
      time: {since: $since, till: $till}
      inputAddress: {in: $address}
      options: {desc: "block.height"}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
      }
      value
      inputAddress {
        annotation
      }
    }
    outputs(
      time: {since: $since, till: $till}
      outputAddress: {in: $address}
      options: {desc: "block.height"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      transaction {
        hash
      }
      value
      outputAddress {
        annotation
      }
    }
    coinpath(date: {since: $since, till: $till}, receiver: {in: $address}) {
      receiver {
        address
      }
      sender {
        address
      }
      currency {
        name
        symbol
      }
    }
  }
}

Variables

{
  "address": [
    "bc1qktzpfzl2jezhucmmcqgsykke3qkknvcrwyxhjl"
  ],
  "since": "2021-07-28T10:30:42Z",
  "till": "2021-07-28T10:40:42Z"
}

Similar queries