get all Transactions Pancake Safemoon

Pancake all swaps

Returns the latest 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x8076…d8d3 and exchange name is Pancake or Pancake v2: transaction hash, address address, contract type, currency name, trade index, date date, block height and 11 more fields.

By Bier3103____ · saved 25 June 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(options: {limit: 100, desc: "block.timestamp.unixtime"},
      exchangeName: {in: ["Pancake","Pancake v2"]},
    baseCurrency: {is: "0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3"}) {
      transaction {
        hash
        __typename
      }
      smartContract{
        address{
          address
        }
        contractType
        currency{
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
        timestamp {unixtime}
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
    	sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction{
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries