bitcoin_transaction_query_PYX_update

Returns the latest 10 transactions on Bitcoin, where date since 2010-06-15 and date till 2021-06-22: timestamp time, block height, input value, output count, input count, index, hash and 9 more fields.

By Omkar Acharekar · saved 22 June 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  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": "2010-06-15",
  "till": "2021-06-22T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries