swapTransactions

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

By Shahbaz · saved 29 November 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    arguments(options: {limitBy: {each: "sender", limit: 1000},
      desc: "block.height"},
      smartContractAddress:
      {is: "0xba01662e978de7d67f8ffc937726215eb8995d17"},
      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