Latest Transactions

Returns the latest 10 transactions on Bitcoin, where time after 2023-09-27: timestamp time, block height, input value, output count, input count, index, hash and fee value.

By Nikhil · saved 28 September 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $after: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(
      options: {desc: ["block.height", "index"], limit: $limit, offset: $offset}
      time: {after: $after}
    ) {
      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)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "after": "2023-09-27T14:42:06.000Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries