inputs+outputs

Miner transaction

Returns inputs and outputs on Bitcoin, where input address is 15MdAH…pPBB and output address is 15MdAH…pPBB: block height, timestamp time, transaction hash, input address address, value and output address address.

By Francesco Gasparetto · saved 13 November 2024 · run 36 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}) {
      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": 10,
  "offset": 0,
  "address": "15MdAHnkxt9TMC2Rj595hsg8Hnv693pPBB",
  "network": "bitcoin",
  "from": "2013-01-05T20:55:00",
  "till": "2024-01-05T21:00:00",
  "dateFormat": "%Y-%m-%d %H:%M:%S" 
}

Similar queries