BTC trans new

Returns inputs and outputs on Bitcoin, where input address is bc1q0u…2nsh and output address is bc1q0u…2nsh: transaction hash, input address address, value, date date and output address address.

By Francesco Gasparetto · saved 21 October 2024 · run 23 times · 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}, date: {since: $from, till: $till}) {
      transaction {
        hash
      }
      inputAddress {
        address
      }
      value
      date {
        date
      }
    }
    outputs(outputAddress: {is: $address}, date: {since: $from, till: $till}) {
      outputAddress {
        address
      }
      transaction {
        hash
      }
      value
      date {
        date(format: "")
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "address": "bc1q0uvn8pg7n3zh7kgxn274757f0h0pfpac8j2nsh",
  "network": "bitcoin",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m-%d"
  
}

Similar queries