What is the last transaction of X address?

Returns the latest transaction on Ethereum, where tx sender is 0x92a2…c606, date since 2023-04-13 and date till 2023-04-20: timestamp time, block height, to address, annotation, gas value, gas currency symbol and hash.

By Oluwatomisin · saved 20 April 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transactions(
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      txSender: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
     
      address: to {
        address
        annotation
      }
      gasValue
      gas_value_usd: gasValue(in: USD)
      gasCurrency {
        symbol
      }
      hash
    }
  }
}

Variables

{
  "limit": 1,
  "offset": 0,
  "network": "ethereum",
  "address": "0x92a2b5e6490790ccfeef51854f865a2fb9a3c606",
  "from": "2023-04-13",
  "till": "2023-04-20T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries