https://community.bitquery.io/t/check-balances-of-bitcoin-adress/110/18

Returns the latest 100 inputs and outputs on Bitcoin, where input address is 18cBEM…L5PX and output address is 18cBEM…L5PX: block height, timestamp time, transaction hash, transaction index, value and annotation.

By Sayon · saved 22 August 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inputs(
      date: {since: $from, till: $till}
      inputAddress: {in: [$address]}
      options: {desc: "block.height", limit: $limit, offset: $offset}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
        index
      }
      value
      inputAddress {
        annotation
      }
    }
    outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {desc: "block.height", limit: $limit, offset: $offset}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      transaction {
        hash
        index
      }
      value
      outputAddress {
        annotation
      }
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "address": "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX",
  "network": "bitcoin",
  "dateFormat": "%Y-%m"
}

Similar queries