Bitcoin ATM Tx

Returns the latest 10 outputs on Bitcoin, where output address is bc1qvt…fal8, date since 2024-07-09 and date till 2024-07-16: block height, timestamp time, transaction hash, output index, output direction and value.

By Edgar Nwajei · saved 16 July 2024 · 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
      value_usd: value(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "bc1qvtl5lhhnnh9gjcyww0ld3rlx3luvd3sxnxfal8",
  "network": "bitcoin",
  "from": "2024-07-09",
  "till": "2024-07-16T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries