sub last block

Streams one DEX trade on Ethereum as they happen, where time since 2021-11-30: date date and block height.

By spendil · saved 30 November 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The subscription

subscription ($network: EthereumNetwork!, $from: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(time: {since: $from}, options: {limit: 1}) {
      date {
        date(format: "%FT%TZ")
      }
      block {
        height
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "from": "2021-11-30T00:00:00Z"
}

Similar queries