inputs+outputs

Miner transaction

Returns inputs and outputs on Bitcoin, where input address is 17HVZL…8KtA and output address is 17HVZL…8KtA: block height, timestamp time, transaction hash, input address address, value and output address address.

By Francesco Gasparetto · saved 27 November 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inputs(inputAddress: {is: $address}) {
      block(time: {since: $from, till: $till}) {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
      }
      inputAddress {
        address
      }
      value(calculate: sum)
    }
    outputs(outputAddress: {is: $address}) {
      block(time: {since: $from, till: $till}) {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      outputAddress {
        address
      }
      transaction {
        hash
      }
      value(calculate: sum)
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10000000000,
  "offset": 0,
  "address": "17HVZLYciMaSY2d1V978tkYKn8akvb8KtA",
  "network": "bitcoin",
  "from": "2024-01-05T20:55:00",
  "till": "2024-11-05T21:00:00",
  "dateFormat": "%Y-%m-%d %H:%M:%S" 
}

Similar queries