Streaming Gas not working

Streams the latest DEX trade by token on Ethereum as they happen, where currency smart contract is 0x5f64…89f0: chain ID, block number, block time, seller, buyer, trade amount, smart contract and 13 more fields.

By James parr · saved 7 November 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!, $token: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Trade {
        Seller
        Buyer
        Amount
        Currency {
          SmartContract
          Symbol
        }
        Price
        Side {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
      }
      Transaction {
        Hash
        Gas
        GasPrice
        Value
        GasTipCap
        GasFeeCap
        From
        Cost
      }
    }
  }
}

Variables

{"network":"eth","limit":1,"offset":0,"token":"0x5f64ab1544d28732f0a24f4713c2c8ec0da089f0"}

Similar queries