Pancake's Pair Swap Event

Returns the latest 3 arguments on Ethereum and BNB Chain, where smart contract address is 0x1b96…774f and smart contract event is Swap: block height, transaction hash and any of argument value.

By gaurav · saved 15 April 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    arguments(
      options: {desc: "block.height", limit: 3}
      smartContractAddress: {is: "0x1b96b92314c44b159149f7e0303511fb2fc4774f"}
      smartContractEvent: {is: "Swap"}
    ) {
      block {
        height
      }
      transaction {
        hash
      }
      sender: any(of: argument_value, argument: {is: "sender"})
      to: any(of: argument_value, argument: {is: "to"})
      amount0In: any(of: argument_value, argument: {is: "amount0In"})
      amount0Out: any(of: argument_value, argument: {is: "amount0Out"})
      amount1In: any(of: argument_value, argument: {is: "amount1In"})
      amount1Out: any(of: argument_value, argument: {is: "amount1Out"})
    }
  }
}

Similar queries