OR Transactions

Returns the latest 10 transactions on Bitcoin: timestamp time, block height, input value, output value, index, hash, fee value and 4 more fields.

By Francesco Gasparetto · saved 24 October 2024 · run 4 times · Bitquery API v1

What it returns

The query

query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime, $address: String!) {
  bitcoin(network: $network) {
    transactions(
      options: {desc: ["block.height", "index"], limit: $limit, offset: $offset}
			any: [{inputAddress: {is: $address}}, {outputAddress: {is: $address}}]    ) {
      block(time: {since: $from, till: $till})  {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      inputValue
      outputValue
      index
      hash
      feeValue
      txCoinbase
      fee_value_usd: feeValue(in: USD)
      minedValue
      outputCount
      inputCount
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "address": "1FNggrG8YmaxM18TCLpoyMHQmExoxA4evn",
  "network": "bitcoin",
  "from": "2015-12-16T12:10:00",
  "till": "2015-12-16T12:13:00",
  "dateFormat": "%Y-%m-%d %H:%M:%S" 
}

Similar queries