Aggreration + all transactions for a bitcoin address for a given period

Returns the latest 10 transactions on Bitcoin, where date till 2022-08-17: input count, input value, output count, output value, fee value, mined value, count and 10 more fields.

By gaurav · saved 17 August 2022 · run 6 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  aggregation: bitcoin(network: $network) {
    transactions(
      options: {limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      any: [{inputAddress: {is: "1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F"}}, {outputAddress: {is: "1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F"}}]
    ) {
      inputCount
      inputValue
      outputCount
      outputValue
      feeValue
      minedValue
      transactionCount: count
       
    }
  }
  bitcoin(network: $network) {
    transactions(
      options: {desc: ["block.height", "index"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      any: [{inputAddress: {is: "1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F"}}, {outputAddress: {is: "1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F"}}]
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      inputValue
      input_value_usd: inputValue(in: USD)
      outputCount
      inputCount
      index
      hash
      feeValue
      fee_value_usd: feeValue(in: USD)
      outputValue
      outputValueDecimal
      txWeight
      txVsize
      txVersion
      txLocktime
      txCoinbase
      minedValue
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "from": null,
  "till": "2022-08-17",
  "dateFormat": "%Y-%m-%d"
}

Similar queries