Error executing Ethereum::Cube::DexTradesCube: Field smartContract is not defined

[ { "message": "Error executing Ethereum::Cube::DexTradesCube: Field smartContract is not defined for #<#<Class:0x000055720162a570>:0x00007f437864bf28>", "locations": [ { "line": 3, "column": 5 } ], "path": [ "ethereum", "dexTrades" ], "error_type": "client" } ]

By Remach · saved 21 December 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"]}
      date: {since: "2021-05-08", till: null}
      makerOrTaker: {is: "0xcDCbD44526006122306293E4e2ae7f2D7352363e"}
      sellCurrency: {is: "0xB09FE1613fE03E7361319d2a43eDc17422f36B09"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      exchange {
        fullName
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sellCurrency {
        address
        symbol
      }
      maker {
        address
        smartContract{
          contractType
        }
      }
      taker {
        address
        smartContract{
          contractType
        }
      }
      
      transaction {
        txFrom{
          address
        }
        to{
          address
          smartContract{
            currency
            {
              name
            }
          }
        }
        hash
      }
    }
  }
}

Similar queries