latest Ethereum query.

Returns the latest 10 transactions on Ethereum, where date since 2022-12-30 and date till 2023-01-06: timestamp time, block height, sender address, annotation, hash and gas value.

By Mayowa Olatunji · saved 6 January 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query


                        query ($network: EthereumNetwork!,
                                $limit: Int!,
                                $offset: Int!
                                $from: ISO8601DateTime,
                                $till: ISO8601DateTime){
                    ethereum(network: $network){
                      transactions(options:{desc: "block.height", limit: $limit, offset: $offset},
                        date: {since: $from till: $till }
                        ) {

                          block {
                            timestamp {
                              time (format: "%Y-%m-%d %H:%M:%S")
                            }
                            height
                          }

                          address: sender {
                            address
                            annotation
                          }
                          hash
                          gasValue
                          gas_value_usd: gasValue(in: USD)
                      }
                    }
                  }

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "from": "2022-12-30",
  "till": "2023-01-06T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries