Receive_BTC_trx

Returns the latest 10 outputs on Bitcoin, where output address is bc1qud…k2a7, date since 2022-02-03 and date till 2022-03-04: block height, timestamp time, transaction hash, output index, output direction and value.

By Isha · saved 4 March 2022 · 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) {
    outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {desc: ["block.height", "outputIndex"], limit: $limit, offset: $offset}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
      }
      outputIndex
      outputDirection
      value
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "bc1qudyyfvhcy46pna72e0kql4q4c6cn6wm28vk2a7",
  "network": "bitcoin",
  "from": "2022-02-03",
  "till": "2022-03-04T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries