first_transaction_ethereum

Returns one transaction on Ethereum, where tx sender is 0xbf94…420b, sorted by block timestamp time: timestamp time, block height, success, annotation, to address, gas value, gas currency symbol and hash.

By Omkar Acharekar · saved 6 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: {asc: "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
      }
      success
      address: to {
        annotation
        address
      }
      gasValue
      gas_value_usd: gasValue(in: USD)
      gasCurrency {
        symbol
      }
      hash
    }
  }
}

Variables

{
  "limit": 1,
  "offset": 0,
  "network": "ethereum",
  "address": "0xbf94f0ac752c739f623c463b5210a7fb2cbb420b",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries