Pancake case maker=taker

Returns the latest 10 smart contract events and DEX trades on Ethereum and BNB Chain, where tx hash is 0xb990…ee28 and smart contract address is 0x4978…4983: event index, smart contract event name, smart contract event signature, argument, arguments index, arguments value, timestamp time and 14 more fields.

By Aleksey · saved 9 September 2021 · Bitquery API v1

What it returns

Filters

The query


                        query ($network: EthereumNetwork!,
                                $hash: String!,
                                $limit: Int!,
                                $offset: Int!
                                $from: ISO8601DateTime,
                                $till: ISO8601DateTime){
                    ethereum(network: $network){
                      smartContractEvents(txHash:{is: $hash}
                      smartContractAddress: {is: "0x4978dc2e563cd13fbcb012dd56c07205dd6b4983"}){
                        eventIndex
                        smartContractEvent {
                          name
                          signature
                        }
                        arguments {
                          argument
                          index
                          value
                        }
                      }
                      dexTrades(options:{desc: ["block.height","tradeIndex"], limit: $limit, offset: $offset},
                        date: {since: $from till: $till }
                        txHash:{is: $hash}
                        ) {

                          block {
                            timestamp {
                              time (format: "%Y-%m-%d %H:%M:%S")
                            }
                            height
                          }

                          tradeIndex
                          protocol
                          exchange {
                            fullName
                          }

                          smartContract {
                            address {
                              address
                              annotation
                            }
                          }

                          buyAmount
                          buyCurrency {
                            address
                            symbol
                          }

                          sellAmount
                          sellCurrency {
                            address
                            symbol
                          }

                        maker {
                          address
                        }
                        taker {
                          address
                        }

                      }
                    }
                  }

Variables

{"limit":10,"offset":0,"network":"bsc","hash":"0xb99082d774c0b9322fd161fc935442c37a4477756bb9392d4f2e841ab4c8ee28"}

Similar queries