eth get older txs hashes by addr

Returns the latest 10 transactions and transfers on Ethereum: iso8601, block height, index, hash, gas value and transaction hash.

By gaurav · saved 7 April 2025 · Bitquery API v1

What it returns

The query

query get_older_tx_hashes_by_addr($address: String!, $before_block_height: Int, $before_block_time: ISO8601DateTime, $limit: Int = 10, $offset: Int = 0) {
  ethereum(network: ethereum) {
    transactions(
      options: {desc: ["block.height", "index"], limit: $limit, offset: $offset}
      any: [{txSender: {is: $address}}, {txTo: {is: $address}}, {txCreates: {is: $address}}]
      height: {lt: $before_block_height}
      time: {before: $before_block_time}
    ) {
      block {
        timestamp {
          iso8601
        }
        height
      }
      index
      hash
      gasValue
      gasValue_usd: gasValue(in: USD)
    }
    transfers(
      options: {desc: ["block.height"], limit: $limit, offset: $offset}
      any: [{sender: {is: $address}}, {receiver: {is: $address}}, {txFrom: {is: $address}}]
      height: {lt: $before_block_height}
      time: {before: $before_block_time}
    ) {
      block {
        timestamp {
          iso8601
        }
        height
      }
      transaction {
        hash
      }
      gasValue
      gasValue_usd: gasValue(in: USD)
    }
  }
}

Similar queries