Check If Transaction is Sell or Buy

Returns DEX trades by token on Base, where currency smart contract is 0x20d7…6f09 and transaction hash is 0xb843…3dfa: side type, side smart contract and transaction hash.

By lukas · saved 6 December 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: base) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x20d704099B62aDa091028bcFc44445041eD16f09"}}}, Transaction: {Hash: {is: "0xb843735465d18da37b640eeafaf2f73a86586b30862fb29bde0b1ef136b53dfa"}}}
    ) {
      Trade {
        Side {
          Type
          Currency {
            SmartContract
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries